13:11:20,236 INFO ~ Starting
/mnt/var/staxapps/staxapp8202/snazcat/install/webapp.war/WEB-INF/application
13:11:20,238 INFO ~ Module stax is available
(/mnt/var/staxapps/staxapp8202/snazcat/install/webapp.war/WEB-INF/application/../modules/stax-1.0)
13:11:20,487 INFO ~ Precompiling ...
13:11:29,194 INFO ~ Application 'jackistash' is now started !
Mar 26, 2010 1:11:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9202
Mar 26, 2010 1:11:29 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9202
Mar 26, 2010 1:11:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8202
Mar 26, 2010 1:11:29 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8202
Mar 26, 2010 1:11:34 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the
request processing
com.thoughtworks.xstream.io.StreamException: : input contained no data
at
com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:80)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94)
at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48)
at
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44)
at
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:869)
at
com.staxnet.appserver.ServerCallbackClient.readResult(ServerCallbackClient.java:98)
at
com.staxnet.appserver.ServerCallbackClient.invokeWithResult(ServerCallbackClient.java:68)
at
com.staxnet.appserver.ServerCallbackClient.renewApplicationTicket(ServerCallbackClient.java:37)
at
net.stax.appserver.webapp.PrivateApplicationValve.isAuthenticated(PrivateApplicationValve.java:104)
at
net.stax.appserver.webapp.PrivateApplicationValve.invoke(PrivateApplicationValve.java:56)
at
net.stax.appserver.admin.StaxApplicationQueryValve.invoke(StaxApplicationQueryValve.java:42)
at
net.stax.appserver.webapp.RequestSetupValve.invoke(RequestSetupValve.java:31)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at
com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:63)
... 20 more
I'm using the latest Play 1.1 and the stax module. I followed the
directions in the stax module documentation
(http://www.playframework.org/modules/stax-1.0/home). I created an empty
Play app with the stax module like this:
> play new appname --with=stax
and built and deployed the war:
> play war ./yourProject -o project --zip
> stax app:deploy -a login/yourProject -u login -p pass project.war
[I changed the names to match my stax account of course]
Any suggestions? I know the play app is "empty", but still seems it
should deploy and run ok.
Thanks,
Lee
Sorry, the Stax module was broken for a few days because of a change
in the play script. You can install the 1.0.1 now.
It will work for newly created application, for existing applications
you need to manually create a file in:
<app_dir>/war/WEB-INF
called "stax-application.xml", with the following content:
<?xml version="1.0"?>
<stax-web-app xmlns="http://www.stax.net/xml/webapp/1">
</stax-web-app>
--
Erwan Loisant
01:01:56,272 INFO ~ Starting
/mnt/var/staxapps/staxapp8277/snazcat/install/webapp.war/WEB-INF/application
01:01:56,274 INFO ~ Module stax is available
(/mnt/var/staxapps/staxapp8277/snazcat/install/webapp.war/WEB-INF/application/../modules/stax-1.0.1)
01:01:56,500 WARN ~ You're running Play! in DEV mode
Mar 29, 2010 1:01:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9277
Mar 29, 2010 1:01:56 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9277
Mar 29, 2010 1:01:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8277
Mar 29, 2010 1:01:56 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8277
Mar 29, 2010 1:02:27 AM org.apache.catalina.connector.CoyoteAdapter service
What am I doing wrong?
Thanks,
Lee
I'm not sure your error is link to play, it may be a programming error
(does you program runs locally?)
Here are the instruction to deploy a Play app on Stax, independently
from the module.
http://wiki.stax.net/w/index.php/Play
(actually all the module does is to automate the stuff on that page).
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
>
--
Erwan Loisant
play new appname --with=stax
When I run that app with play, it runs fine. I get the "default" play
app. However, when I try to run the app using stax (stax run), I get:
running: C:\java\stax-sdk-0.3.6\scripts\run.groovy
ERROR: This is not a valid project dir
So obviously, stax does not think this is a valid stax app. When I
create an "empty" stax app using this command line:
stax create appname
Then I run that app using "stax run", it runs fine.
Bottom line: I'm still unclear about how to create a simple app that is
*both* stax and Play!
Thanks,
Lee
But also, it seems to me that the app should run using "stax run" (and
with "play run").
Lee