Re: Re: Custom ctxroot.war is successfully deployed but returns error 404 on 5.3 M5 ?

"Hans J. Prueller" <[email protected]> Thu, 19 Jan 2012 12:21:39 +0100
Newsgroups gmane.comp.java.objectweb.jonas
Organization LBS logics GmbH
Message-ID <[email protected]>
--=_ce9916095911a5be41e873f60323e0ee
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=UTF-8

  

Hi Guillaume, 

thanks for your reply. What do you mean with 

"
try with our own ctxroot.war ?" 

guess this was a type and should mean
"try with Your own ctxroot.war ?" 

-- i.e. I should give it a try with
the latest 5.3.0-M6-SNAPSHOT with our "problematic" ctxroot.war ?? 


regards, 

HANS 

Am 19.01.2012 12:02, schrieb Guillaume Sauthier
(OW2): 

> 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 
> 
>> 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 [1]
he / she automatically is redirected to www.myserver.com/mycontrolcenter
[2]
>> 
>> 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/ [3] -->
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

-- 

  

Links:
------
[1] http://www.myserver.com
[2]
http://www.myserver.com/mycontrolcenter
[3] http://localhost:9000/
[4]
mailto:[email protected]

--=_ce9916095911a5be41e873f60323e0ee
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi Guillaume,</p>
<p>thanks for your reply. What do you mean with</p>
<p>"&nbsp;try with our own ctxroot.war ?"</p>
<p>guess this was a type and should mean &nbsp;"try with Your own ctxroot=
=2Ewar ?"</p>
<p>&nbsp;</p>
<p>-- i.e. I should give it a try with the latest 5.3.0-M6-SNAPSHOT with ou=
r "problematic" ctxroot.war &nbsp;??&nbsp;</p>
<p>&nbsp;</p>
<p>regards,</p>
<p>HANS</p>
<p>&nbsp;</p>
<p>Am 19.01.2012 12:02, schrieb Guillaume Sauthier (OW2):</p>
<blockquote type=3D"cite" style=3D"padding-left:5px; border-left:#1010ff 2p=
x solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignore=
d --><!-- meta ignored -->
<p>Hi Hans</p>
<div>We also have a ctxroot webapp with a simple JSP in it.<br />It works a=
s expected with the trunk of JOnAs (5.3.0-M6-SNAPSHOT)</div>
<div>Can you make a try with our own ctxroot.war ?</div>
<div>Thanks</div>
<div>--G</div>
<div><br />
<div class=3D"gmail_quote">2012/1/13 Hans J. Prueller <span>&lt;<a href=3D"=
mailto:[email protected]">[email protected]</a>&gt;</=
span><br />
<blockquote class=3D"gmail_quote" style=3D"margin: 0  0  0  .8ex; border-le=
ft: 1px  #ccc  solid; padding-left: 1ex;">Hi all,<br /><br /> we upgraded r=
ecently to JOnAS 5.3 M5 on our machines. For the last years, we have been u=
sing<br /> a custom written tiny webapp (ctxroot.war), which only consists =
of some artifacts and an "index.jsp"<br /> page, that auto-forwards to a sp=
ecific 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 cont=
ext &nbsp;"/mycontrolcenter"<br /><br /> and a "ctxroot.war" deployed at "/=
" &nbsp;with index.jsp that does a redirect (simply via meta-refresh tag) t=
o "/mycontrolcenter"<br /><br /> So if some body enters: <a href=3D"http://=
www.myserver.com">www.myserver.com</a> he / she automatically is redirected=
 to <a href=3D"http://www.myserver.com/mycontrolcenter">www.myserver.com/<s=
pan style=3D"text-decoration: underline;"></span>mycontrolcenter</a><br /><=
br /><br /> This was quickly made some years ago and worked fine until we s=
witched to 5.3 M5:<br /><br /> - we also switched the web container from To=
mcat6 to Tomcat7<br /> ( - and mojarra implementation from 1.2 to 2.0 )<br =
/><br /><br /> Jonas says at startup everything is ok:<br /><br /> Deployin=
g ctxroot.war<br /> 2012-01-12 16:58:59,844 : INFO : Thread-13 : BaseWebCon=
tainerService.<span style=3D"text-decoration: underline;"></span>registerWa=
r : &nbsp; &nbsp;War ctxroot.war available at the context /.<br /> 2012-01-=
12 16:59:00,673 : INFO : Thread-13 : J2EEServer.__info : &nbsp; &nbsp;JOnAS=
 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:9000/">http://localhost=
:9000/</a> --&gt; we get a HTTP 404 (not found) error<br /><br /><br /> can=
 anybody &nbsp;else reproduce this? could this somehow be related to the sw=
itch to tomcat7 as servlet container or something<br /> else that was chang=
ed in 5.3 ????<br /><br /><br /> regards,<br /> Hans<br /><br /><br /><br /=
><br /><br /></blockquote>
</div>
</div>
</blockquote>
<div>-- <br />
<pre>&nbsp;</pre>
<pre>&nbsp;</pre>
</div>
</body></html>

--=_ce9916095911a5be41e873f60323e0ee--