Hi, I deploy juddi on tomcat using following install software: jakarta-tomcat-5.5.9 + juddi-tomcat-2.0rc7 + MySql server 5.0
I have copy the entire juddi-tomcat-2.0rc7 directory to tomcat server. Among this. the juudi.xml is modified as following: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.0//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd"> <Context path="/juddi" docBase="juddi" debug="5" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_juddiDB_log" suffix=".txt" timestamp="true"/> <!-- the Resource element will probably work better for you on Tomcat 5+ if you simply use a Resource only tag with xml attributes as opposed to the nested ResourceParams and parameter elements --> <Resource name="jdbc/juddiDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="root" password="123456" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true"> </Resource> </Context> Also, I add the "jdbc/juddiDB" resource into server.xml's Host xml node. But I get exception of "Error deploying configuration descriptor juddi.xml, java.net.UnknownHostException: www.bea.com" when starting the tomcat server. The detail information is as following: 2009-6-9 16:06:12 org.apache.catalina.startup.HostConfig deployDescriptor SERIOUS: Error deploying configuration descriptor juddi.xml java.net.UnknownHostException: www.bea.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:784) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:736) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:661) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti ty(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou rce(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis patcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1242) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja va:583) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j ava:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 2009-6-9 16:06:12 org.apache.catalina.startup.HostConfig deployWAR INFORMATION: Deploying web application archive juddi-console.war log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester.sax). log4j:WARN Please initialize the log4j system properly. 2009-6-9 16:06:12 org.apache.catalina.startup.HostConfig deployWAR INFORMATION: Deploying web application archive juddi.war 2009-6-9 16:06:12 org.apache.catalina.startup.ContextConfig processContextConfig SERIOUS: Parse error in context.xml for /juddi java.net.UnknownHostException: www.bea.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:784) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:736) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:661) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti ty(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou rce(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis patcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1242) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.processContextConfig(Contex tConfig.java:782) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig .java:722) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:987 ) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.StandardContext.init(StandardContext.java:50 71) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 984) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74 0) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 2009-6-9 16:06:13 org.apache.catalina.startup.ContextConfig start SERIOUS: Marking this application unavailable due to previous error(s) 2009-6-9 16:06:13 org.apache.catalina.core.StandardContext start SERIOUS: Error getConfigured 2009-6-9 16:06:13 org.apache.catalina.core.StandardContext start SERIOUS: Context [/juddi] startup failed due to previous errors 2009-6-9 16:06:13 org.apache.catalina.core.StandardContext start SERIOUS: Exception during cleanup after start failed java.lang.NoSuchMethodError: org.apache.commons.modeler.util.IntrospectionUtils. clear()V at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappCl assLoader.java:1644) at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.j ava:1496) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:734) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:43 98) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 246) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74 0) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 2009-6-9 16:06:13 org.apache.juddi.registry.RegistryServlet init INFORMATION: Loading jUDDI configuration. 2009-6-9 16:06:13 org.apache.juddi.registry.RegistryServlet init INFORMATION: Resources loaded from: /WEB-INF/juddi.properties 2009-6-9 16:06:13 org.apache.juddi.registry.RegistryServlet init INFORMATION: Initializing jUDDI components. 2009-6-9 16:06:14 org.apache.juddi.util.jdbc.ConnectionManager lookupDataSource INFORMATION: Using JNDI to aquire a JDBC DataSource with name: java:/juddiDB 2009-6-9 16:06:14 org.apache.juddi.util.jdbc.ConnectionManager lookupDataSource SERIOUS: Exception occurred while attempting to acquire a JDBC DataSource from JNDI : Name juddiDB is not bound in this Context 2009-6-9 16:06:14 org.apache.juddi.registry.RegistryEngine initializeDatabase SERIOUS: Could not create jUDDI database null java.lang.NullPointerException at org.apache.juddi.registry.RegistryEngine.initializeDatabase(RegistryE ngine.java:253) at org.apache.juddi.registry.RegistryEngine.init(RegistryEngine.java:196 ) at org.apache.juddi.registry.RegistryServlet.init(RegistryServlet.java:1 82) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96 6) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74 0) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav a:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 48) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester.sax). log4j:WARN Please initialize the log4j system properly. 2009-6-9 16:06:14 org.apache.coyote.http11.Http11BaseProtocol start And after the tomcat server is started, I can not open this http://localhost:8086/juddi/happyjuddi.jsp web page(I have change the tomcat server's port to 8086) successfully whose indication is "The requested resource (/juddi/happyjuddi.jsp) is not available." Could anyone help with this? Thanks. Sara -- View this message in context: http://www.nabble.com/UnknownHostException-when-deploy-juddi-on-tomcat-tp23953879p23953879.html Sent from the jUDDI - User mailing list archive at Nabble.com.