xoxomos
asked on
Application server classpath problem
I've got classpath set to D;\Websphere\AppServer\hos ts\default _host\WebR eg\servlet s;
D;\Websphere\AppServer\hos ts\default _host\WebR eg\servlet s\classes;
D:\WebSphere\jdk\jre\ext\c lasses12.z ip
in the Win2000 environment. The Application server also starts with a classpath switch the same. When i call the servlets WebSphere doesn't find the class which is in the servlets directory.
When i enter the http://localhost/servlet/CUXXHome i get the error messages
Wrapped Error-2: Servlet [CSXXHome]: Could not find required servlet class - CSXXHome.class
javax.servlet.ServletExcep tion: Servlet [CSXXHome]: Could not find required servlet class - CSXXHome.class at javax.servlet.ServletExcep tion.(Serv letExcepti on.java:61 ) at com.ibm.servlet.engine.web app.WebApp ServletMan ager.loadS ervlet(Web AppServlet Manager.ja va:56) at com.ibm.servlet.engine.web app.WebApp .addServle t(WebApp.j ava:305) at com.ibm.servlet.engine.web app.WebApp ServletReg istry.addS ervlet(Web AppServlet Registry.j ava:42) at com.ibm.servlet.engine.web app.Invoke rServlet.s ervice(Inv okerServle t.java:155 ) at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 639) at .......................... .......... .......... ..........
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Wrapped Error-3: Servlet [CSXXHome]: Could not find required servlet class - CSXXHome.class
javax.servlet.ServletExcep tion: Servlet [CSXXHome]: Could not find required servlet class - CSXXome.class at javax.servlet.ServletExcep tion.(Serv letExcepti on.java:73 ) at
Wrapped Error-4: Server caught unhandled exception from servlet [invoker]
com.ibm.servlet.engine.web app.Uncaug htServletE xception: Server caught unhandled exception from servlet [invoker] at .......................... .......... .......... .......... .......... .......... .......... .......... ..
Why is Websphere not finding the servlet classes.
D;\Websphere\AppServer\hos
D:\WebSphere\jdk\jre\ext\c
in the Win2000 environment. The Application server also starts with a classpath switch the same. When i call the servlets WebSphere doesn't find the class which is in the servlets directory.
When i enter the http://localhost/servlet/CUXXHome i get the error messages
Wrapped Error-2: Servlet [CSXXHome]: Could not find required servlet class - CSXXHome.class
javax.servlet.ServletExcep
--------------------------
Wrapped Error-3: Servlet [CSXXHome]: Could not find required servlet class - CSXXHome.class
javax.servlet.ServletExcep
Wrapped Error-4: Server caught unhandled exception from servlet [invoker]
com.ibm.servlet.engine.web
Why is Websphere not finding the servlet classes.
You don't actually mention where you put you classes.
I think they should be in the servlets directory, and if your using packages then ensure they are in the correct subdirectory.
I think they should be in the servlets directory, and if your using packages then ensure they are in the correct subdirectory.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The Application server also starts with a classpath switch the same. I believe this is the same as your command line param. At the application server tab under command line arguments -mx128m -classpath d:\WebSphere\AppServer\hos ts...... I've checked the case and all the servlet class files are in the ..\servlets subdirectory.
ASKER
You know, looking at that classpath line in that conf file, i don't see a path to that servlets directory included.
plus its putting d:\:/ instead of d:\ ????????????????
com.ibm.ejs.sm.adminserver .classpath =d\:/WebSp here/AppSe rver/lib/i bmwebas.ja r;
d\:/WebSphere/AppServer/pr operties;
d\:/WebSphere/AppServer/li b/servlet. jar;
d\:/WebSphere/AppServer/li b/webtlsrn .jar;
d\:/WebSphere/AppServer/li b/lotusxsl .jar;
d\:/WebSphere/AppServer/li b/compat.j ar;
d\:/WebSphere/AppServer/li b/xalan.ja r;
d\:/WebSphere/AppServer/li b/ns.jar;
d\:/WebSphere/AppServer/li b/ejs.jar;
d\:/WebSphere/AppServer/li b/ujc.jar;
d\:/WebSphere/AppServer/li b/idb.jar;
d\:/WebSphere/AppServer/li b/reposito ry.jar;
d\:/WebSphere/AppServer/li b/admin.ja r;
d\:/WebSphere/AppServer/li b/swingall .jar;
d\:/WebSphere/AppServer/li b/console. jar;
d\:/WebSphere/AppServer/li b/was20cm. jar;
d\:/WebSphere/AppServer/li b/tasks.ja r;
d\:/WebSphere/AppServer/li b/xml4j.ja r;
d\:/WebSphere/AppServer/li b/vaprt.ja r;
d\:/WebSphere/AppServer/li b/sslight. jar;
d\:/WebSphere/AppServer/li b/ibmjndi. jar;
d\:/WebSphere/AppServer/li b/deployTo ol.jar;
d\:/WebSphere/AppServer/li b/databean s.jar;
d\:/WebSphere/AppServer/cl asses;
d\:/WebSphere/AppServer/jd k/lib/tool s.jar;
d\:/WebSphere/AppServer/li b/jsp10.ja r;
d\:/WebSphere/AppServer/li b/dertrjrt .jar;
d\:/WebSphere/AppServer/li b/derdbpw. jar;
d\:/WebSphere/AppServer/li b/ivjejb35 .jar
I'll try including that.
plus its putting d:\:/ instead of d:\ ????????????????
com.ibm.ejs.sm.adminserver
d\:/WebSphere/AppServer/pr
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/cl
d\:/WebSphere/AppServer/jd
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
d\:/WebSphere/AppServer/li
I'll try including that.
ASKER
O.K. That does get rid of the classpath error message although it's still saying page can't be displayed.
thanks
thanks
What error are you getting now? If it's one I'm familiar with I'll let you know. Have you tried running this in VAJ?
ASKER
I'll put that out as another question, but it will be about a week off. I did get further along in VAJ but had trouble with some .css and .js files. Kindly check back in about 2 weeks at which time i hope to formulate better questions.
thanks
thanks
Most containers generally have their own method for defining their classpath.
Check your websphere documentation.