http://docs.geoserver.org/stable/en/developer/eclipse-guide/index.html#running-and-debugging
does not work anymore.
I get a Caused by: java.lang.ClassNotFoundException:
org.osjava.sj.SimpleContextFactory
If I add the simple jndi jar I get the following error
Caused by: java.lang.IllegalArgumentException: java.io.File parameter must be a
directory. [target\test-classes\config]
Any workaround? Should i create a bug report?
26/09/2012 3:54:43 PM org.geoserver.web.Start main
INFO: Loading Jetty config from file: C:\VWork\Configurations\jetty.xml
26 Sep 15:54:43 WARN [mortbay.log] - Config error at <New
class="org.mortbay.jetty.plus.naming.Resource"><Arg>jdbc/xxxx</Arg><Arg>
<New class="org.apache.commons.dbcp.BasicDataSource"><Set
name="driverClassName">com.microsoft.sqlserver.jdbc.SQLServerDriver</Set><Set
name="url">jdbc:sqlserver://xxx.xxx.xxx.xx;instanceName=MSSQL2008;database=xxx;</Set><Set
name="username">user</Set><Set name="password">xxxxxx</Set><Set
name="maxActive">-1</Set><Set name="maxIdle">10</Set><Set
name="minIdle">0</Set><Set name="maxWait">10000</Set><Set
name="minEvictableIdleTimeMillis">300000</Set><Set
name="timeBetweenEvictionRunsMillis">300000</Set><Set
name="numTestsPerEvictionRun">20</Set><Set
name="poolPreparedStatements">true</Set><Set
name="maxOpenPreparedStatements">100</Set><Set
name="testOnBorrow">true</Set><Set name="validationQuery">SELECT
CURRENT_TIMESTAMP</Set></New>
26/09/2012 3:54:43 PM org.geoserver.web.Start main
SEVERE: Could not start the Jetty server: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:600)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:182)
at org.geoserver.web.Start.main(Start.java:113)
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class:
org.osjava.sj.SimpleContextFactory [Root exception is
java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory]
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.java:491)
at org.mortbay.jetty.plus.naming.NamingEntry.<init>(NamingEntry.java:360)
at org.mortbay.jetty.plus.naming.Resource.<init>(Resource.java:47)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 14 more
26/09/2012 3:53:11 PM org.geoserver.web.Start main
INFO: Loading Jetty config from file: C:\VWork\Configurations\jetty.xml
26 Sep 15:53:25 WARN [mortbay.log] - Config error at <New
class="org.mortbay.jetty.plus.naming.Resource"><Arg>jdbc/xxxx</Arg><Arg>
<New class="org.apache.commons.dbcp.BasicDataSource"><Set
name="driverClassName">com.microsoft.sqlserver.jdbc.SQLServerDriver</Set><Set
name="url">jdbc:sqlserver://xxx.xxx.xxx.xx;instanceName=MSSQL2008;database=xxx;</Set><Set
name="username">user</Set><Set name="password">xxxxxx</Set><Set
name="maxActive">-1</Set><Set name="maxIdle">10</Set><Set
name="minIdle">0</Set><Set name="maxWait">10000</Set><Set
name="minEvictableIdleTimeMillis">300000</Set><Set
name="timeBetweenEvictionRunsMillis">300000</Set><Set
name="numTestsPerEvictionRun">20</Set><Set
name="poolPreparedStatements">true</Set><Set
name="maxOpenPreparedStatements">100</Set><Set
name="testOnBorrow">true</Set><Set name="validationQuery">SELECT
CURRENT_TIMESTAMP</Set></New>
</Arg></New>
26/09/2012 3:53:25 PM org.geoserver.web.Start main
SEVERE: Could not start the Jetty server: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:600)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:182)
at org.geoserver.web.Start.main(Start.java:113)
Caused by: java.lang.IllegalArgumentException: java.io.File parameter must be a
directory. [target\test-classes\config]
at org.osjava.sj.loader.JndiLoader.loadDirectory(JndiLoader.java:110)
at org.osjava.sj.loader.JndiLoader.loadDirectory(JndiLoader.java:104)
at org.osjava.sj.SimpleContext.<init>(SimpleContext.java:98)
at
org.osjava.sj.SimpleContextFactory.getInitialContext(SimpleContextFactory.java:69)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.java:491)
at org.mortbay.jetty.plus.naming.NamingEntry.<init>(NamingEntry.java:360)
at org.mortbay.jetty.plus.naming.Resource.<init>(Resource.java:47)
... 8 more
Victor Tey
Software Engineer
ASRDC
CSIRO Earth Science and Resource Engineering
Phone: [cid:[email protected]] +61 8 6436 8944
[email protected]<mailto:[email protected]> |
www.csiro.au<http://www.csiro.au/> |
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington
WA 6151
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any
unauthorised use or disclosure is prohibited. If you have received this email
in error, please delete it immediately and notify the sender by return email.
Thank you. To the extent permitted by law, CSIRO does not represent, warrant
and/or guarantee that the integrity of this communication has been maintained
or that the communication is free of errors, virus, interception or
interference.
Please consider the environment before printing this email.
<<inline: image001.gif>>
<<inline: image002.gif>>
<<inline: image003.gif>>
<<inline: image004.gif>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
