Fabio, to prevent the log4j warning, you may create a "config" directory, add it to your classpath, and put inside a log4j.properties file with the following contents:
# Start of log4j.properties log4j.rootCategory=INFO, CONSOLE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d %5p [%c] %m%n # End of log4j.properties If you have further questions regarding log4j configuration, you will find better answers in the log4j newsgroup, as Marting points. Regards Fabio Alves de Araujo Ebner - DNA Solution wrote: > ok.. i put but all there but she still return the error: > > C:\exemplo1>java org.apache.axis2.wsdl.WSDL2Java -uri > http://localhost:8080/axis > 2/services/VerificaLogin?wsdl -p br.com.dnasolution > log4j:WARN No appenders could be found for logger > (org.apache.axis2.i18n.Project > ResourceBundle). > log4j:WARN Please initialize the log4j system properly. > Exception in thread "main" java.lang.NoClassDefFoundError > at > org.apache.axis2.schema.typemap.JavaTypeMap.class$(JavaTypeMap.java:7 > 1) > at > org.apache.axis2.schema.typemap.JavaTypeMap.<clinit>(JavaTypeMap.java > :99) > at > org.apache.axis2.schema.writer.JavaBeanWriter.<init>(JavaBeanWriter.j > ava:78) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown > Sou > rce) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at java.lang.Class.newInstance0(Unknown Source) > at java.lang.Class.newInstance(Unknown Source) > at > org.apache.axis2.schema.util.SchemaPropertyLoader.<clinit>(SchemaProp > ertyLoader.java:42) > at > org.apache.axis2.schema.SchemaCompiler.<init>(SchemaCompiler.java:159 > ) > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp > leDBExtension.java:68) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener > ationEngine.java:140) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: java.lang.ClassNotFoundException: > org.apache.axis2.databinding.types. > Time > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > ... 15 more > ----- Original Message ----- > From: "Martin Gainty" <[EMAIL PROTECTED]> > To: <axis-user@ws.apache.org> > Sent: Wednesday, September 20, 2006 1:20 PM > Subject: Re: [Spam] Re: classpath > > >> whenever you call your PrettyPrint routines in Jalopy you will need > Log4J*.jar ON YOUR CLASSPATH >> and because Log4j reads Log4j.properties to initialise itself you will > need Log4j.properties ON YOUR CLASSPATH >> the proper configuration of which is the developer's responsibility > (ie.you need to properly configure the properties file) >> M- >> ********************************************************************* >> This email message and any files transmitted with it contain confidential >> information intended only for the person(s) to whom this email message is >> addressed. If you have received this email message in error, please > notify >> the sender immediately by telephone or email and destroy the original >> message without making a copy. Thank you. >> >> >> >> ----- Original Message ----- >> From: "Fabio Alves de Araujo Ebner - DNA Solution" > <[EMAIL PROTECTED]> >> To: <axis-user@ws.apache.org>; "Martin Gainty" <[EMAIL PROTECTED]> >> Sent: Wednesday, September 20, 2006 11:47 AM >> Subject: Re: [Spam] Re: classpath >> >> >>> i remove the %AXIS2_LIB%\log4j-1.2.13.jar; >>> >>> and got that erro: >>> >>> C:\exemplo1>java org.apache.axis2.wsdl.WSDL2Java -uri >>> http://localhost:8080/axis >>> 2/services/VerificaLogin?wsdl -p br.com >>> Exception in thread "main" java.lang.NoClassDefFoundError >>> at >>> org.apache.axis2.schema.typemap.JavaTypeMap.class$(JavaTypeMap.java:7 >>> 1) >>> at >>> org.apache.axis2.schema.typemap.JavaTypeMap.<clinit>(JavaTypeMap.java >>> :99) >>> at >>> org.apache.axis2.schema.writer.JavaBeanWriter.<init>(JavaBeanWriter.j >>> ava:78) >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >>> Method) >>> >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown >>> Source) >>> >>> at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown >>> Sou >>> rce) >>> at java.lang.reflect.Constructor.newInstance(Unknown Source) >>> at java.lang.Class.newInstance0(Unknown Source) >>> at java.lang.Class.newInstance(Unknown Source) >>> at >>> org.apache.axis2.schema.util.SchemaPropertyLoader.<clinit>(SchemaProp >>> ertyLoader.java:42) >>> at >>> org.apache.axis2.schema.SchemaCompiler.<init>(SchemaCompiler.java:159 >>> ) >>> at >>> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp >>> leDBExtension.java:68) >>> at >>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener >>> ationEngine.java:140) >>> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) >>> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.axis2.databinding.types. >>> Time >>> at java.net.URLClassLoader$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>> at java.lang.Class.forName0(Native Method) >>> at java.lang.Class.forName(Unknown Source) >>> ... 15 more >>> >>> but that class org.apache.axis2.schema.typemap.JavaTypeMap.class r in > the >>> axis2-codegen-1.0.jar and that .jar are in my classpath.. >>> >>> ----- Original Message ----- >>> From: "Martin Gainty" <[EMAIL PROTECTED]> >>> To: <axis-user@ws.apache.org> >>> Sent: Wednesday, September 20, 2006 12:03 PM >>> Subject: Re: [Spam] Re: classpath >>> >>> >>>> Fabio- >>>> >>>> Apparently Jalopy has a hard dependency to Log4j >>>> I would make sure Log4j.jar, Log4j.properties are on your classpath >>>> More detail available at >>>> > http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200606.mbox/%3C1233626. >>> [EMAIL PROTECTED] >>>> and the original JIRA is here >>>> http://issues.apache.org/jira/browse/AXIS2-734 >>>> >>>> Martin -- >>>> ********************************************************************* >>>> This email message and any files transmitted with it contain > confidential >>>> information intended only for the person(s) to whom this email message > is >>>> addressed. If you have received this email message in error, please >>> notify >>>> the sender immediately by telephone or email and destroy the original >>>> message without making a copy. Thank you. >>>> >>>> >>>> >>>> ----- Original Message ----- >>>> From: "Fabio Alves de Araujo Ebner - DNA Solution" >>> <[EMAIL PROTECTED]> >>>> To: <axis-user@ws.apache.org> >>>> Sent: Wednesday, September 20, 2006 10:17 AM >>>> Subject: Re: [Spam] Re: classpath >>>> >>>> >>>>> i put >>>>> > %AXIS2_LIB%\axiom-api-1.0.jar;%AXIS2_LIB%\axiom-api-1.1.1.jar;%AXIS2_LIB%\ax > iom-dom-1.0.jar;%AXIS2_LIB%\axiom-dom-1.1.1.jar;%AXIS2_LIB%\axiom-impl-1.0.j >>>>> ar;%AXIS2_LIB%\axiom-impl-1.1.1.jar >>>>> >>>>> and now i got the error: >>>>> >>>>> C:\>java org.apache.axis2.wsdl.WSDL2Java -uri >>>>> http://localhost:8080/axis2/servic >>>>> es/VerificaLogin?wsdl -ss -sd -d xmlbeans -o \exemplo1 -p >>> br.com.dnasolution >>>>> 20/09/2006 11:12:54 > org.apache.axis2.wsdl.codegen.writer.PrettyPrinter >>>>> prettify >>>>> INFO: Jalopy not found - unable to pretty print >>>>> \exemplo1\src\br\com\dnasolution >>>>> \VerificaLoginSkeleton.java >>>>> 20/09/2006 11:12:55 > org.apache.axis2.wsdl.codegen.writer.PrettyPrinter >>>>> prettify >>>>> INFO: Jalopy not found - unable to pretty print >>>>> \exemplo1\src\br\com\dnasolution >>>>> \VerificaLoginMessageReceiverInOut.java >>>>> Exception in thread "main" >>>>> org.apache.axis2.wsdl.codegen.CodeGenerationException >>>>> : org.apache.axis2.wsdl.codegen.CodeGenerationException: >>>>> java.lang.RuntimeExcept >>>>> ion: WSDL writing failed! >>>>> at >>>>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener >>>>> ationEngine.java:185) >>>>> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) >>>>> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) >>>>> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: >>>>> java.lang.Runt >>>>> imeException: WSDL writing failed! >>>>> at >>>>> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>>>> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:640) >>>>> at >>>>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener >>>>> ationEngine.java:168) >>>>> ... 2 more >>>>> Caused by: java.lang.RuntimeException: WSDL writing failed! >>>>> at >>>>> org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter. >>>>> java:45) >>>>> at >>>>> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>>>> itter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:737) >>>>> at >>>>> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>>>> > itter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:703) >>>>> at >>>>> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>>>> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:638) >>>>> ... 3 more >>>>> Caused by: org.apache.axis2.AxisFault: null; nested exception is: >>>>> java.lang.NullPointerException >>>>> at >>>>> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558 >>>>> ) >>>>> at >>>>> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:5 >>>>> 45) >>>>> at >>>>> org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter. >>>>> java:40) >>>>> ... 6 more >>>>> Caused by: java.lang.NullPointerException >>>>> at >>>>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeXMLConte >>>>> nt(Unknown Source) >>>>> at >>>>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeAttribut >>>>> e(Unknown Source) >>>>> at >>>>> org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeAttribute(MTOMXMLSt >>>>> reamWriter.java:138) >>>>> at >>>>> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeAttribute(OMS >>>>> erializerUtil.java:76) >>>>> at >>>>> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeAttributes(OM >>>>> SerializerUtil.java:266) >>>>> at >>>>> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMS >>>>> erializerUtil.java:232) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:765) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:754) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:769) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:754) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:769) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:754) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:769) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMEleme >>>>> ntImpl.java:754) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:31 >>>>> 0) >>>>> at >>>>> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:35 >>>>> 1) >>>>> at >>>>> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:554 >>>>> ) >>>>> ... 8 more >>>>> ----- Original Message ----- >>>>> From: "Rodrigo Ruiz" <[EMAIL PROTECTED]> >>>>> To: <axis-user@ws.apache.org> >>>>> Sent: Wednesday, September 20, 2006 11:03 AM >>>>> Subject: [Spam] Re: classpath >>>>> >>>>> >>>>>> Hi Fabio, the missing class is from Axiom. You should have one or > more >>>>>> axiom*.jar files in %AXIS2_LIB%. Add them all to your classpath. >>>>>> >>>>>> HTH, >>>>>> Rodrigo Ruiz >>>>>> >>>>>> Fabio Alves de Araujo Ebner - DNA Solution wrote: >>>>>>> how .jar i need put at classpath?? >>>>>>> >>>>>>> > %AXIS2_LIB%\axis2-codegen-1.0.jar;%AXIS2_LIB%\axis2-kernel-1.0.jar;%AXIS2_LI > B%\neethi-1.0.1.jar;%AXIS2_LIB%\XmlSchema-1.0.2.jar;%AXIS2_LIB%\xbean-2.1.0. >>>>> jar;%AXIS2_LIB%\axis2-xmlbeans-1.0.jar; >>>>>>> i put all this but when i run >>>>>>> WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -d >>>>>>> xmlbeans -o ..\samples -p org.apache.axis2.userguide >>>>>>> i got the error: >>>>>>> >>>>>>> C:\tomcat\axis2\lib>java org.apache.axis2.wsdl.WSDL2Java -uri >>>>>>> http://localhost:8 >>>>>>> 080/axis2/services/VerificaLogin?wsdl -ss -sd -d xmlbeans -o >>> \exemplo1 >>>>>>> -p br.com >>>>>>> .dnasolution >>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.databinding.TypeMapper$1.class$(TypeMapper.java >>>>>>> :29) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.databinding.TypeMapper.<clinit>(TypeMapper.java >>>>>>> :29) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1576) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1426) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1197) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java >>>>> :111 >>>>>>> 7) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm > itter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1080) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>> itter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:690) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm >>>>>>> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:638) >>>>>>> at >>>>>>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener >>>>>>> ationEngine.java:168) >>>>>>> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) >>>>>>> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) >>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>> org.apache.axiom.om.OMElement >>>>>>> at java.net.URLClassLoader$1.run(Unknown Source) >>>>>>> at java.security.AccessController.doPrivileged(Native > Method) >>>>>>> at java.net.URLClassLoader.findClass(Unknown Source) >>>>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown > Source) >>>>>>> at java.lang.ClassLoader.loadClass(Unknown Source) >>>>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source) >>>>>>> at java.lang.Class.forName0(Native Method) >>>>>>> at java.lang.Class.forName(Unknown Source) >>>>>>> ... 12 more >>>>>>> >>>>>>> >>>>>> -- >>>>>> ------------------------------------------------------------------- >>>>>> GRIDSYSTEMS Rodrigo Ruiz Aguayo >>>>>> Parc Bit - Son Espanyol >>>>>> 07120 Palma de Mallorca mailto:[EMAIL PROTECTED] >>>>>> Baleares - España Tel:+34-971435085 Fax:+34-971435082 >>>>>> http://www.gridsystems.com >>>>>> ------------------------------------------------------------------- >>>>>> >>>>>> >>>>>> -- >>>>>> No virus found in this outgoing message. >>>>>> Checked by AVG Free Edition. >>>>>> Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: >>> 19/09/2006 >>>>>> >>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- ------------------------------------------------------------------- GRIDSYSTEMS Rodrigo Ruiz Aguayo Parc Bit - Son Espanyol 07120 Palma de Mallorca mailto:[EMAIL PROTECTED] Baleares - España Tel:+34-971435085 Fax:+34-971435082 http://www.gridsystems.com ------------------------------------------------------------------- -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 20/09/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]