|
Replies:
3
-
Last Post:
Jul 5, 2009 1:42 AM
by: Dick Davies
|
|
|
|
|
|
|
JRoR WAR deployment to GF3 fails
Posted:
Jun 25, 2009 11:51 AM
|
|
|
Relatively new to Glassfish and trying to deploy a WAR file to a GF3 (latest) server as the default app.
The deployment seems to succeed, but when I try to view it, the browser only shows a 404. The logs don't show much interesting (at least to me): here's the last three entries:
[#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: WebModule[] ServletContext.log():Rails init time: 21126ms|#]
[#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: WebModule[] ServletContext.log():Runtime 0 loaded|#]
[#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: WebModule[] ServletContext.log():Requests can now be processed|#]
:: which looks pretty unremarkable.
This same WAR file deploys fine on a Tomcat 6.0.20 server, and the app even runs from its normal directory using the GF gem.
Not even sure what I should be looking at, so all suggestions are welcome 
-- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
Re: JRoR WAR deployment to GF3 fails
Posted:
Jun 29, 2009 7:15 AM
in response to: Hassan Schroeder
|
|
|
Probably worth checking what URL is been deployed under.
How did you deploy it (did you set a context root)? It defaults to '/${warfilename}/' unless you explicitly set one.
On Thu, Jun 25, 2009 at 7:51 PM, Hassan Schroeder<hassan.schroeder@gmail.com> wrote: > Relatively new to Glassfish and trying to deploy a WAR file to a GF3 > (latest) server as the default app. > > The deployment seems to succeed, but when I try to view it, the > browser only shows a 404. The logs don't show much interesting > (at least to me): here's the last three entries: > > [#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: > WebModule[] ServletContext.log():Rails init time: 21126ms|#] > > [#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: > WebModule[] ServletContext.log():Runtime 0 loaded|#] > > [#|2009-06-25T11:18:07.470-0700|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-1;|PWC1412: > WebModule[] ServletContext.log():Requests can now be processed|#] > > :: which looks pretty unremarkable. > > This same WAR file deploys fine on a Tomcat 6.0.20 server, and > the app even runs from its normal directory using the GF gem. > > Not even sure what I should be looking at, so all suggestions are > welcome  :-) > > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: JRoR WAR deployment to GF3 fails
Posted:
Jun 29, 2009 7:42 AM
in response to: Dick Davies
|
|
|
On Mon, Jun 29, 2009 at 7:15 AM, Dick Davies<rasputnik@hellooperator.net> wrote: > Probably worth checking what URL is been deployed under. > > How did you deploy it (did you set a context root)? It defaults to > '/${warfilename}/' unless you explicitly set one.
I used the admin gui to set the context as "/", plus added a 'sun-web.xml' file to the WEB-INF dir:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN' 'http://www.sun.com/softwa re/appserver/dtds/sun-web-app_2_4-1.dtd'> <sun-web-app> <context-root>/</context-root> </sun-web-app>
And of course I also tried accessing the URL /${warfilename} just for grins, but no different result.
Anything else I can check?
-- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|
|
|
|
Re: JRoR WAR deployment to GF3 fails
Posted:
Jul 5, 2009 1:42 AM
in response to: Hassan Schroeder
|
|
|
Did you get any errors when you deployed it? Worth checking your logs etc.
On Mon, Jun 29, 2009 at 3:42 PM, Hassan Schroeder<hassan.schroeder@gmail.com> wrote: > On Mon, Jun 29, 2009 at 7:15 AM, Dick Davies<rasputnik@hellooperator.net> wrote: >> Probably worth checking what URL is been deployed under. >> >> How did you deploy it (did you set a context root)? It defaults to >> '/${warfilename}/' unless you explicitly set one. > > I used the admin gui to set the context as "/", plus added a > 'sun-web.xml' file to the WEB-INF dir: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD > Application Server 8.1 Servlet 2.4//EN' 'http://www.sun.com/softwa > re/appserver/dtds/sun-web-app_2_4-1.dtd'> > <sun-web-app> > Â <context-root>/</context-root> > </sun-web-app> > > And of course I also tried accessing the URL /${warfilename} just > for grins, but no different result. > > Anything else I can check? > > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net
|
|
|
|
|