-
1. Re: Problem when deploying a WAR
peterj Jun 24, 2005 12:30 PM (in response to fquimbay)Are you saying that you war file contains only a very simply index.jsp? What are the contents of index.jsp?
-
2. Re: Problem when deploying a WAR
fquimbay Jun 24, 2005 1:36 PM (in response to fquimbay)Page JSP has this content:
<%@page contentType="text/html" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>JSP Page</title> </head> <body bgcolor="#FFFFFF"> HOLA </body> </html>
on JBOSS 4.0.1 one is correctly, but on JBOSS 4.0.2 it does not show anything. I work with jdk1.5.0_04, although with a version different from JAVA it happens the same. Thanks for your help. -
3. Re: Problem when deploying a WAR
peterj Jun 24, 2005 1:58 PM (in response to fquimbay)It works fine for me on 4.0.2. What exactly are you seeing in the browser? A pure white page? A pure black page? Also, in the server/default/work/jboss.web/localhost/XXX/org/apache/jsp directory (where XXX is the name of your WAR file), there should be a .java and .class file. Are they there?
-
4. Re: Problem when deploying a WAR
fquimbay Jun 24, 2005 3:49 PM (in response to fquimbay)In the navigator I see a white page and in the route that you indicated to me I see both archives index_jsp.java and index_jsp.class. This problem is very strange, everything seems to be well.
-
5. Re: Problem when deploying a WAR
peterj Jun 24, 2005 4:10 PM (in response to fquimbay)Can you select anything on the white page? I'm just wondering if you are getting white text on a white background.
-
6. Re: Problem when deploying a WAR
fquimbay Jun 25, 2005 8:50 AM (in response to fquimbay)I am making an example with some components of MyFaces. I made a WAR simple (index.jsp and WEB-INF/web.xml) and worked correctly. Simple file JSP which I commented in the previous mail, I did it using the structure that I am working with the components of MyFaces, and it did not work to me. I am thinking that it can be some type of conflict between MyFaces and the JBOSS version.
-
7. Re: Problem when deploying a WAR
fquimbay Jun 25, 2005 9:00 AM (in response to fquimbay)I knew because the WAR did not deployed correctly, was including in /WEB-INF/lib the file "jsp-2.0.jar", it does not place it and already it works correctly. In the page Web of the MyFaces project: http://myfaces.apache.org/docs/gettingstarted.html, says there that it is due to include "to jsp-2.0.jar" if it works with a version of Tomcat 4, otherwise no. PeterJ, thank you very much by the interest and collaboration.
-
8. Re: Problem when deploying a WAR
peterj Jun 28, 2005 2:48 AM (in response to fquimbay)That would expalin your problem. JBoss 4.0.2 uses Tomcat 5.5, while earlier versions used Tomcat 5.0. There is probably a library incompatability somewhere.
Try the following wiki entries and see if they help:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases -
9. Re: Problem when deploying a WAR
peterj Jun 28, 2005 3:00 AM (in response to fquimbay)I just scanned through the links in my previous entry and while the answer is in there, it might not be obvious. Looking at some other entries in the forum, it would appear that you need to do the following:
To revert to pre-4.0.2 config in jboss-service.xml file in the server/xxx/deploy/jbossweb-tomcat55.sar/META-INF directory use:<attribute name="Java2ClassLoadingCompliance">true</attribute> <attribute name="UseJBossWebLoader">true</attribute>[/code> Both are false by default in the existing file. (Thanks to Adrian Brock for the above code.)