Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving app from one tomcat server to another 1

Status
Not open for further replies.

Tokhra

Programmer
Oct 1, 2003
134
ES
Hi all,

I've written a JSP/JavaBean webapp and its running fine here, however when I give it to someone else to install on their server (just copy the files to the root dir of server, is that correct?) they are getting 500 server errors and:

Cannot resolve symbol: UserBean

for example. Is there anything they have to do for the server to recognise the javabeans? like when you have to regsvr for .dll components to work on servers that they weren't compiled on..

Also im running Tomcat 5.0 and they're running Tomcat 4.1.12 if that could be the reason?

Thanks,
Matt.
 
Depends entirely on how your webapp is deployed, and where you put you Java classes ...
 
Can you reccomend a way of deploying a java webapp?

The classes are in /root/web-inf/dir/dir/dir/classes (dirs represent package structure).

so I have:
/root/web-inf - contains javabean classes
/root/mywebapp - contains jsp pages
 
classes should be in "context/WEB-INF/classes/dir/dir/dir"

not in "context/WEB-INF/dir/dir/dir/classes"

or jar'ed up and put in WEB-INF/lib

create a .war file :

cd context
jar -cvf mywar.war

and dump that in TOMCAT_HOME/webapps

You might want to look at the docs :

 
missed out the /classes/ bit when I typed it out.

Thanks very much for the advice and links. Seems like a better way to do it.

Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top