Serialization error due to different folder structure on local and server machine

48 views
Skip to first unread message

Abhishek Yadav

unread,
Sep 9, 2022, 8:11:39 AM9/9/22
to GWT Users
I am getting following error in my server tomcat logs:-

ERROR: The serialization policy file '/nos/js/4937711D6147993DCFE47FF203A0FEDC.gwt.rpc' was not found; did you forget to include it in this deployment?
 
On my local machine the above path is present and tomcat is able to locate it and hence I don't get this error. All the folders are present inside nos folder.

But on server, all the folders are present inside ROOT and nos folder is not present and hence server tomcat is not able to identify this path

I am providing folder structure on my local machine and server below :-

Windows folder structure
   Directory: C:\Users\abc\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nos


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        06-09-2022  09:07 PM                classes
d-----        06-09-2022  09:09 PM                com.xyz.nos.Common
d-----        06-09-2022  09:07 PM                gxt
d-----        06-09-2022  09:10 PM                js
d-----        06-09-2022  09:07 PM                maven-status
d-----        07-09-2022  05:04 PM                META-INF
d-----        06-09-2022  09:07 PM                WEB-INF

Linux server folder structure
Directory
[x_qa@webapp-nos-69d5d4865-mzkxz ROOT]$ pwd
/opt/tomcat/webapps/ROOT


[x_qa@webapp-nos-69d5d4865-mzkxz webapps]$ cd ROOT
[x_qa@webapp-nos-69d5d4865-mzkxz ROOT]$ ls -lrt
total 36
drwxr-xr-x 4 root root 4096 Jan  1  1970 nos-10.0.8-SNAPSHOT
drwxr-xr-x 3 root root 4096 Jan  1  1970 maven-status
drwxr-xr-x 7 root root 4096 Jan  1  1970 js
-rw-r--r-- 1 root root  182 Jan  1  1970 index.html
drwxr-xr-x 8 root root 4096 Jan  1  1970 gxt
drwxr-xr-x 2 root root 4096 Jan  1  1970 gwt-unitCache
drwxr-xr-x 3 root root 4096 Jan  1  1970 classes
drwxr-xr-x 1 root root 4096 Jan  1  1970 WEB-INF
drwxr-xr-x 3 root root 4096 Jan  1  1970 META-INF

Can anyone suggest how can I make consistent folder structure between server and local machine by keeping both of these folders in sync ?

Let me know if my understand is incorrect ?




 
 
Reply all
Reply to author
Forward
0 new messages