Hello!
I'm sorry for posting a 2nd time now, but things look a little different here. I also have a Servlet deployed, which has (following to these posts here) been compiled using JDK1.5.0_12 (linux). But upon calling this Servlet, I get the java.lang.ClassNotFoundException.
The class is definitely there, the .war structure looks like the following:
/servlet.war
--> META-INF
---> MANIFEST.MF
--> WEB-INF
---> classes/
----> de/ ... / webservice/OrderServlet.class
---> web.xml
Upon calling, I receive the following tracelog:
---- begin tracelog ---
[#|2007-07-15T02:52:54.178+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-1;|PWC1412: WebModule[/servlets] ServletContext.log():PWC1409: Marking servlet OrderServlet as unavailable|#]
[#|2007-07-15T02:52:54.181+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=0a207b61-ce76-46c9-aaaa-dc3fbaaf0246;|WebModule[/servlets]Error loading WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader_at_12922f6
de.uniba.wiai.lspi.ss07.pi2.gruppe3.ass03.rentorg.webservice.OrderServlet.class
java.lang.ClassNotFoundException: de.uniba.wiai.lspi.ss07.pi2.gruppe3.ass03.rentorg.webservice.OrderServlet.class
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1490)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1096)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:819)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:184)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
|#]
[#|2007-07-15T02:52:54.184+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=23;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=0a207b61-ce76-46c9-aaaa-dc3fbaaf0246;|StandardWrapperValve[OrderServlet]: PWC1382: Allocate exception for servlet OrderServlet
java.lang.ClassNotFoundException: de.uniba.wiai.lspi.ss07.pi2.gruppe3.ass03.rentorg.webservice.OrderServlet.class
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1490)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1096)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:819)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:184)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
|#]
--- end tracelog ---
stefan_at_debian:~$ ls -al /usr/local/lib/glassfish/domains/domain1/applications/j2ee-modules/servlets/WEB-INF/classes/de/uniba/wiai/lspi/ss07/pi2/gruppe3/ass03/rentorg/webservice
insgesamt 25
drwxr-sr-x 2 root staff 1024 2007-07-15 02:39 .
drwxr-sr-x 4 root staff 1024 2007-07-15 02:39 ..
-rw-r--r-- 1 root staff 818 2007-07-15 02:39 Confirmation.class
-rw-r--r-- 1 root staff 7889 2007-07-15 02:39 ConfirmationServlet.class
-rw-r--r-- 1 root staff 1983 2007-07-15 02:39 Inquiry.class
-rw-r--r-- 1 root staff 9596 2007-07-15 02:39 OrderServlet.class
-rw-r--r-- 1 root staff 1027 2007-07-15 02:39 VehicleDesc.class
stefan_at_debian:~$ less /usr/local/lib/glassfish/domains/domain1/generated/xml/j2ee-modules/servlets/WEB-INF/web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="
http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
rentOrg</display-name>
<servlet>
<description>
</description>
<display-name>
ConfirmationServlet</display-name>
<servlet-name>ConfirmationServlet</servlet-name>
<servlet-class>
de.uniba.wiai.lspi.ss07.pi2.gruppe3.ass03.rentorg.webservice.ConfirmationServlet.class</servlet-class>
</servlet>
<servlet>
<description>
</description>
<display-name>
OrderServlet</display-name>
<servlet-name>OrderServlet</servlet-name>
<servlet-class>
de.uniba.wiai.lspi.ss07.pi2.gruppe3.ass03.rentorg.webservice.OrderServlet.class</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ConfirmationServlet</servlet-name>
<url-pattern>/setConfirmation</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OrderServlet</servlet-name>
<url-pattern>/setOrder</url-pattern>
</servlet-mapping>
</web-app>
I called: URL endpoint = new URL( "
http://localhost:8080/servlets" + "/setOrder");
SOAPMessage response = con.call(msg, endpoint);
where msg = SOAPMessage
The same result occurs, if I use JDK1.6.0_1 and JDK1.6.0_2 (both Win + Linux versions)
On the other hand, I have a second (very simple) Servlet (made from Sun's JavaEE CoffeeBreak - Tutorial), that runs if called.
I would be great, if somebody could help me out.
Thanks and have a good one.
Stefan
[Message sent by forum member 'kniffte' (kniffte)]
http://forums.java.net/jive/thread.jspa?messageID=226687