cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: C2.2 jetty:run
Date Sat, 12 Apr 2008 11:33:57 GMT
S├ębastien Geindre pisze:
> I have pb to start my application with maven and jetty plugin
> 
> [INFO] Starting jetty 6.1.5 ...
> 2008-04-11 08:48:27.173::INFO:  jetty-6.1.5
> 2008-04-11 08:48:27.779::WARN:  EXCEPTION
> java.lang.NullPointerException
>   at javax.naming.spi.NamingManager.getPlusPath(libgcj.so.9)
>   at javax.naming.spi.NamingManager.getStateToBind(libgcj.so.9)
>   at org.mortbay.naming.NamingContext.bind(NamingContext.java:339)
>   at org.mortbay.naming.NamingContext.bind(NamingContext.java:417)
>   at 
> org.mortbay.naming.java.javaRootURLContext.<clinit>(javaRootURLContext.java:80)

> 
>   at java.lang.Class.initializeClass(libgcj.so.9)
> ..
> 
> [INFO] Started Jetty Server
> 2008-04-11 08:48:29.126::WARN:  EXCEPTION
> java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl 
> cannot be cast to java.nio.channels.SocketChannel
>   at 
> org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:542) 
> 
>   at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:168)
>   at 
> org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)

> 
>   at 
> org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:514) 
> 
>   at 
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) 
> 
> 
> 
> It seems to be a problem with libgcj.so.9.
> Is here any pb with JDK version ? Jetty version ?
> 
> java -version
> java version "1.5.0_15"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
> Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode)
> 
> uname -a
> Linux xxxxxxxx.fr 2.6.22.18-desktop586-1mdv #1 SMP Mon Feb 11 12:21:41 
> EST 2008 i686 Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz GNU/Linux
> 
> thanks all.

It looks like a classpath problem. For some reason libraries from libgcj has been attached
to you 
classpath. You can verify it with appening -X option to mvn command that will give you a detailed

info about classpath.

In short: it looks like a problem with your OS configuration.

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message