Hello!!
First of all I am GIS user, not developer nor server admin. I’ve always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I’ve installed Tomcat from the Fedora-DVD (Applications> Add-remove software), and I’ve downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn’t start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wfsGetCapabilitiesKvpReader’ defined in URL [jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at org.eclipse.emf.ecore.EPackage$Registry.(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.geoserver.wfs.kvp.WFSKvpRequestReader.(WFSKvpRequestReader.java:29)
at org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so)
at org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so)
at org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so)
at java.lang.Class.initializeClass(libgcj.so.8rh)
…44 more
Which version of java and jdk are you using? It seems there are issues with emf dependencies. Can you check your default java classpath and determine if there any emf jars around?
Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin. I've always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I've installed Tomcat from the Fedora-DVD (Applications> Add-remove software), and I've downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn't start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wfsGetCapabilitiesKvpReader' defined in URL [jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at org.eclipse.emf.ecore.EPackage$Registry.<clinit>(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.<clinit>(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.geoserver.wfs.kvp.WFSKvpRequestReader.<init>(WFSKvpRequestReader.java:29)
at org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.<init>(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...44 more
!DSPAM:4007,47fd1028250613668746562!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4007,47fd1028250613668746562!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,47fd1028250613668746562!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
Downloading Fedora's Tomcat package should have caused yum to grab gcj as a
dependency (you can see that gcj is being used instead of sun java by the
errors like "java.lang.Class.initializeClass(libgcj.so.8rh)").
Make sure that you have JAVA_HOME set to the installation directory for Sun
Java and double check that "java -version" reports that you are running Sun
Java (both of these as the same user that will be running tomcat).
(Disclaimer: I run fedora but have always used tomcat directly from
http://tomcat.apache.org/ rather than running the packaged tomcat.)
Hope this helps,
-David Winslow
On Wednesday 09 April 2008 13:11:13 Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin. I've always
worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I've installed Tomcat from the Fedora-DVD (Applications> Add-remove
software), and I've downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn't start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception sending
context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'wfsGetCapabilitiesKvpReader' defined in URL
[jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/a
pplicationContext.xml]: Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw
exception; nested exception is java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw
exception; nested exception is java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPacka
geRegistryImpl.java:49) at
org.eclipse.emf.ecore.EPackage$Registry.<clinit>(EPackage.java:81) at
java.lang.Class.initializeClass(libgcj.so.8rh)
at net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.<clinit>(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.geoserver.wfs.kvp.WFSKvpRequestReader.<init>(WFSKvpRequestReader.java:2
9) at
org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.<init>(GetCapabilitie
sKvpRequestReader.java:15) at
java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.insta
ntiate(SimpleInstantiationStrategy.java:49) at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
y.instantiateBean(AbstractAutowireCapableBeanFactory.java:453) at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
y.createBean(AbstractAutowireCapableBeanFactory.java:333) at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
actBeanFactory.java:226) at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
actBeanFactory.java:147) at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns
tantiateSingletons(DefaultListableBeanFactory.java:275) at
org.springframework.context.support.AbstractApplicationContext.refresh(Abst
ractApplicationContext.java:318) at
org.springframework.web.context.support.AbstractRefreshableWebApplicationCo
ntext.refresh(AbstractRefreshableWebApplicationContext.java:134) at
org.springframework.web.context.ContextLoader.createWebApplicationContext(C
ontextLoader.java:230) at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Con
textLoader.java:156) at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Co
ntextLoaderListener.java:48) at
org.apache.catalina.core.StandardContext.listenerStart(
catalina-5.5.26.jar.so)
at
org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so) at
org.apache.catalina.manager.ManagerServlet.start(
catalina-manager-5.5.26.jar.so)
at org.apache.catalina.manager.HTMLManagerServlet.start(
catalina-manager-5.5.26.jar.so)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(
catalina-manager-5.5.26.jar.so)
at javax.servlet.http.HttpServlet.service(
tomcat5-servlet-2.4-api-5.5.26.jar.so)
at javax.servlet.http.HttpServlet.service(
tomcat5-servlet-2.4-api-5.5.26.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
catalina-5.5.26.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardWrapperValve.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardContextValve.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardHostValve.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.valves.ErrorReportValve.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.core.StandardEngineValve.invoke(
catalina-5.5.26.jar.so)
at org.apache.catalina.connector.CoyoteAdapter.service(
catalina-5.5.26.jar.so)
at org.apache.coyote.http11.Http11Processor.process(
tomcat-http-5.5.26.jar.so)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
Connection( tomcat-http-5.5.26.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
tomcat-util-5.5.26.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
tomcat-util-5.5.26.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
tomcat-util-5.5.26.jar.so)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at org.apache.catalina.loader.WebappClassLoader.loadClass(
catalina-5.5.26.jar.so)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
catalina-5.5.26.jar.so)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...44 more
!DSPAM:4040,47fd1028250601012714783!
Hello, thanks for answering…
I’ve installed JDK1.5.0_15 which is in /usr/java/jdk1.5.0._15
Executing “java -version” reports 1.7.0 !!!
I’m logging as root.
Where can I set JAVA_HOME, for root?.
I’ve run (from terminal): export JAVA_HOME=/usr/java/jdk1.5.0._15 but nothing seems to happen.
Sorry if I’m asking basic questions, but I’m starting with Linux.
Thanks
"export JAVA_HOME=/usr/java/jdk1.5.0_15" should be fine; however it will only
have an effect on other commands run in the same shell. You can add the same
line to the end of "~/.bashrc" to have it applied for new shell instances.
You should also make sure that you are setting it for the correct user, which
is probably not 'root' for the Fedora tomcat package.
-David
PS: 1.7.0 is the java version returned by the icedtea java vm, see
http://icedtea.classpath.org/wiki/Main_Page for details
On Thursday 10 April 2008 13:18:23 Leandro R wrote:
Hello, thanks for answering...
I've installed JDK1.5.0_15 which is in /usr/java/jdk1.5.0._15
Executing "java -version" reports 1.7.0 !!!!
I'm logging as root.
Where can I set JAVA_HOME, for root?.
I've run (from terminal): export JAVA_HOME=/usr/java/jdk1.5.0._15 but
nothing seems to happen.
Sorry if I'm asking basic questions, but I'm starting with Linux.
Thanks
!DSPAM:4040,47fe4be4135291096210785!
I *think* the "real" way to do this is the following (if it's like the
centos or opensuse way, and I'm 90% sure it is)
1) Download the jpackage "java-nopackage" source rpm
2) Install that source rpm
3) Download the appropriate sun jdk for the jpackage srpm you just
installed and put it into the /usr/src/redhat/SOURCES directory
4) $ rpmbuild -bb xxx.spec
5) install the just-built rpms for java
6) update-alternatives --config java
-> set it to the jdk you just installed
7) update-alternatives --config javac
-> set it to the jdk you just installed
It's not trivial, but that's the "right" way (I think).
--saul
On Thu, 2008-04-10 at 16:10 -0400, David Winslow wrote:
"export JAVA_HOME=/usr/java/jdk1.5.0_15" should be fine; however it will only
have an effect on other commands run in the same shell. You can add the same
line to the end of "~/.bashrc" to have it applied for new shell instances.
You should also make sure that you are setting it for the correct user, which
is probably not 'root' for the Fedora tomcat package.
-David
PS: 1.7.0 is the java version returned by the icedtea java vm, see
http://icedtea.classpath.org/wiki/Main_Page for details
On Thursday 10 April 2008 13:18:23 Leandro R wrote:
> Hello, thanks for answering...
>
> I've installed JDK1.5.0_15 which is in /usr/java/jdk1.5.0._15
> Executing "java -version" reports 1.7.0 !!!!
>
> I'm logging as root.
> Where can I set JAVA_HOME, for root?.
> I've run (from terminal): export JAVA_HOME=/usr/java/jdk1.5.0._15 but
> nothing seems to happen.
>
> Sorry if I'm asking basic questions, but I'm starting with Linux.
>
> Thanks
>
>
> !DSPAM:4040,47fe4be4135291096210785!
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hi,
I haven't mentioned this before because it's a bit more than you need, and possibly messy once you have systemwide java and Tomcat installed, but if you get stuck you can try the instructions for CentOS 5.1:
http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install
Not tested on Fedora 8, but it's not that different from CentOS / RHEL.
-Arne
Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin. I've always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I've installed Tomcat from the Fedora-DVD (Applications> Add-remove software), and I've downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn't start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wfsGetCapabilitiesKvpReader' defined in URL [jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at org.eclipse.emf.ecore.EPackage$Registry.<clinit>(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.<clinit>(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.geoserver.wfs.kvp.WFSKvpRequestReader.<init>(WFSKvpRequestReader.java:29)
at org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.<init>(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...44 more
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4038,47fd1027250541804284693!
Finally I could make it. !!!
I’ve removed Java and Tomcat installed with Fedora, and downloaded separatly.
They are running now.
Thank you all.
2008/4/10, Arne Kepp <ak@anonymised.com>:
Hi,
I haven’t mentioned this before because it’s a bit more than you need, and possibly messy once you have systemwide java and Tomcat installed, but if you get stuck you can try the instructions for CentOS 5.1:
http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install
Not tested on Fedora 8, but it’s not that different from CentOS / RHEL.
-Arne
Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin. I’ve always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I’ve installed Tomcat from the Fedora-DVD (Applications> Add-remove software), and I’ve downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn’t start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘wfsGetCapabilitiesKvpReader’ defined in URL [jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not instantiate class [org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at org.eclipse.emf.ecore.EPackage$Registry.(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at org.geoserver.wfs.kvp.WFSKvpRequestReader.(WFSKvpRequestReader.java:29)
at org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so <http://catalina-manager-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so <http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so <http://tomcat-http-5.5.26.jar.so>)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so <http://tomcat-util-5.5.26.jar.so>)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so <http://catalina-5.5.26.jar.so>)
at java.lang.Class.initializeClass(libgcj.so.8rh)
…44 more
!DSPAM:4038,47fd1027250541804284693!
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don’t miss this year’s exciting event. There’s still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4038,47fd1027250541804284693!
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4038,47fd1027250541804284693!
That is what I was forced to do with Centos. The packages in Fedora, Centos, RedHat and so on, are comfortable to use but... They are nothing but a trouble in many cases (my opinion). If you want something other than the "main stream" and the latest software, you better use something other than rpm or whatever packages and in many cases you'll be better of by installing with source package (my opinion again).
mika
Leandro R kirjoitti:
Finally I could make it. !!!
I've removed Java and Tomcat installed with Fedora, and downloaded separatly.
They are running now.
Thank you all.
2008/4/10, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>>:
Hi,
I haven't mentioned this before because it's a bit more than you
need, and possibly messy once you have systemwide java and Tomcat
installed, but if you get stuck you can try the instructions for
CentOS 5.1:
http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install
<http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install>
Not tested on Fedora 8, but it's not that different from CentOS /
RHEL.
-Arne
Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin.
I've always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I've installed Tomcat from the Fedora-DVD (Applications>
Add-remove software), and I've downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn't start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception
sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'wfsGetCapabilitiesKvpReader' defined
in URL
[jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not
instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader];
constructor threw exception; nested exception is
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not
instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader];
constructor threw exception; nested exception is
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at
org.eclipse.emf.ecore.EPackage$Registry.<clinit>(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.<clinit>(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.geoserver.wfs.kvp.WFSKvpRequestReader.<init>(WFSKvpRequestReader.java:29)
at
org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.<init>(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so
<http://tomcat-http-5.5.26.jar.so>
<http://tomcat-http-5.5.26.jar.so>)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so
<http://tomcat-http-5.5.26.jar.so>
<http://tomcat-http-5.5.26.jar.so>)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...44 more
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference Don't miss this year's exciting event. There's
still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Red Hat is pushing JBoss anyway, so they're not motivated to ship good Tomcat packages. But I agree with Mika that the Tomcat packages on most distributions feel like they were built by people who prefer LAMP.
Anyway, glad to hear you got it working, please comment or update the wiki if you made adjustments to make it happen on F 8.
-Arne
Leandro R wrote:
Finally I could make it. !!!
I've removed Java and Tomcat installed with Fedora, and downloaded separatly.
They are running now.
Thank you all.
2008/4/10, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>>:
Hi,
I haven't mentioned this before because it's a bit more than you
need, and possibly messy once you have systemwide java and Tomcat
installed, but if you get stuck you can try the instructions for
CentOS 5.1:
http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install
<http://geoserver.org/display/GEOSDOC/CentOS+(Red+Hat)+5.1+Install>
Not tested on Fedora 8, but it's not that different from CentOS /
RHEL.
-Arne
Leandro R wrote:
Hello!!
First of all I am GIS user, not developer nor server admin.
I've always worked on MSWindows, never on Linux.
Configuration: Fedora Core 8, Tomcat 5.5.26, Geoserver 1.6.2
I've installed Tomcat from the Fedora-DVD (Applications>
Add-remove software), and I've downloaded JDK 1.5.0 from Sun.
After deply the war file; Geoserver doesn't start.
I have no idea what it could be.
Thanks
This is log (catalina.out):
09 Apr 14:07:35 ERROR [[localhost].[/geoserver]] - Exception
sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'wfsGetCapabilitiesKvpReader' defined
in URL
[jar:file:/usr/share/tomcat5/webapps/geoserver/WEB-INF/lib/wfs-1.6.2.jar!/applicationContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not
instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader];
constructor threw exception; nested exception is
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
org.springframework.beans.FatalBeanException: Could not
instantiate class
[org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader];
constructor threw exception; nested exception is
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
java.lang.NoClassDefFoundError:
org.eclipse.emf.ecore.plugin.EcorePlugin
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.createGlobalRegistry(EPackageRegistryImpl.java:49)
at
org.eclipse.emf.ecore.EPackage$Registry.<clinit>(EPackage.java:81)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
net.opengis.wfs.impl.WfsFactoryImpl.init(WfsFactoryImpl.java:52)
at net.opengis.wfs.WfsFactory.<clinit>(WfsFactory.java:26)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at
org.geoserver.wfs.kvp.WFSKvpRequestReader.<init>(WFSKvpRequestReader.java:29)
at
org.geoserver.wfs.kvp.GetCapabilitiesKvpRequestReader.<init>(GetCapabilitiesKvpRequestReader.java:15)
at java.lang.reflect.Constructor.newInstance(libgcj.so.8rh)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:76)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
at
org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardContext.start(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.manager.ManagerServlet.start(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
org.apache.catalina.manager.HTMLManagerServlet.start(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(catalina-manager-5.5.26.jar.so
<http://catalina-manager-5.5.26.jar.so>
<http://catalina-manager-5.5.26.jar.so>)
at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.26.jar.so
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>
<http://tomcat5-servlet-2.4-api-5.5.26.jar.so>)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so
<http://tomcat-http-5.5.26.jar.so>
<http://tomcat-http-5.5.26.jar.so>)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so
<http://tomcat-http-5.5.26.jar.so>
<http://tomcat-http-5.5.26.jar.so>)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so
<http://tomcat-util-5.5.26.jar.so>
<http://tomcat-util-5.5.26.jar.so>)
at java.lang.Thread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation
at
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so
<http://catalina-5.5.26.jar.so> <http://catalina-5.5.26.jar.so>)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...44 more
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference Don't miss this year's exciting event. There's
still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4038,47fd1027250541804284693!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4038,47fd1027250541804284693!
!DSPAM:4038,4806473762311628642973!