|
|
|
Matthias Lendholt
|
Hi list,
I was checking the download page but deegree3 is still not available as binary. So I had to build deegree3 on my own. I tried it with the the command line build described here: https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. Since I was not interested to inspect all the build.xml files in the different projects, I just started ant in core, services and tools hoping the default task is what I need. Then I've seen that for services "ant publish-modules" should be used. But this task doesn't exist. With the result of "ant create-webapp-template" I started my tomcat and http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS details shows "deegree 3 WPS configuration" but the detail links to BufferProcess andParameterDemoProcess ended in a 404: "The requested resource (/d3_services/wps/processDetails.jsp) is not available." Back to the first page I moved on to "Send requests". Every request I sent to WPS or SOS ended up in this exception: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Setting up JDBC connection pools failed: Duplicate definition of connection pool 'conn1'. Please check your JDBC connection configuration (e.g. file jdbc_connections.xml). org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:892) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) root cause java.lang.IllegalArgumentException: Duplicate definition of connection pool 'conn1'. Please check your JDBC connection configuration (e.g. file jdbc_connections.xml). org.deegree.commons.jdbc.ConnectionManager.addConnection(ConnectionManager.java:156) org.deegree.commons.jdbc.ConnectionManager.addConnections(ConnectionManager.java:133) org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:888) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) java.lang.Thread.run(Thread.java:619) Any ideas how to proceed? The services_metadata.xml in WEB_INF/conf contains only one element with id="conn1". Additionally on tomcat startup this exception was thrown: [13:46:06] ERROR: [AbstractOGCServiceController] No schema could be loaded from file: /META-INF/schemas/wms/0.1.0/wms_configuration.xsd because: src-resolve: Ca nnot resolve the name 'cm:currentVersionType' to a(n) 'simpleType definition' co mponent. org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'cm:currentV ersionType' to a(n) 'simpleType definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX ParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err orHandlerWrapper.java:131) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError( XMLErrorReporter.java:384) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.repo rtSchemaErr(XSDHandler.java:2537) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.repo rtSchemaError(XSDHandler.java:2528) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAbstractTrav erser.reportSchemaError(XSDAbstractTraverser.java:706) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAttributeTra verser.traverseNamedAttr(XSDAttributeTraverser.java:295) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAttributeTra verser.traverseLocal(XSDAttributeTraverser.java:101) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAbstractTrav erser.traverseAttrsAndAttrGrps(XSDAbstractTraverser.java:610) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeT raverser.processComplexContent(XSDComplexTypeTraverser.java:1059) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeT raverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:279) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeT raverser.traverseLocal(XSDComplexTypeTraverser.java:133) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrave rser.traverseNamedElement(XSDElementTraverser.java:356) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrave rser.traverseGlobal(XSDElementTraverser.java:214) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.trav erseSchemas(XSDHandler.java:1258) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.pars eSchema(XSDHandler.java:579) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema (XMLSchemaLoader.java:552) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGramma r(XMLSchemaLoader.java:519) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGramma r(XMLSchemaLoader.java:485) at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.n ewSchema(XMLSchemaFactory.java:210) at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594) at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:626) at org.deegree.services.controller.AbstractOGCServiceController.getSchem aForUrl(AbstractOGCServiceController.java:703) at org.deegree.services.controller.AbstractOGCServiceController.getUnmar shaller(AbstractOGCServiceController.java:733) at org.deegree.services.controller.wms.WMSController.init(WMSController. java:184) at org.deegree.services.controller.OGCFrontController.instantiateService Controller(OGCFrontController.java:1080) at org.deegree.services.controller.OGCFrontController.init(OGCFrontContr oller.java:942) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:99 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:4149) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 458) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja va:630) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j ava:556) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:5 16) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Many thanks in advance, Matthias ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Markus Schneider-4
|
Hi Matthias,
Matthias Lendholt wrote: > I was checking the download page but deegree3 is still not available as > binary. So I had to build deegree3 on my own. I tried it with the the > command line build described here: > https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. Actually, the JARs are available. Check "Download" -> "API, Sources, Binaries". However, there is not a WAR or anything with included configuration files, so you're choice is right. > Since I was not interested to inspect all the build.xml files in the > different projects, I just started ant in core, services and tools > hoping the default task is what I need. Then I've seen that for services > "ant publish-modules" should be used. But this task doesn't exist. With > the result of "ant create-webapp-template" I started my tomcat and > http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS > details shows "deegree 3 WPS configuration" but the detail links to > BufferProcess andParameterDemoProcess ended in a 404: > "The requested resource (/d3_services/wps/processDetails.jsp) is not > available." https://wiki.deegree.org/deegreeWiki/deegree3/ServiceManagementConsolePlans), the only tested part is the client that you can access via "Send requests" from the start page. > Back to the first page I moved on to "Send requests". Every request I > sent to WPS or SOS ended up in this exception: > > > type Exception report > > message > > description The server encountered an internal error () that prevented > it from fulfilling this request. > > exception > > javax.servlet.ServletException: Setting up JDBC connection pools failed: > Duplicate definition of connection pool 'conn1'. Please check your JDBC > connection configuration (e.g. file jdbc_connections.xml). > org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:892) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) > java.lang.Thread.run(Thread.java:619) > > root cause > > java.lang.IllegalArgumentException: Duplicate definition of connection > pool 'conn1'. Please check your JDBC connection configuration (e.g. file > jdbc_connections.xml). > org.deegree.commons.jdbc.ConnectionManager.addConnection(ConnectionManager.java:156) > org.deegree.commons.jdbc.ConnectionManager.addConnections(ConnectionManager.java:133) > org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:888) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) > java.lang.Thread.run(Thread.java:619) > > > > > Any ideas how to proceed? The services_metadata.xml in WEB_INF/conf > contains only one element with id="conn1". > Many thanks in advance, (such as the WMS). Please execute the following commands in your checkout directory of the services-module: ant clean ant create-wps-template Then deploy or call "ant register-webapp-dir" to make the webapp available again. The WPS should work fine now. Can you verify this first? We will provide instructions for the SOS in the next step. Best regards, Markus -- Markus Schneider l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 184960 fax ++49 +228 1849629 http://www.lat-lon.de http://www.deegree.org ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Andrei Ionita
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi Matthias, > We will provide instructions for the SOS in the next step. > After following Markus' instructions, to get SOS started you type the following into your terminal, while in the d3_services directory: ant create-sos-template ant -f resources/build-demo.xml Now you should be able to use the SOS demo with a sample database in the backend. Cheers, Andrei - -- Andrei Ionita l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-0 fax ++49 +228 18496-29 http://www.lat-lon.de http://www.deegree.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqNWz0ACgkQ4pb290eLCNu8eQCfQc2Sz4WPyWrk6agAAYG0SY6A YuYAnjfgdZJWEe5gat6uf7JRQ8xWUM8i =L7nT -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Markus Schneider-4
|
In reply to this post
by Matthias Lendholt
Hi Matthias,
Matthias Lendholt wrote: > Hi list, > > I was checking the download page but deegree3 is still not available as > binary. So I had to build deegree3 on my own. I tried it with the the > command line build described here: > https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. > > Since I was not interested to inspect all the build.xml files in the > different projects, I just started ant in core, services and tools > hoping the default task is what I need. Then I've seen that for services > "ant publish-modules" should be used. But this task doesn't exist. With > the result of "ant create-webapp-template" I started my tomcat and > http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS > details shows "deegree 3 WPS configuration" but the detail links to > BufferProcess andParameterDemoProcess ended in a 404: > "The requested resource (/d3_services/wps/processDetails.jsp) is not > available." configuration changes have to be performed by adding/editing files below the /WEB-INF/conf folder. The web console only displays the status/configuration, but you cannot edit it from here. Maybe next year ;-) Best regards, Markus -- Markus Schneider l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 184960 fax ++49 +228 1849629 http://www.lat-lon.de http://www.deegree.org ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Matthias Lendholt
|
In reply to this post
by Markus Schneider-4
Thanks for the help!
We need only the WPS and not the SOS so it's perfect to have it excluded :-) what I did: svn update for core and services. in core (is this necessary?): ant clean ant in services: ant clean ant create-wps-template And then I renamed and moved the generated webapps folder to Tomcat. Seems to work without any exceptions so far. Why is no war-file generated? I will start playing around and checking the example. Thanks again, Matthias Markus Schneider schrieb: > Hi Matthias, > > Matthias Lendholt wrote: >> I was checking the download page but deegree3 is still not available as >> binary. So I had to build deegree3 on my own. I tried it with the the >> command line build described here: >> https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. > > Actually, the JARs are available. Check "Download" -> "API, Sources, Binaries". However, there is not a WAR or anything > with included configuration files, so you're choice is right. > >> Since I was not interested to inspect all the build.xml files in the >> different projects, I just started ant in core, services and tools >> hoping the default task is what I need. Then I've seen that for services >> "ant publish-modules" should be used. But this task doesn't exist. With >> the result of "ant create-webapp-template" I started my tomcat and >> http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS >> details shows "deegree 3 WPS configuration" but the detail links to >> BufferProcess andParameterDemoProcess ended in a 404: >> "The requested resource (/d3_services/wps/processDetails.jsp) is not >> available." > > You stumbled upon parts that are brand-new and were only added last night. The console is not ready yet (see > https://wiki.deegree.org/deegreeWiki/deegree3/ServiceManagementConsolePlans), the only tested part is the client that > you can access via "Send requests" from the start page. > >> Back to the first page I moved on to "Send requests". Every request I >> sent to WPS or SOS ended up in this exception: >> >> >> type Exception report >> >> message >> >> description The server encountered an internal error () that prevented >> it from fulfilling this request. >> >> exception >> >> javax.servlet.ServletException: Setting up JDBC connection pools failed: >> Duplicate definition of connection pool 'conn1'. Please check your JDBC >> connection configuration (e.g. file jdbc_connections.xml). >> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:892) >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >> java.lang.Thread.run(Thread.java:619) >> >> root cause >> >> java.lang.IllegalArgumentException: Duplicate definition of connection >> pool 'conn1'. Please check your JDBC connection configuration (e.g. file >> jdbc_connections.xml). >> org.deegree.commons.jdbc.ConnectionManager.addConnection(ConnectionManager.java:156) >> org.deegree.commons.jdbc.ConnectionManager.addConnections(ConnectionManager.java:133) >> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:888) >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >> java.lang.Thread.run(Thread.java:619) >> >> >> >> >> Any ideas how to proceed? The services_metadata.xml in WEB_INF/conf >> contains only one element with id="conn1". >> Many thanks in advance, > > It seems that you called "ant create-xyz-template" for more than one service and especiall for some alpha-state ones > (such as the WMS). Please execute the following commands in your checkout directory of the services-module: > > ant clean > ant create-wps-template > > Then deploy or call "ant register-webapp-dir" to make the webapp available again. > > The WPS should work fine now. Can you verify this first? We will provide instructions for the SOS in the next step. > > Best regards, > Markus > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > deegree-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/deegree-devel -- Matthias Lendholt [[hidden email]] tel: +49 331 288 1687; fax: +49 331 288 1703 Deutsches GeoForschungsZentrum (GFZ) Telegrafenberg A20; D14473 Potsdam; Germany ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Andrei Ionita
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi Matthias, We made you do 'ant clean' in d3_services so as to delete the build/ directory there (hence the wepapps with all the services). An 'ant create-wps-template' then clears the possibility of having that 'duplicate JDBC connection' error (we still have to look into that). Just as a sidenote: doing 'ant' (or 'ant publish-modules') in d3_services also builds the d3_core modules. > And then I renamed and moved the generated webapps folder to Tomcat. > Seems to work without any exceptions so far. Why is no war-file generated? Well, you don't need to move it necessarily. If you type 'ant register-webapp-dir' in d3_services a service_metadata.xml file is created in tomcat that tells it where to find the webapp. That's actually the reason no war is created. But if you want one, you can go inside webapp/ and do 'jar -cf deegree-wps.war *' (or instead of jar you can use fastjar). Hope this answers your questions. If further come along, don't hesitate to ask back. Cheers, Andrei > > I will start playing around and checking the example. > > Thanks again, > Matthias > > > > > Markus Schneider schrieb: >> Hi Matthias, >> >> Matthias Lendholt wrote: >>> I was checking the download page but deegree3 is still not available as >>> binary. So I had to build deegree3 on my own. I tried it with the the >>> command line build described here: >>> https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. >> Actually, the JARs are available. Check "Download" -> "API, Sources, Binaries". However, there is not a WAR or anything >> with included configuration files, so you're choice is right. >> >>> Since I was not interested to inspect all the build.xml files in the >>> different projects, I just started ant in core, services and tools >>> hoping the default task is what I need. Then I've seen that for services >>> "ant publish-modules" should be used. But this task doesn't exist. With >>> the result of "ant create-webapp-template" I started my tomcat and >>> http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS >>> details shows "deegree 3 WPS configuration" but the detail links to >>> BufferProcess andParameterDemoProcess ended in a 404: >>> "The requested resource (/d3_services/wps/processDetails.jsp) is not >>> available." >> You stumbled upon parts that are brand-new and were only added last night. The console is not ready yet (see >> https://wiki.deegree.org/deegreeWiki/deegree3/ServiceManagementConsolePlans), the only tested part is the client that >> you can access via "Send requests" from the start page. >> >>> Back to the first page I moved on to "Send requests". Every request I >>> sent to WPS or SOS ended up in this exception: >>> >>> >>> type Exception report >>> >>> message >>> >>> description The server encountered an internal error () that prevented >>> it from fulfilling this request. >>> >>> exception >>> >>> javax.servlet.ServletException: Setting up JDBC connection pools failed: >>> Duplicate definition of connection pool 'conn1'. Please check your JDBC >>> connection configuration (e.g. file jdbc_connections.xml). >>> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:892) >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >>> java.lang.Thread.run(Thread.java:619) >>> >>> root cause >>> >>> java.lang.IllegalArgumentException: Duplicate definition of connection >>> pool 'conn1'. Please check your JDBC connection configuration (e.g. file >>> jdbc_connections.xml). >>> org.deegree.commons.jdbc.ConnectionManager.addConnection(ConnectionManager.java:156) >>> org.deegree.commons.jdbc.ConnectionManager.addConnections(ConnectionManager.java:133) >>> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:888) >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >>> java.lang.Thread.run(Thread.java:619) >>> >>> >>> >>> >>> Any ideas how to proceed? The services_metadata.xml in WEB_INF/conf >>> contains only one element with id="conn1". >>> Many thanks in advance, >> It seems that you called "ant create-xyz-template" for more than one service and especiall for some alpha-state ones >> (such as the WMS). Please execute the following commands in your checkout directory of the services-module: >> >> ant clean >> ant create-wps-template >> >> Then deploy or call "ant register-webapp-dir" to make the webapp available again. >> >> The WPS should work fine now. Can you verify this first? We will provide instructions for the SOS in the next step. >> >> Best regards, >> Markus >> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> deegree-devel mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/deegree-devel > > - -- Andrei Ionita l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-0 fax ++49 +228 18496-29 http://www.lat-lon.de http://www.deegree.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqOeHEACgkQ4pb290eLCNvkHQCeNZWT1nJt5KAcdNkV4k2LUncp sN0AnAvbHmofmIk1Nerw1catyuvYa3yO =I5Ut -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
宁岗
|
在2009-08-21 18:35:31,"Andrei Ionita" <[hidden email]> 写道: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi Matthias, > >We made you do 'ant clean' in d3_services so as to delete the build/ >directory there (hence the wepapps with all the services). An 'ant >create-wps-template' then clears the possibility of having that >'duplicate JDBC connection' error (we still have to look into that). > >Just as a sidenote: doing 'ant' (or 'ant publish-modules') in >d3_services also builds the d3_core modules. > >> And then I renamed and moved the generated webapps folder to Tomcat. >> Seems to work without any exceptions so far. Why is no war-file generated? > >Well, you don't need to move it necessarily. If you type 'ant >register-webapp-dir' in d3_services a service_metadata.xml file is >created in tomcat that tells it where to find the webapp. > >That's actually the reason no war is created. But if you want one, you >can go inside webapp/ and do 'jar -cf deegree-wps.war *' (or instead of >jar you can use fastjar). > >Hope this answers your questions. If further come along, don't hesitate >to ask back. > >Cheers, > >Andrei > > >> >> I will start playing around and checking the example. >> >> Thanks again, >> Matthias >> >> >> >> >> Markus Schneider schrieb: >>> Hi Matthias, >>> >>> Matthias Lendholt wrote: >>>> I was checking the download page but deegree3 is still not available as >>>> binary. So I had to build deegree3 on my own. I tried it with the the >>>> command line build described here: >>>> https://wiki.deegree.org/deegreeWiki/deegree3/BuildingDeegree3. >>> Actually, the JARs are available. Check "Download" -> "API, Sources, Binaries". However, there is not a WAR or anything >>> with included configuration files, so you're choice is right. >>> >>>> Since I was not interested to inspect all the build.xml files in the >>>> different projects, I just started ant in core, services and tools >>>> hoping the default task is what I need. Then I've seen that for services >>>> "ant publish-modules" should be used. But this task doesn't exist. With >>>> the result of "ant create-webapp-template" I started my tomcat and >>>> http://127.0.0.1:8080/d3_services/ seems to work. Clicking on WPS >>>> details shows "deegree 3 WPS configuration" but the detail links to >>>> BufferProcess andParameterDemoProcess ended in a 404: >>>> "The requested resource (/d3_services/wps/processDetails.jsp) is not >>>> available." >>> You stumbled upon parts that are brand-new and were only added last night. The console is not ready yet (see >>> https://wiki.deegree.org/deegreeWiki/deegree3/ServiceManagementConsolePlans), the only tested part is the client that >>> you can access via "Send requests" from the start page. >>> >>>> Back to the first page I moved on to "Send requests". Every request I >>>> sent to WPS or SOS ended up in this exception: >>>> >>>> >>>> type Exception report >>>> >>>> message >>>> >>>> description The server encountered an internal error () that prevented >>>> it from fulfilling this request. >>>> >>>> exception >>>> >>>> javax.servlet.ServletException: Setting up JDBC connection pools failed: >>>> Duplicate definition of connection pool 'conn1'. Please check your JDBC >>>> connection configuration (e.g. file jdbc_connections.xml). >>>> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:892) >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >>>> java.lang.Thread.run(Thread.java:619) >>>> >>>> root cause >>>> >>>> java.lang.IllegalArgumentException: Duplicate definition of connection >>>> pool 'conn1'. Please check your JDBC connection configuration (e.g. file >>>> jdbc_connections.xml). >>>> org.deegree.commons.jdbc.ConnectionManager.addConnection(ConnectionManager.java:156) >>>> org.deegree.commons.jdbc.ConnectionManager.addConnections(ConnectionManager.java:133) >>>> org.deegree.services.controller.OGCFrontController.init(OGCFrontController.java:888) >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) >>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) >>>> java.lang.Thread.run(Thread.java:619) >>>> >>>> >>>> >>>> >>>> Any ideas how to proceed? The services_metadata.xml in WEB_INF/conf >>>> contains only one element with id="conn1". >>>> Many thanks in advance, >>> It seems that you called "ant create-xyz-template" for more than one service and especiall for some alpha-state ones >>> (such as the WMS). Please execute the following commands in your checkout directory of the services-module: >>> >>> ant clean >>> ant create-wps-template >>> >>> Then deploy or call "ant register-webapp-dir" to make the webapp available again. >>> >>> The WPS should work fine now. Can you verify this first? We will provide instructions for the SOS in the next step. >>> >>> Best regards, >>> Markus >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> deegree-devel mailing list >>> [hidden email] >>> https://lists.sourceforge.net/lists/listinfo/deegree-devel >> >> > > >- -- >Andrei Ionita > >l a t / l o n GmbH >Aennchenstrasse 19 53177 Bonn, Germany >phone ++49 +228 18496-0 fax ++49 +228 18496-29 >http://www.lat-lon.de http://www.deegree.org > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.9 (GNU/Linux) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iEYEARECAAYFAkqOeHEACgkQ4pb290eLCNvkHQCeNZWT1nJt5KAcdNkV4k2LUncp >sN0AnAvbHmofmIk1Nerw1catyuvYa3yO >=I5Ut >-----END PGP SIGNATURE----- > >------------------------------------------------------------------------------ >Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >trial. Simplify your report design, integration and deployment - and focus on >what you do best, core application coding. Discover what's new with >Crystal Reports now. http://p.sf.net/sfu/bobj-july >_______________________________________________ >deegree-devel mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/deegree-devel 没有广告的终身免费邮箱,www.yeah.net ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
宁岗
|
In reply to this post
by Matthias Lendholt
没有广告的终身免费邮箱,www.yeah.net ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Matthias Lendholt
|
In reply to this post
by Andrei Ionita
Hi Andrei,*
Andrei Ionita schrieb: > We made you do 'ant clean' in d3_services so as to delete the build/ > directory there (hence the wepapps with all the services). An 'ant > create-wps-template' then clears the possibility of having that > 'duplicate JDBC connection' error (we still have to look into that). > > Just as a sidenote: doing 'ant' (or 'ant publish-modules') in > d3_services also builds the d3_core modules. I haven't analysed the build.xml files but the services project has no idea in which directory I checked out the core module. Or is there a hard reference to ../d3_core and this it why it works? >> And then I renamed and moved the generated webapps folder to Tomcat. >> Seems to work without any exceptions so far. Why is no war-file generated? > > Well, you don't need to move it necessarily. If you type 'ant > register-webapp-dir' in d3_services a service_metadata.xml file is > created in tomcat that tells it where to find the webapp. Using this deployment I have a question regarding development of own processes for the WPS. The example processes of the deegree WPS are in the same project and the same package structure like the WPS itself and build with the same build script. Should I also develop my own processes inside this project and let it build with the build script or is it possible to develop them against the (src-api) API and then just deploy a jar into the WPS without building again the WPS? Cheers, Matthias ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Matthias Lendholt
|
Matthias Lendholt schrieb:
>>> And then I renamed and moved the generated webapps folder to Tomcat. >>> Seems to work without any exceptions so far. Why is no war-file generated? >> Well, you don't need to move it necessarily. If you type 'ant >> register-webapp-dir' in d3_services a service_metadata.xml file is >> created in tomcat that tells it where to find the webapp. > > Using this deployment I have a question regarding development of own > processes for the WPS. The example processes of the deegree WPS are in > the same project and the same package structure like the WPS itself and > build with the same build script. Should I also develop my own processes > inside this project and let it build with the build script or is it > possible to develop them against the (src-api) API and then just deploy > a jar into the WPS without building again the WPS? Finally I found https://wiki.deegree.org/deegreeWiki/HowToCreateWPSProcesses ... ;-) Matthias ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
|
Andrei Ionita
|
In reply to this post
by Matthias Lendholt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi Matthias, > I haven't analysed the build.xml files but the services project has no > idea in which directory I checked out the core module. Or is there a > hard reference to ../d3_core and this it why it works? yes, there is a reference: ionita@ionita-desktop:~/workspace/d3_services$ grep 'core' * build.properties:core.location=../d3_core Cheers, Andrei - -- Andrei Ionita l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-0 fax ++49 +228 18496-29 http://www.lat-lon.de http://www.deegree.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqSi74ACgkQ4pb290eLCNsrYQCghRfVYabFsNU4gblne+u5OuUy qTwAn3DQhDwZfyUZBpq4o+b1JqaFWQEi =0xbU -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ deegree-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/deegree-devel |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |