Re: I got stuck while trying to deploy a WebObjects based application (Web-CAT)

Filippo Laurìa <[email protected]> Tue, 30 Apr 2013 20:02:13 +0200
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <CAKdmw2iN5H9RYei18ge5ddAhYWSK2yKUiEDWvKBMafACbmBfvg@mail.gmail.com>
--===============1312850724==
Content-Type: multipart/alternative; boundary=001a11c2653a121cfe04db97cdf1

--001a11c2653a121cfe04db97cdf1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

2013/4/30 Jesse Tayler <[email protected]>

>
> well, I don't know
>
> but your entry point is a cgi-bin call to a direct action called
> "default", at least from what I recall -


I'm not sure I understood WebObjects mechanisms, so let's suppose that I
deployed a simple WebObjects application as servlet using a war file.

What I obtain it's a directory, into my Tomcat's webroot named, for
example, "Web-CAT". Into "Web-CAT" I have got two directories too:
- WEB-INF
- META-INF
(it is like this for every kind of servlet, i guess) and an html file
index.html

This file uses HTTP headers to redirect navigation to this url:

http://localhost:8080/Web-CAT/WebObjects/Web-CAT.woa,

that actually doesn't exists "as is" into my webroot directory, I mean
there's no directory

/var/lib/tomcat7/webapps/Web-CAT/WebObjects/Web-CAT.coa into my file system=
.

so, one might ask if you can access this URL directly or if there is any
> obvious reason that you'd not be able to access that directory maybe?
>
> doesn't sound like your app is being hit at all by what you describe.
>
>
So, if I well understood what you asked, the answer is no, i cannot reach
directly that position. Now, my question is, generally for a WebObjects
based application, what files are supposed to be into deployment directory?
I mean, how a directory containing a generic WOApp is structured?

Thanks for answering


> On Apr 29, 2013, at 5:41 PM, Filippo Laur=ECa <[email protected]>
> wrote:
>
> > Hi everyone,
> > as you can read from subject I got stuck while trying to deploy Web-CAT
> on my Ubuntu 12.10 + Tomcat7.
> >
> > Before I start talking about the problem, let's say that my environment
> is based on Eclipse + WebObjects 543 + Project Wonder Frameworks.
> >
> > Web-CAT sources are a bunch of Eclipse projects: there's no instruction
> on how to build them, so after searching a little, I found an Ant build.x=
ml
> file into Web-CAT project. Easy, I thought.
> >
> > I was wrong, but after some tries I was able to build a war deployable
> file.
> >
> > When I put this into my tomcat's webroot I had a problem on deployment
> that is well described here [1]. I think I solved this modifying web.xml
> file according to this article [2].
> >
> > Now Tomcat can deploy my war, but when trying to access default first
> page of the application (Login Page) I encounter a 404 Tomcat's standard
> HTTP error page.
> >
> > It seems that "entry point" (sorry for non-technical terms) is missing.
> >
> > What do you think about it?
> >
> > Thanks for answering.
> >
> > Greetings.
> >
> > [1]:
> http://stackoverflow.com/questions/16286781/cannot-deploy-web-cat-a-webob=
jects-based-application-on-tomcat7-encounte
> > [2]:
> http://wiki.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as=
+a+servlet#One+last+thing
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.co=
m
> >
> > This email sent to [email protected]
>
>

--001a11c2653a121cfe04db97cdf1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">2013/4/30 Jesse Tayler <span dir=3D"ltr">&lt;<a href=3D"mailto:jtay=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span><br><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">
<br>
well, I don&#39;t know<br>
<br>
but your entry point is a cgi-bin call to a direct action called &quot;defa=
ult&quot;, at least from what I recall -
=A0=A0</blockquote><div>=A0</div><div><span id=3D"result_box" class=3D"" la=
ng=3D"en"><span class=3D"">I&#39;m not sure</span> <span class=3D"">I under=
stood WebObjects mechanisms, so let&#39;s suppose that I deployed a simple =
WebObjects application as servlet using a war file.<br>
<br>What I obtain it&#39;s a directory, into my Tomcat&#39;s webroot named,=
 for example, &quot;Web-CAT&quot;. Into &quot;Web-CAT&quot; I have got two =
directories too:<br></span></span></div><div><span id=3D"result_box" class=
=3D"" lang=3D"en"><span class=3D"">- WEB-INF<br>
</span></span></div><div><span id=3D"result_box" class=3D"" lang=3D"en"><sp=
an class=3D"">- META-INF<br></span></span></div><div><span id=3D"result_box=
" class=3D"" lang=3D"en"><span class=3D"">(it is like this for every kind o=
f servlet, i guess)</span></span><span id=3D"result_box" class=3D"" lang=3D=
"en"><span class=3D""> and an html file index.html<br>
<br></span></span></div><div><span id=3D"result_box" class=3D"" lang=3D"en"=
><span class=3D"">This file uses HTTP headers to redirect navigation to thi=
s url:<br><br></span></span></div><div><span id=3D"result_box" class=3D"" l=
ang=3D"en"><span class=3D""><a href=3D"http://localhost:8080/Web-CAT/WebObj=
ects/Web-CAT.woa">http://localhost:8080/Web-CAT/WebObjects/Web-CAT.woa</a>,=
<br>
<br>that actually doesn&#39;t exists &quot;as is&quot; into my webroot dire=
ctory, I mean there&#39;s no directory<br><br>/var/lib/tomcat7/webapps/Web-=
CAT/WebObjects/Web-CAT.coa into my file system.<br></span></span></div>
<div><span id=3D"result_box" class=3D"" lang=3D"en"><span class=3D""><br></=
span></span></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
so, one might ask if you can access this URL directly or if there is any ob=
vious reason that you&#39;d not be able to access that directory maybe?<br>
<br>
doesn&#39;t sound like your app is being hit at all by what you describe.<b=
r><div><div class=3D"h5">
<br></div></div></blockquote><div><br></div><div>So, if I well understood w=
hat you asked, the answer is no, i cannot reach directly that position. Now=
, my question is, generally for a WebObjects based application, what files =
are supposed to be into deployment directory? I mean, how a directory conta=
ining a generic WOApp is structured?<br>
<br></div><div>Thanks for answering<br></div><div>=A0</div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex"><div><div class=3D"h5">
On Apr 29, 2013, at 5:41 PM, Filippo Laur=ECa &lt;<a href=3D"mailto:filippo=
[email protected]">[email protected]</a>&gt; wrote:<br>
<br>
&gt; Hi everyone,<br>
&gt; as you can read from subject I got stuck while trying to deploy Web-CA=
T on my Ubuntu 12.10 + Tomcat7.<br>
&gt;<br>
&gt; Before I start talking about the problem, let&#39;s say that my enviro=
nment is based on Eclipse + WebObjects 543 + Project Wonder Frameworks.<br>
&gt;<br>
&gt; Web-CAT sources are a bunch of Eclipse projects: there&#39;s no instru=
ction on how to build them, so after searching a little, I found an Ant bui=
ld.xml file into Web-CAT project. Easy, I thought.<br>
&gt;<br>
&gt; I was wrong, but after some tries I was able to build a war deployable=
 file.<br>
&gt;<br>
&gt; When I put this into my tomcat&#39;s webroot I had a problem on deploy=
ment that is well described here [1]. I think I solved this modifying web.x=
ml file according to this article [2].<br>
&gt;<br>
&gt; Now Tomcat can deploy my war, but when trying to access default first =
page of the application (Login Page) I encounter a 404 Tomcat&#39;s standar=
d HTTP error page.<br>
&gt;<br>
&gt; It seems that &quot;entry point&quot; (sorry for non-technical terms) =
is missing.<br>
&gt;<br>
&gt; What do you think about it?<br>
&gt;<br>
&gt; Thanks for answering.<br>
&gt;<br>
&gt; Greetings.<br>
&gt;<br>
&gt; [1]: <a href=3D"http://stackoverflow.com/questions/16286781/cannot-dep=
loy-web-cat-a-webobjects-based-application-on-tomcat7-encounte" target=3D"_=
blank">http://stackoverflow.com/questions/16286781/cannot-deploy-web-cat-a-=
webobjects-based-application-on-tomcat7-encounte</a><br>

&gt; [2]: <a href=3D"http://wiki.wocommunity.org/display/WO/Creating+a+wond=
er+app+to+deploy+as+a+servlet#One+last+thing" target=3D"_blank">http://wiki=
.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as+a+servlet#On=
e+last+thing</a><br>

</div></div>&gt; _______________________________________________<br>
&gt; Do not post admin requests to the list. They will be ignored.<br>
&gt; Webobjects-dev mailing list =A0 =A0 =A0(<a href=3D"mailto:Webobjects-d=
[email protected]">[email protected]</a>)<br>
&gt; Help/Unsubscribe/Update your Subscription:<br>
&gt; <a href=3D"https://lists.apple.com/mailman/options/webobjects-dev/jtay=
ler%40oeinc.com" target=3D"_blank">https://lists.apple.com/mailman/options/=
webobjects-dev/jtayler%40oeinc.com</a><br>
&gt;<br>
&gt; This email sent to <a href=3D"mailto:[email protected]">jtayler@oeinc.=
com</a><br>
<br>
</blockquote></div><br>
</div></div>

--001a11c2653a121cfe04db97cdf1--

--===============1312850724==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev

--===============1312850724==--