-
1. Re: Impossible to deploy a webapp correctly
jcordes Aug 13, 2002 11:55 AM (in response to cdkcdk)Hi Gandalf !
How did you package your war-file ? I had a similar problem which was solved by packaging my webapp with the jar-utility that comes with the jdk (formerly I used JBuilder).
Hope it helps,
Jochen. -
2. Re: Impossible to deploy a webapp correctly
adrian.brock Aug 13, 2002 12:20 PM (in response to cdkcdk)It is case sensistive, are you sure it isn't WEB.xml?
try posting the output of
jar -tf CompareMyHello.war
Regards,
Adrian -
3. Re: Impossible to deploy a webapp correctly
cdkcdk Aug 14, 2002 3:54 AM (in response to cdkcdk)Well actually I just picked up some example I've found for Java WSDP. Anyway here is the file I used.
Thanx -
4. Re: Impossible to deploy a webapp correctly
joelvogt Aug 14, 2002 5:44 AM (in response to cdkcdk)yeah web-inf not WEB-INF looks like your problem
-
5. Re: Impossible to deploy a webapp correctly
cdkcdk Aug 14, 2002 5:51 AM (in response to cdkcdk)No actually it seems so when you look at the path into i.e. a WinZip window, but if you try to extract the files you'll see it's well WEB-INF in uppercase...
-
6. Re: Impossible to deploy a webapp correctly
adrian.brock Aug 14, 2002 6:03 AM (in response to cdkcdk)You have the problem jcordes mentioned.
bash-2.05$ jar -tf CompareMyHello.war
WEB-INF/web.xml
WEB-INF/jaxrpc-ri.xml
META-INF/MANIFEST.MF
WEB-INF/classes/dephello/HelloImpl.class
WEB-INF/classes/dephello/HelloIF.class
WEB-INF/sun-j2ee-ri.project
META-INF/context.xml
There is no entry for the directory
WEB-INF/
If you rejar it, you will get something Tomcat
understands.
Regards,
Adrian -
7. Re: Impossible to deploy a webapp correctly
cdkcdk Aug 14, 2002 6:45 AM (in response to cdkcdk)I did that and now the directory WEB-INF appears when running 'jar -tf CompareMyHello.war':
D:\jboss\server\default\deploy>%JAVA_HOME%\bin\jar -tf CompareMyHello.war
WEB-INF/classes/
WEB-INF/classes/dephello/
WEB-INF/classes/dephello/HelloIF.class
WEB-INF/classes/dephello/HelloImpl.class
WEB-INF/jaxrpc-ri.xml
WEB-INF/sun-j2ee-ri.project
WEB-INF/web.xml
WEB-INF/
META-INF/context.xml
META-INF/MANIFEST.MF
META-INF/
Nevertheless, the problem is still there.
Here is the console result :
11:49:15,538 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss
/server/default/deploy/CompareMyHello.war
11:49:15,618 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/CompareMyHello,
warUrl=file:/D:/jboss/server/default/tmp/deploy/server/default/deploy/CompareMyH
ello.war/83.CompareMyHello.war
11:49:15,638 INFO [Engine] WebappLoader[/CompareMyHello]: Deploying class repos
itories to work directory D:\jboss\catalina\work\localhost\CompareMyHello
11:49:15,638 INFO [Engine] StandardManager[/CompareMyHello]: Seeding random num
ber generator class java.security.SecureRandom
11:49:15,638 INFO [Engine] StandardManager[/CompareMyHello]: Seeding of random
number generator has been completed
11:49:15,809 INFO [Engine] ContextConfig[/CompareMyHello]: Missing application
web.xml, using defaults only
11:49:15,809 INFO [Engine] ContextConfig[/CompareMyHello]: Added certificates -
> request attribute Valve
11:49:15,889 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader de
legation: true
11:49:15,899 INFO [Engine] StandardWrapper[/CompareMyHello:default]: Loading co
ntainer servlet default
11:49:15,909 INFO [Engine] default: init
11:49:15,909 INFO [Engine] StandardWrapper[/CompareMyHello:invoker]: Loading co
ntainer servlet invoker
11:49:15,919 INFO [Engine] invoker: init
11:49:15,929 INFO [Engine] jsp: init
11:49:15,929 INFO [Engine] Internal Error: File /WEB-INF/web.xml not found11:49:15,949 INFO [MainDeployer] Successfully completed deployment of package:
file:/D:/jboss/server/default/deploy/CompareMyHello.war
What else can I do ?? -
8. Re: Impossible to deploy a webapp correctly
cdkcdk Aug 14, 2002 8:52 AM (in response to cdkcdk)I built another one which works perfectly. I join it but i do not understand why the other doesn't work.
-
9. Re: Impossible to deploy a webapp correctly
euklid Aug 14, 2002 11:18 AM (in response to cdkcdk)Hi gandalf and all the others!
I have exactly the same problem like gandalf deploying a "simple" webapp.
My jar-command doesn`t also list the WEB-INF/ directory, but all the other entries.
I`m using JBuilder 6, too.
In Borland newsgroups some users have told about WEB-INF directory entries in lowercase, but this is not my problem, because WinAce Archiver shows me the right syntax in uppercase.
My biggest Problem is that I don`t know how to jar the files manually. I`ve tried it several times in several ways and it doesn`t run at all. Please help!
Thanks a lot
euklid -
10. Re: Impossible to deploy a webapp correctly
euklid Aug 14, 2002 11:19 AM (in response to cdkcdk)Notice:
The SimpleServlet.war of gandalf is already running but not my "simple servlet" at home. -
11. Re: Impossible to deploy a webapp correctly
rsie Aug 14, 2002 7:07 PM (in response to cdkcdk)I'm having the same problem. I'm running JBOSS-Tomcat 3.0 and I think I have done all the things I need. This is a port from ORION App Server to JBOSS. I packaged everything up in a .ear file. I'm using the struts framework and so want to load my extension of the ActionServlet class. JBoss seems to fail to recognize the WEB-INF/classes classpath location. Is this a bug and if so is it being addressed. Below is my console output...
16:39:41,334 INFO [EjbModule] Creating
16:39:41,390 INFO [EjbModule] Deploying jdbc/DBService
16:39:41,471 INFO [EjbModule] Created
16:39:41,473 INFO [EjbModule] Starting
16:39:41,635 INFO [EjbModule] Started
16:39:42,199 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/testjboss, warUrl=njar:file:/usr/local/jboss/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/testjboss.ear/85.testjboss.ear^/testjboss.war
16:39:44,282 INFO [Engine] WebappLoader[/testjboss]: Deploying class repositories to work directory /usr/local/jboss/jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/testjboss
16:39:44,289 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/crimson-1.1.3.jar to /tmp/nested-14381.war/WEB-INF/lib/crimson-1.1.3.jar
16:39:44,296 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/jato-beta4.jar to /tmp/nested-14381.war/WEB-INF/lib/jato-beta4.jar
16:39:44,302 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/jaxen-1.0beta7.jar to /tmp/nested-14381.war/WEB-INF/lib/jaxen-1.0beta7.jar
16:39:44,307 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/jaxp-1.1.jar to /tmp/nested-14381.war/WEB-INF/lib/jaxp-1.1.jar
16:39:44,313 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/jdom-b7.jar to /tmp/nested-14381.war/WEB-INF/lib/jdom-b7.jar
16:39:44,321 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/logkit-1.0.1.jar to /tmp/nested-14381.war/WEB-INF/lib/logkit-1.0.1.jar
16:39:44,326 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/struts.jar to /tmp/nested-14381.war/WEB-INF/lib/struts.jar
16:39:44,333 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/stxx-0.9.5.jar to /tmp/nested-14381.war/WEB-INF/lib/stxx-0.9.5.jar
16:39:44,338 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/testjboss_app.jar to /tmp/nested-14381.war/WEB-INF/lib/testjboss_app.jar
16:39:44,342 INFO [Engine] WebappLoader[/testjboss]: Deploy JAR /WEB-INF/lib/xalan.jar to /tmp/nested-14381.war/WEB-INF/lib/xalan.jar
16:39:44,417 INFO [Engine] StandardManager[/testjboss]: Seeding random number generator class java.security.SecureRandom
16:39:44,419 INFO [Engine] StandardManager[/testjboss]: Seeding of random number generator has been completed
16:39:50,374 INFO [Engine] ContextConfig[/testjboss]: Added certificates -> request attribute Valve
16:39:52,498 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true
16:39:52,499 INFO [Engine] StandardWrapper[/testjboss:default]: Loading container servlet default
16:39:52,500 INFO [Engine] default: init
16:39:52,501 INFO [Engine] StandardWrapper[/testjboss:invoker]: Loading container servlet invoker
16:39:52,502 INFO [Engine] invoker: init
16:39:52,747 INFO [Engine] StandardWrapper[/testjboss:action]: Marking servlet action as unavailable
16:39:52,748 ERROR [Engine] StandardContext[/testjboss]: Servlet /testjboss threw load() exception
javax.servlet.ServletException: Error instantiating servlet class com.bostonbred.services.struts.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:893)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:671)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)