You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by "Agoropoulos, Giorgos" <ag...@unisystems.gr> on 2008/05/20 10:30:55 UTC
org/apache/commons/logging/LogFactory missing while trying to publish on juddi server
Hello all,
I am trying to publish a service using juddi api into a JUDDI server
that I installed in my local machine as follows:
jUDDI Version: 0.9rc4
Apache Tomcat: 6.0
MySQL server 5.0
The validation of platform works fine at
http://localhost:8080/juddi/happyjuddi.jsp
I use the following code to to access uddi and add a business registry:
import java.util.Properties;
import org.apache.juddi.IRegistry;
import org.apache.juddi.datatype.business.BusinessEntity;
import org.apache.juddi.datatype.request.AuthInfo;
import org.apache.juddi.datatype.response.AuthToken;
import org.apache.juddi.datatype.Name;
import org.apache.juddi.error.RegistryException;
import java.util.Vector;
import org.apache.juddi.proxy.RegistryProxy;
import org.apache.juddi.util.Language;
public class UddiClient {
public static void main(String[] args) throws RegistryException {
Properties props = new Properties();
props.setProperty(RegistryProxy.INQUIRY_ENDPOINT_PROPERTY_NAME,"http://l
ocalhost:8080/juddi/console");
props.setProperty(RegistryProxy.PUBLISH_ENDPOINT_PROPERTY_NAME,"http://l
ocalhost:8080/juddi/console");
IRegistry registry = new RegistryProxy(props);
BusinessEntity businessEntity = new BusinessEntity();
businessEntity.addName(new Name("Business Name here!!!",
Language.ENGLISH));
AuthToken userAuthToken = registry.getAuthToken("jdoe", "");
AuthInfo userAuthInfo = userAuthToken.getAuthInfo();
Vector businessEntityVec = new Vector(1);
businessEntityVec.add(businessEntity);
registry.saveBusiness(userAuthInfo, businessEntityVec);
}
}
And I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
Could you please give me a hint?
Thanx,
George
Re: org/apache/commons/logging/LogFactory missing while trying to
publish on juddi server
Posted by Kurt T Stam <ku...@gmail.com>.
Looks like you're missing some more jars around SOAP and AXIS
Agoropoulos, Giorgos wrote:
> Done but still having trouble, I get the following:
>
>
> - Using the Context ClassLoader
> - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
> at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)
> at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.doctypeDecl(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:1792)
> at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
> at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
> at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
> at giorgos.UddiClient.main(UddiClient.java:34)
>
> {http://xml.apache.org/axis/}hostname:agoropoulosg
>
> org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:1792)
> at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
> at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
> at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
> at giorgos.UddiClient.main(UddiClient.java:34)
> Caused by: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
> at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)
> at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.doctypeDecl(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> ... 10 more
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:71)
> at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
> at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
> at giorgos.UddiClient.main(UddiClient.java:34)
> Caused by: java.lang.NullPointerException
> at java.io.FilterInputStream.read(Unknown Source)
> at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
> at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
> at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:68)
> ... 3 more
>
>
>
>
>
>
>
> ________________________________________
> From: Kurt T Stam [mailto:kurt.stam@gmail.com]
> Sent: Tuesday, May 20, 2008 3:49 PM
> To: juddi-user@ws.apache.org
> Subject: Re: org/apache/commons/logging/LogFactory missing while trying to publish on juddi server
>
> Agoropoulos, Giorgos wrote:
> Add the apache commons logging jar to your classpath? --Kurt
>
> Hello all,
>
> I am trying to publish a service using juddi api into a JUDDI server that I installed in my local machine as follows:
> jUDDI Version: 0.9rc4
> Apache Tomcat: 6.0
> MySQL server 5.0
>
> The validation of platform works fine at http://localhost:8080/juddi/happyjuddi.jsp
>
> I use the following code to to access uddi and add a business registry:
>
> import java.util.Properties;
> import org.apache.juddi.IRegistry;
> import org.apache.juddi.datatype.business.BusinessEntity;
> import org.apache.juddi.datatype.request.AuthInfo;
> import org.apache.juddi.datatype.response.AuthToken;
> import org.apache.juddi.datatype.Name;
> import org.apache.juddi.error.RegistryException;
>
> import java.util.Vector;
>
> import org.apache.juddi.proxy.RegistryProxy;
> import org.apache.juddi.util.Language;
>
>
> public class UddiClient {
>
>
> public static void main(String[] args) throws RegistryException {
>
>
>
> Properties props = new Properties();
>
> props.setProperty(RegistryProxy.INQUIRY_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/console");
>
> props.setProperty(RegistryProxy.PUBLISH_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/console");
> IRegistry registry = new RegistryProxy(props);
>
> BusinessEntity businessEntity = new BusinessEntity();
> businessEntity.addName(new Name("Business Name here!!!", Language.ENGLISH));
>
> AuthToken userAuthToken = registry.getAuthToken("jdoe", "");
> AuthInfo userAuthInfo = userAuthToken.getAuthInfo();
>
> Vector businessEntityVec = new Vector(1);
> businessEntityVec.add(businessEntity);
>
> registry.saveBusiness(userAuthInfo, businessEntityVec);
>
>
> }
>
> }
>
>
> And I get the following error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>
> Could you please give me a hint?
>
> Thanx,
> George
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: juddi-user-help@ws.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org
RE: org/apache/commons/logging/LogFactory missing while trying to publish on juddi server
Posted by "Agoropoulos, Giorgos" <ag...@unisystems.gr>.
Done but still having trouble, I get the following:
- Using the Context ClassLoader
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)
at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.doctypeDecl(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1792)
at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
at giorgos.UddiClient.main(UddiClient.java:34)
{http://xml.apache.org/axis/}hostname:agoropoulosg
org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1792)
at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:59)
at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
at giorgos.UddiClient.main(UddiClient.java:34)
Caused by: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)
at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.doctypeDecl(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 10 more
Exception in thread "main" java.lang.NullPointerException
at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:71)
at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368)
at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
at giorgos.UddiClient.main(UddiClient.java:34)
Caused by: java.lang.NullPointerException
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.juddi.proxy.AxisTransport.send(AxisTransport.java:68)
... 3 more
________________________________________
From: Kurt T Stam [mailto:kurt.stam@gmail.com]
Sent: Tuesday, May 20, 2008 3:49 PM
To: juddi-user@ws.apache.org
Subject: Re: org/apache/commons/logging/LogFactory missing while trying to publish on juddi server
Agoropoulos, Giorgos wrote:
Add the apache commons logging jar to your classpath? --Kurt
Hello all,
I am trying to publish a service using juddi api into a JUDDI server that I installed in my local machine as follows:
jUDDI Version: 0.9rc4
Apache Tomcat: 6.0
MySQL server 5.0
The validation of platform works fine at http://localhost:8080/juddi/happyjuddi.jsp
I use the following code to to access uddi and add a business registry:
import java.util.Properties;
import org.apache.juddi.IRegistry;
import org.apache.juddi.datatype.business.BusinessEntity;
import org.apache.juddi.datatype.request.AuthInfo;
import org.apache.juddi.datatype.response.AuthToken;
import org.apache.juddi.datatype.Name;
import org.apache.juddi.error.RegistryException;
import java.util.Vector;
import org.apache.juddi.proxy.RegistryProxy;
import org.apache.juddi.util.Language;
public class UddiClient {
public static void main(String[] args) throws RegistryException {
Properties props = new Properties();
props.setProperty(RegistryProxy.INQUIRY_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/console");
props.setProperty(RegistryProxy.PUBLISH_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/console");
IRegistry registry = new RegistryProxy(props);
BusinessEntity businessEntity = new BusinessEntity();
businessEntity.addName(new Name("Business Name here!!!", Language.ENGLISH));
AuthToken userAuthToken = registry.getAuthToken("jdoe", "");
AuthInfo userAuthInfo = userAuthToken.getAuthInfo();
Vector businessEntityVec = new Vector(1);
businessEntityVec.add(businessEntity);
registry.saveBusiness(userAuthInfo, businessEntityVec);
}
}
And I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Could you please give me a hint?
Thanx,
George
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org
Re: org/apache/commons/logging/LogFactory missing while trying to
publish on juddi server
Posted by Kurt T Stam <ku...@gmail.com>.
Agoropoulos, Giorgos wrote:
Add the apache commons logging jar to your classpath? --Kurt
>
> Hello all,
>
>
>
> I am trying to publish a service using juddi api into a JUDDI server
> that I installed in my local machine as follows:
>
> *jUDDI Version:* 0.9rc4
>
> Apache Tomcat: 6.0
>
> MySQL server 5.0
>
>
>
> The validation of platform works fine at
> http://localhost:8080/juddi/happyjuddi.jsp
>
>
>
> I use the following code to to access uddi and add a business registry:
>
>
>
> *import* java.util.Properties;
>
> *import* org.apache.juddi.IRegistry;
>
> *import* org.apache.juddi.datatype.business.BusinessEntity;
>
> *import* org.apache.juddi.datatype.request.AuthInfo;
>
> *import* org.apache.juddi.datatype.response.AuthToken;
>
> *import* org.apache.juddi.datatype.Name;
>
> *import* org.apache.juddi.error.RegistryException;
>
>
>
> *import* java.util.Vector;
>
>
>
> *import* org.apache.juddi.proxy.RegistryProxy;
>
> *import* org.apache.juddi.util.Language;
>
>
>
>
>
> *public* *class* UddiClient {
>
>
>
>
>
> *public* *static* *void* main(String[] args) *throws* RegistryException {
>
>
>
>
>
>
>
> Properties props = *new* Properties();
>
>
>
> props.setProperty(RegistryProxy./INQUIRY_ENDPOINT_PROPERTY_NAME/,"http://localhost:8080/juddi/console");
>
>
>
>
> props.setProperty(RegistryProxy./PUBLISH_ENDPOINT_PROPERTY_NAME/,"http://localhost:8080/juddi/console");
>
>
> IRegistry registry = *new* RegistryProxy(props);
>
>
>
> BusinessEntity businessEntity = *new* BusinessEntity();
>
> businessEntity.addName(*new* Name("Business Name here!!!",
> Language./ENGLISH/));
>
>
>
> AuthToken userAuthToken = registry.getAuthToken("jdoe", "");
>
> AuthInfo userAuthInfo = userAuthToken.getAuthInfo();
>
>
>
> Vector businessEntityVec = *new* Vector(1);
>
> businessEntityVec.add(businessEntity);
>
>
>
> registry.saveBusiness(userAuthInfo, businessEntityVec);
>
>
>
>
>
> }
>
>
>
> }
>
>
>
>
>
> And I get the following error:
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory
>
>
>
> Could you please give me a hint?
>
>
>
> Thanx,
>
> George
>
>
>
>
>
>
>
>
>
>
>