You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Ralf Eichinger <ra...@pixotec.de> on 2010/12/15 17:41:31 UTC

trunk mvn jetty:run-war not working

after building roller with "mvn install" (successfully),
I wanted to start the demo with "mvn jetty:run-war"

When I call: http://localhost:8080/roller
I get: Error 503 SERVICE_UNAVAILABLE

Reason (in log file):
2010-12-15 15:48:06.139:WARN::Configuration problem at <resource-ref>|       
<res-ref-name>jdbc/rollerdb</res-ref-name>|       
<res-type>javax.sql.DataSource</res-type>|       
<res-auth>Container</res-auth>      |       
<mapped-name>jdbc/roller</mapped-name>|    </resource-ref>:
java.lang.IllegalStateException: Nothing to bind for name
javax.sql.DataSource/default
2010-12-15 15:48:06.139:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1370529{/roller,/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/target/roller.war}
javax.servlet.UnavailableException: Configuration problem
	at
org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:299)

Seems that the database is not setup correctly?
-- 
View this message in context: http://old.nabble.com/trunk-mvn-jetty%3Arun-war-not-working-tp30465549s12275p30465549.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: trunk mvn jetty:run-war not working

Posted by Ralf Eichinger <ra...@pixotec.de>.
Hi Dave,
thank you for your fix!
Now it works: I can register and login after starting with "mvn jetty:run"

Thank you!

-- 
View this message in context: http://old.nabble.com/trunk-mvn-jetty%3Arun-war-not-working-tp30465549s12275p30494355.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: trunk mvn jetty:run-war not working

Posted by Dave <sn...@gmail.com>.
I found and fixed this problem so please let me know if you're still
experiencing difficulties.

Thanks,
Dave


On Fri, Dec 17, 2010 at 10:00 AM, Ralf Eichinger
<ra...@pixotec.de> wrote:
>
>
>
> David Johnson-28 wrote:
>>
>> Does it work if you do the steps below?
>>
>>    cd trunk
>>    mvn install
>>    cd weblogger-webapp
>>    mvn jetty:run
>>
>
> I did start "mvn jetty-run-war" in the weblogger-webapp directory, too...
> Now I did start it like above (with "mvn jetty:run"), with the same result:
>
> 2010-12-17 15:48:14.429:WARN::Configuration problem at <resource-ref>|
> <res-ref-name>jdbc/rollerdb</res-ref-name>|
> <res-type>javax.sql.DataSource</res-type>|
> <res-auth>Container</res-auth>      |
> <mapped-name>jdbc/roller</mapped-name>|    </resource-ref>:
> java.lang.IllegalStateException: Nothing to bind for name
> javax.sql.DataSource/default
> 2010-12-17 15:48:14.430:WARN::Failed startup of context
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1a88328{/roller,/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/src/main/webapp}
>
> seems that jndi binding is not working... and where does "default" in
> "javax.sql.DataSource/default" come from?...
>
> Is it working at your development machine after a fresh checkout of trunk?
> --
> View this message in context: http://old.nabble.com/trunk-mvn-jetty%3Arun-war-not-working-tp30465549s12275p30481636.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>

Re: trunk mvn jetty:run-war not working

Posted by Ralf Eichinger <ra...@pixotec.de>.


David Johnson-28 wrote:
> 
> Does it work if you do the steps below?
> 
>    cd trunk
>    mvn install
>    cd weblogger-webapp
>    mvn jetty:run
> 

I did start "mvn jetty-run-war" in the weblogger-webapp directory, too...
Now I did start it like above (with "mvn jetty:run"), with the same result:

2010-12-17 15:48:14.429:WARN::Configuration problem at <resource-ref>|       
<res-ref-name>jdbc/rollerdb</res-ref-name>|       
<res-type>javax.sql.DataSource</res-type>|       
<res-auth>Container</res-auth>      |       
<mapped-name>jdbc/roller</mapped-name>|    </resource-ref>:
java.lang.IllegalStateException: Nothing to bind for name
javax.sql.DataSource/default
2010-12-17 15:48:14.430:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1a88328{/roller,/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/src/main/webapp}

seems that jndi binding is not working... and where does "default" in
"javax.sql.DataSource/default" come from?...

Is it working at your development machine after a fresh checkout of trunk?
-- 
View this message in context: http://old.nabble.com/trunk-mvn-jetty%3Arun-war-not-working-tp30465549s12275p30481636.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: trunk mvn jetty:run-war not working

Posted by Dave <sn...@gmail.com>.
On Wed, Dec 15, 2010 at 11:41 AM, Ralf Eichinger
<ra...@pixotec.de> wrote:
> after building roller with "mvn install" (successfully),
> I wanted to start the demo with "mvn jetty:run-war"
>
> When I call: http://localhost:8080/roller
> I get: Error 503 SERVICE_UNAVAILABLE

Does it work if you do the steps below?

   cd trunk
   mvn install
   cd weblogger-webapp
   mvn jetty:run

I'd like jetty:run to work whether it is run from trunk or
trunk/weblogger-webapp, but I think that currently you must be in the
weblogger-webapp directory for jetty to work,

- Dave