Hi, Nicklas thanks for your reply. Please find the server.log attached to my previous message
Looks like you created your own custom server; e.g.
Server Home: $JBOSS_HOME\server/sampleapp/
Which configuration is this derived from?
Hi Nicklas thanks for your reply. The app I am running doesn't have context root. The context root defined in application.xml is
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.
I created my custom server and it is copy of default.
if you want I can provide more detail like web.xml, application.xml.
Can you deploy it under some non-root web context? Can you deploy it in default?
* 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"?>
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
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.
Try dropping the ConfigureListener, I'm not sure it's needed.
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
and index.jsp looks something like this.
if(url == "devapp01" & (portnum == "8080" || portnum == "89"))
url=("http://" + location.hostname + ":" + portnum + "/login.jsp");
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.
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.
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.