war file not deploying properly

12 views
Skip to first unread message

abalily

unread,
Mar 29, 2009, 9:11:30 AM3/29/09
to AribaWeb (aribaweb.org)
Hi all,
I created a basic application called MapApp and used and aw ant war to
create a war file as discussed here
http://groups.google.com/group/aribaweb/browse_thread/thread/10854de6de59b1b7/f4e414dd39218525?lnk=gst&q=deployment#f4e414dd39218525

which i copied from

MapApp\build\tomcat-bases\MapApp\webapps to my tomcat webapps folder.
I then started tomcat and saw the application deployed on the tomcat
console but i cannot access the application from the browser.

This is the Url I tried
http://localhost:7070/MapApp/

I get error 404. What am I missing.

An obsevation.
The war does not contain my main.awl or Main.class. Is this not
deployed with the war?

thank you.

Craig Federighi

unread,
Mar 29, 2009, 2:16:29 PM3/29/09
to arib...@googlegroups.com
Your URL needs to look like:

i.e. the "application name" is "MapApp", and the "servlet name" is "AribaWeb".  Also, when deploying to tomcat yourself, the port (7070 or 8080, or...) is of course dependent on whatever you have set in your tomcat/conf/server.xml,

- craig

Lily Aba

unread,
Mar 29, 2009, 3:49:23 PM3/29/09
to arib...@googlegroups.com
Thank you Craig. That did it. But I got this exception. looks like .awl and classes were not bundled with the war file.
Thank you

INFO: Server startup in 5156 ms
ariba.ui.aribaweb.util.AWGenericException: Unable to locate page with name "Main"

        at ariba.ui.aribaweb.core.AWConcreteApplication.createPageWithName(AWCon
creteApplication.java:502)
        at ariba.ui.aribaweb.core.AWConcreteApplication.mainPage(AWConcreteAppli
cation.java:529)
        at ariba.ui.aribaweb.core.AWComponentActionRequestHandler.processFrontDo
orRequest(AWComponentActionRequestHandler.java:599)
        at ariba.ui.servletadaptor.AWServletApplication$DefaultSessionValidatior
.handleComponentActionSessionValidationError(AWServletApplication.java:461)
        at ariba.ui.aribaweb.core.AWConcreteApplication.handleComponentActionSes
sionValidationError(AWConcreteApplication.java:795)
        at ariba.ui.aribaweb.core.AWConcreteRequestHandler.handleComponentAction
SessionValidationError(AWConcreteRequestHandler.java:90)
        at ariba.ui.aribaweb.core.AWComponentActionRequestHandler.handleRequest(
AWComponentActionRequestHandler.java:775)
        at ariba.ui.aribaweb.core.AWConcreteServerApplication._dispatchRequest(A
WConcreteServerApplication.java:497)
        at ariba.ui.aribaweb.core.AWConcreteServerApplication.dispatchRequest(AW
ConcreteServerApplication.java:541)
        at ariba.ui.aribaweb.core.AWConcreteApplication.dispatchRequest(AWConcre
teApplication.java:864)
        at ariba.ui.servletadaptor.AWDispatcherServlet.aribawebDispatcher(AWDisp
atcherServlet.java:191)
        at ariba.ui.servletadaptor.AWDispatcherServlet.doGet(AWDispatcherServlet
.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at ariba.ui.servletadaptor.AWDispatcherServlet.service(AWDispatcherServl
et.java:80)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:263)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:584)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
        at java.lang.Thread.run(Thread.java:619)

ariba.ui.aribaweb.util.AWGenericException: Unable to locate page with name "Main
"
The following exception occurred while evaluating fieldpath: : <AWKeyPathBinding
> action="$linkClicked", Component: ariba.ui.aribaweb.html.AWPrivateHyperlink@36
6573

-- Component Path:
        ariba.ui.aribaweb.core.AWGenericActionTag@13e75a5


From: Craig Federighi <craig.f...@gmail.com>
To: arib...@googlegroups.com
Sent: Sunday, March 29, 2009 8:16:29 PM
Subject: Re: war file not deploying properly

Craig Federighi

unread,
Mar 29, 2009, 5:56:33 PM3/29/09
to arib...@googlegroups.com
Hi Lily,

I believe that I know what going on...  To build your war, please try running:
ant jar war

(The war target should automatically be running the jar target for you, but it's not).

Please let us know whether or not that does the trick.

Thanks!

- craig

Lily Aba

unread,
Mar 29, 2009, 6:16:07 PM3/29/09
to arib...@googlegroups.com
Hi Craig,
That worked perfectly. Thank you so much.


Sent: Sunday, March 29, 2009 11:56:33 PM
Reply all
Reply to author
Forward
0 new messages