-
1. Jboss 6.0 deployment 404 page issue
nickarls Jan 27, 2011 11:29 AM (in response to dhanashribharambe)post server.log
-
2. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 27, 2011 11:40 AM (in response to nickarls)Hi, Nicklas thanks for your reply. Please find the server.log attached to my previous message
-
3. Jboss 6.0 deployment 404 page issue
nickarls Jan 27, 2011 12:04 PM (in response to dhanashribharambe)you should go to your http://localhost:8080/<approot>/Login.jsp
-
4. Jboss 6.0 deployment 404 page issue
shelly.mcgowan Jan 27, 2011 12:06 PM (in response to dhanashribharambe)Looks like you created your own custom server; e.g.
Server Home: $JBOSS_HOME\server/sampleapp/
Which configuration is this derived from?
-
5. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 27, 2011 12:22 PM (in response to nickarls)Hi Nicklas thanks for your reply. The app I am running doesn't have context root. The context root defined in application.xml is
<module>
<web>
<web-uri>GCorpWebApp.war</web-uri>
<context-root>/</context-root>
</web>
</module>
In my deploy folder ROOT.war also has context root as / . so per this post http://community.jboss.org/thread/80759?tstart=3
I renamed to jbossWebROOT.war.
When I tried to remove ROOT.war i got some error so I preferred to rename it.
-
6. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 27, 2011 12:24 PM (in response to shelly.mcgowan)Thanks Shelly,
I created my custom server and it is copy of default.
-
7. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 27, 2011 2:31 PM (in response to nickarls)if you want I can provide more detail like web.xml, application.xml.
-
8. Jboss 6.0 deployment 404 page issue
nickarls Jan 27, 2011 3:33 PM (in response to dhanashribharambe)Can you deploy it under some non-root web context? Can you deploy it in default?
-
9. Jboss 6.0 deployment 404 page issue
nickarls Jan 27, 2011 4:08 PM (in response to nickarls)Try this:
* Copy the server/default to server/sampleapp
* In server/sampleapp/deploy/ROOT.war/WEB-INF place a jboss-web.xml like this
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>oldroot</context-root>
</jboss-web>
in order to free the root context
* Set the <context-root>/</context-root> (or just <context-root/>?) in your application
* Deploy your application to server/sampleapp/deploy
* run -c sampleapp
-
10. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 27, 2011 5:52 PM (in response to nickarls)Thanks a lot for your reply. I think my web.xml is causing this issue. I renamed my web.xml to web.txt and started the server and tried to access default page, and it bring up the page. So That means something with the web.xml is incorrect. Here is my web.xml file(attached to my first message), please let me know if you find anything in correct with this.
-
11. Jboss 6.0 deployment 404 page issue
nickarls Jan 28, 2011 1:38 AM (in response to dhanashribharambe)Try dropping the ConfigureListener, I'm not sure it's needed.
-
12. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 28, 2011 10:29 AM (in response to nickarls)Thanks Nicklas for your reply. Your are right there is some issue with ConfigureListener. also I found out one more thing.
in my web.xml there is
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
and index.jsp looks something like this.
if(url == "devapp01" & (portnum == "8080" || portnum == "89"))
url=("http://" + location.hostname + ":" + portnum + "/login.jsp");
else
url=("http://" + location.hostname + "/login.jsp");
but in my webcontent there is file named Login.jsp , so when index.jsp was invoked it was trying to find login.jsp and (because of case mismatch) it would throw 404 error.(when I changed code to url=("http://" + location.hostname + ":" + portnum + "/Login.jsp"); it started working fine.)
now my question is: Is there any way to disable this case sensitivity because looks like on jboss 4.2 it didn't matter but with newer version it looks for specific. I have to make a lot of code changes(name of the file) as all my servlet would say goto something.jsp whereas there would be file named someThing.jsp.
-
13. Jboss 6.0 deployment 404 page issue
dhanashribharambe Jan 31, 2011 1:00 PM (in response to nickarls)Is there is any quick solution (short cut) for this kind of issue other can changing the name of JSPs or changing code in servlet.
any hint would help. I am very close to solving this issue.
-
14. Jboss 6.0 deployment 404 page issue
jaikiran Jan 31, 2011 2:05 PM (in response to dhanashribharambe)Read the "caseSensitive" attribute of the Context element here http://tomcat.apache.org/tomcat-5.5-doc/config/context.html and try setting it in JBOSS_HOME/server/<servername>/deploy/jbossweb.sar/META-INF/context.xml. Pay attention to the NOTE section in that documentation as well.