Re: Custom ctxroot.war is successfully deployed but returns error 404 on 5.3 M5 ?
"Guillaume Sauthier (OW2)" <[email protected]> Thu, 19 Jan 2012 12:02:30 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <CAG1yf3OXV70ajGQXTGzrTTs2STgfjZYxADyDp2PtB+3Fc-Mm1Q@mail.gmail.com> |
--f46d043bdede24b21104b6df8031 Content-Type: text/plain; charset=ISO-8859-1 Hi Hans We also have a ctxroot webapp with a simple JSP in it. It works as expected with the trunk of JOnAs (5.3.0-M6-SNAPSHOT) Can you make a try with our own ctxroot.war ? Thanks --G 2012/1/13 Hans J. Prueller <[email protected]> > Hi all, > > we upgraded recently to JOnAS 5.3 M5 on our machines. For the last years, > we have been using > a custom written tiny webapp (ctxroot.war), which only consists of some > artifacts and an "index.jsp" > page, that auto-forwards to a specific webapp context if somebody directly > lands at the context root. > > for example: > > we have an .ear project with an app at context "/mycontrolcenter" > > and a "ctxroot.war" deployed at "/" with index.jsp that does a redirect > (simply via meta-refresh tag) to "/mycontrolcenter" > > So if some body enters: www.myserver.com he / she automatically is > redirected to www.myserver.com/**mycontrolcenter<http://www.myserver.com/mycontrolcenter> > > > This was quickly made some years ago and worked fine until we switched to > 5.3 M5: > > - we also switched the web container from Tomcat6 to Tomcat7 > ( - and mojarra implementation from 1.2 to 2.0 ) > > > Jonas says at startup everything is ok: > > Deploying ctxroot.war > 2012-01-12 16:58:59,844 : INFO : Thread-13 : BaseWebContainerService.**registerWar > : War ctxroot.war available at the context /. > 2012-01-12 16:59:00,673 : INFO : Thread-13 : J2EEServer.__info : JOnAS > AS v5.3.0-M5 named 'jonas' RUNNING > > > BUT: when we open the browser and enter e.g. http://localhost:9000/ --> > we get a HTTP 404 (not found) error > > > can anybody else reproduce this? could this somehow be related to the > switch to tomcat7 as servlet container or something > else that was changed in 5.3 ???? > > > regards, > Hans > > > > > > --f46d043bdede24b21104b6df8031 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Hans<div><br></div><div>We also have a ctxroot webapp with a simple JSP = in it.<br>It works as expected with the trunk of JOnAs (5.3.0-M6-SNAPSHOT)<= /div><div><br></div><div>Can you make a try with our own ctxroot.war ?</div= > <div><br></div><div>Thanks</div><div>--G</div><div><br><div class=3D"gmail_= quote">2012/1/13 Hans J. Prueller <span dir=3D"ltr"><<a href=3D"mailto:h= [email protected]">[email protected]</a>></span><br= ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1= px #ccc solid;padding-left:1ex"> Hi all,<br> <br> we upgraded recently to JOnAS 5.3 M5 on our machines. For the last years, w= e have been using<br> a custom written tiny webapp (ctxroot.war), which only consists of some art= ifacts and an "index.jsp"<br> page, that auto-forwards to a specific webapp context if somebody directly = lands at the context root.<br> <br> for example:<br> <br> we have an .ear project with an app at context =A0"/mycontrolcenter&qu= ot;<br> <br> and a "ctxroot.war" deployed at "/" =A0with index.jsp t= hat does a redirect (simply via meta-refresh tag) to "/mycontrolcenter= "<br> <br> So if some body enters: <a href=3D"http://www.myserver.com" target=3D"_blan= k">www.myserver.com</a> he / she automatically is redirected to <a href=3D"= http://www.myserver.com/mycontrolcenter" target=3D"_blank">www.myserver.com= /<u></u>mycontrolcenter</a><br> <br> <br> This was quickly made some years ago and worked fine until we switched to 5= .3 M5:<br> <br> - we also switched the web container from Tomcat6 to Tomcat7<br> ( - and mojarra implementation from 1.2 to 2.0 )<br> <br> <br> Jonas says at startup everything is ok:<br> <br> Deploying ctxroot.war<br> 2012-01-12 16:58:59,844 : INFO : Thread-13 : BaseWebContainerService.<u></u= >registerWar : =A0 =A0War ctxroot.war available at the context /.<br> 2012-01-12 16:59:00,673 : INFO : Thread-13 : J2EEServer.__info : =A0 =A0JOn= AS AS v5.3.0-M5 named 'jonas' RUNNING<br> <br> <br> BUT: when we open the browser and enter e.g. <a href=3D"http://localhost:90= 00/" target=3D"_blank">http://localhost:9000/</a> --> we get a HTTP 404 = (not found) error<br> <br> <br> can anybody =A0else reproduce this? could this somehow be related to the sw= itch to tomcat7 as servlet container or something<br> else that was changed in 5.3 ????<br> <br> <br> regards,<br> Hans<br> <br> <br> <br> <br> <br> </blockquote></div><br></div> --f46d043bdede24b21104b6df8031--