axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: log4j WARN No appenders could be found for logger
Date Sun, 23 Dec 2012 22:37:08 GMT

Oscar

axis2-1.6.2.jar and or axis2-kernel-1.6.2.jar is missing on the classpath
¡Feliz Navidad desde EEUU!
Martin______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.

 Date: Sun, 23 Dec 2012 17:29:24 +0200
Subject: Re: log4j WARN No appenders could be found for logger
From: areegonline@gmail.com
To: java-user@axis.apache.org

Hi,
This is the code that I wrote to generate the client code:

WSDL2Java.bat -uri http://localhost:8080/axis2/services/HelloWorldService?wsdl 
		-o client
Using AXIS2_HOME:   C:\Users\Nicole-VM\Desktop\AXIS2\axis2-1.6.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.7.0_07
Retrieving document at 'http://localhost:8080/axis2/services/HelloWorldService?w

sdl'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.
WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.


This command generates two files, but when I compile them. using javac net/roseindia/*.java
the following error appears because I can't generate compiled files:


        ^
  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:91: error: package org.apache.axis2.cli

ent does not exist
        _serviceClient = new org.apache.axis2.client.ServiceClient(configuration
Context,_service);
                                                    ^
net\roseindia\HelloWorldServiceStub.java:91: error: cannot find symbol

        _serviceClient = new org.apache.axis2.client.ServiceClient(configuration
Context,_service);

        ^
  symbol:   variable _service
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:94: error: package org.apache.axis2.add

ressing does not exist
        _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.Endpoi
ntReference(
                                                                         ^
net\roseindia\HelloWorldServiceStub.java:94: error: cannot find symbol

        _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.Endpoi
ntReference(
        ^
  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:96: error: cannot find symbol

        _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);

        ^
  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:99: error: package org.apache.axiom.soa

p does not exist
            _serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.
SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
                                                                               ^


net\roseindia\HelloWorldServiceStub.java:99: error: cannot find symbol
            _serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.
SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
            ^

  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:150: error: package org.apache.axis2.co
ntext does not exist

              org.apache.axis2.context.MessageContext _messageContext = null;
                                      ^
net\roseindia\HelloWorldServiceStub.java:152: error: package org.apache.axis2.cl

ient does not exist
               org.apache.axis2.client.OperationClient _operationClient = _servi
ceClient.createClient(_operations[0].getName());
                                      ^
net\roseindia\HelloWorldServiceStub.java:152: error: cannot find symbol

               org.apache.axis2.client.OperationClient _operationClient = _servi
ceClient.createClient(_operations[0].getName());
                                                                          ^
  symbol:   variable _serviceClient

  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:158: error: package org.apache.axis2.de
scription does not exist
                  addPropertyToOperationClient(_operationClient,org.apache.axis2

.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");

            ^
net\roseindia\HelloWorldServiceStub.java:162: error: package org.apache.axis2.co

ntext does not exist
              _messageContext = new org.apache.axis2.context.MessageContext();
                                                            ^
net\roseindia\HelloWorldServiceStub.java:167: error: package org.apache.axiom.so

ap does not exist
              org.apache.axiom.soap.SOAPEnvelope env = null;
                                   ^
net\roseindia\HelloWorldServiceStub.java:177: error: cannot find symbol
         _serviceClient.addHeadersToEnvelope(env);

         ^
  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:188: error: package org.apache.axis2.co

ntext does not exist
               org.apache.axis2.context.MessageContext _returnMessageContext = _
operationClient.getMessageContext(
                                       ^
net\roseindia\HelloWorldServiceStub.java:189: error: package org.apache.axis2.ws

dl does not exist
                                           org.apache.axis2.wsdl.WSDLConstants.M
ESSAGE_LABEL_IN_VALUE);
                                                                ^
net\roseindia\HelloWorldServiceStub.java:190: error: package org.apache.axiom.so

ap does not exist
                org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageCo
ntext.getEnvelope();
                                     ^
net\roseindia\HelloWorldServiceStub.java:201: error: package org.apache.axis2 do

es not exist
         }catch(org.apache.axis2.AxisFault f){
                                ^
net\roseindia\HelloWorldServiceStub.java:203: error: package org.apache.axiom.om

 does not exist
            org.apache.axiom.om.OMElement faultElt = f.getDetail();
                               ^
net\roseindia\HelloWorldServiceStub.java:205: error: package org.apache.axis2.cl

ient does not exist
                if (faultExceptionNameMap.containsKey(new org.apache.axis2.clien
t.FaultMapKey(faultElt.getQName(),"sayHello"))){

 ^
net\roseindia\HelloWorldServiceStub.java:208: error: package org.apache.axis2.cl

ient does not exist
                        java.lang.String exceptionClassName = (java.lang.String)
faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.
getQName(),"sayHello"));


                                                          ^
net\roseindia\HelloWorldServiceStub.java:213: error: package org.apache.axis2.cl
ient does not exist
                        java.lang.String messageClassName = (java.lang.String)fa

ultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"s
ayHello"));

                                             ^
net\roseindia\HelloWorldServiceStub.java:269: error: package org.apache.axis2.cl

ient does not exist
              org.apache.axis2.client.OperationClient _operationClient = _servic
eClient.createClient(_operations[0].getName());
                                     ^
net\roseindia\HelloWorldServiceStub.java:269: error: cannot find symbol

              org.apache.axis2.client.OperationClient _operationClient = _servic
eClient.createClient(_operations[0].getName());
                                                                         ^
  symbol:   variable _serviceClient

  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:275: error: package org.apache.axis2.de
scription does not exist
                  addPropertyToOperationClient(_operationClient,org.apache.axis2

.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");

            ^
net\roseindia\HelloWorldServiceStub.java:280: error: package org.apache.axiom.so

ap does not exist
              org.apache.axiom.soap.SOAPEnvelope env=null;
                                   ^
net\roseindia\HelloWorldServiceStub.java:281: error: package org.apache.axis2.co

ntext does not exist
              final org.apache.axis2.context.MessageContext _messageContext = ne
w org.apache.axis2.context.MessageContext();
                                            ^
net\roseindia\HelloWorldServiceStub.java:281: error: package org.apache.axis2.co

ntext does not exist
              final org.apache.axis2.context.MessageContext _messageContext = ne
w org.apache.axis2.context.MessageContext();

                          ^
net\roseindia\HelloWorldServiceStub.java:294: error: cannot find symbol

         _serviceClient.addHeadersToEnvelope(env);
         ^
  symbol:   variable _serviceClient
  location: class HelloWorldServiceStub
net\roseindia\HelloWorldServiceStub.java:303: error: package org.apache.axis2.cl

ient.async does not exist
                        _operationClient.setCallback(new org.apache.axis2.client
.async.AxisCallback() {

      ^
net\roseindia\HelloWorldServiceStub.java:389: error: package org.apache.axis2.ut

il does not exist
          org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
                               ^
net\roseindia\HelloWorldServiceStub.java:391: error: package org.apache.axis2.ut
il does not exist

           _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
                                                        ^
net\roseindia\HelloWorldServiceStub.java:410: error: package org.apache.axiom.om

 does not exist
            org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespac
e) namespaceIterator.next();
                               ^
net\roseindia\HelloWorldServiceStub.java:410: error: package org.apache.axiom.om

 does not exist
            org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespac
e) namespaceIterator.next();
                                                                     ^
net\roseindia\HelloWorldServiceStub.java:499: error: package org.apache.axiom.om

 does not exist
               org.apache.axiom.om.OMDataSource dataSource =
                                  ^
net\roseindia\HelloWorldServiceStub.java:500: error: package org.apache.axis2.da
tabinding does not exist

                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QN
AME);
                                                       ^
net\roseindia\HelloWorldServiceStub.java:571: error: package org.apache.axis2.da

tabinding.utils does not exist
            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix()
;
                                                     ^
net\roseindia\HelloWorldServiceStub.java:662: error: package org.apache.axis2.da

tabinding.utils does not exist
                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.da
tabinding.utils.ConverterUtil.convertToString(qname));

               ^
net\roseindia\HelloWorldServiceStub.java:665: error: package org.apache.axis2.da

tabinding.utils does not exist
                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils
.ConverterUtil.convertToString(qname));

^
net\roseindia\HelloWorldServiceStub.java:669: error: package org.apache.axis2.da

tabinding.utils does not exist
                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.Con
verterUtil.convertToString(qname));
                                                                            ^

net\roseindia\HelloWorldServiceStub.java:697: error: package org.apache.axis2.da
tabinding.utils does not exist
                            stringToWrite.append(prefix).append(":").append(org.
apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));


                              ^
net\roseindia\HelloWorldServiceStub.java:699: error: package org.apache.axis2.da
tabinding.utils does not exist
                            stringToWrite.append(org.apache.axis2.databinding.ut

ils.ConverterUtil.convertToString(qnames[i]));

   ^
net\roseindia\HelloWorldServiceStub.java:702: error: package org.apache.axis2.da
tabinding.utils does not exist
                        stringToWrite.append(org.apache.axis2.databinding.utils.

ConverterUtil.convertToString(qnames[i]));
                                                                               ^

net\roseindia\HelloWorldServiceStub.java:724: error: package org.apache.axis2.da
tabinding.utils does not exist

                    prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniq
uePrefix();
                                                               ^
net\roseindia\HelloWorldServiceStub.java:751: error: package org.apache.axis2.da

tabinding.utils does not exist
                                         org.apache.axis2.databinding.utils.Conv
erterUtil.convertToString(localArgs0));
                                                                           ^

net\roseindia\HelloWorldServiceStub.java:754: error: package org.apache.axis2.da
tabinding.utils.reader does not exist
                return new org.apache.axis2.databinding.utils.reader.ADBXMLStrea
mReaderImpl(qName, elementList.toArray(), attribList.toArray());

                                                                    ^
net\roseindia\HelloWorldServiceStub.java:840: error: package org.apache.axis2.da
tabinding.utils does not exist
                                                    org.apache.axis2.databinding

.utils.ConverterUtil.convertToString(content));

      ^
net\roseindia\HelloWorldServiceStub.java:861: error: package org.apache.axis2.da
tabinding does not exist
                                throw new org.apache.axis2.databinding.ADBExcept

ion("Unexpected subelement " + reader.getName());
                                                                      ^
net\roseindia\HelloWorldServiceStub.java:946: error: package org.apache.axiom.om

 does not exist
               org.apache.axiom.om.OMDataSource dataSource =
                                  ^
net\roseindia\HelloWorldServiceStub.java:947: error: package org.apache.axis2.da
tabinding does not exist

                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QN
AME);
                                                       ^
net\roseindia\HelloWorldServiceStub.java:1018: error: package org.apache.axis2.d

atabinding.utils does not exist
            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix()
;
                                                     ^
net\roseindia\HelloWorldServiceStub.java:1109: error: package org.apache.axis2.d

atabinding.utils does not exist
                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.da
tabinding.utils.ConverterUtil.convertToString(qname));

               ^
net\roseindia\HelloWorldServiceStub.java:1112: error: package org.apache.axis2.d

atabinding.utils does not exist
                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils
.ConverterUtil.convertToString(qname));

^
net\roseindia\HelloWorldServiceStub.java:1116: error: package org.apache.axis2.d

atabinding.utils does not exist
                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.Con
verterUtil.convertToString(qname));
                                                                            ^

net\roseindia\HelloWorldServiceStub.java:1144: error: package org.apache.axis2.d
atabinding.utils does not exist
                            stringToWrite.append(prefix).append(":").append(org.
apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));


                              ^
Note: net\roseindia\HelloWorldServiceStub.java uses unchecked or unsafe operatio
ns.
Note: Recompile with -Xlint:unchecked for details.
100 errors

But when I install Log4j the error is gone. So i don't know is that due two Log installation
or something else?

I attached the example with the email.

Thank you for your time and for your patience.


On Sun, Dec 23, 2012 at 4:01 PM, Oscar Rugama <oscaster@hotmail.com> wrote:





 Hi

 Could you please tell me how are you doing to generate client?

 The exact code at command line and i can help you

 Thanks

 Regards

Date: Sun, 23 Dec 2012 12:48:45 +0200

Subject: Re: log4j WARN No appenders could be found for logger
From: areegonline@gmail.com
To: java-user@axis.apache.org


I tried and it doesn't work. But I installed Log4J and build it. After that I compile the
java files, it worked great
May be it requires this log I don't know
anyway thank you for you help and for your time.




On Sun, Dec 23, 2012 at 10:49 AM, Oscar Rugama <oscaster@hotmail.com> wrote:





 Hi,

   It´s not an error, it´s just a warning. Your code must work, have you tried?

 Regards

Date: Sun, 23 Dec 2012 08:28:39 +0200
Subject: log4j WARN No appenders could be found for logger


From: areegonline@gmail.com
To: axis-user@ws.apache.org


Hello,
I want to create client application and every time I type:
WSDL2Java.bat -uri http://localhost:8080/axis2/services/HelloWorldService?wsdl -o client






This error happen:
Using AXIS2_HOME:   C:\Users\Nicole-VM\Desktop\AXIS2\axis2-1.6.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.7.0_07
Retrieving document at 'http://localhost:8080/axis2/services/HelloWorldService?wsdl'.





log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.

I searched a lot to solve it but I don't know how to solve this WARN. I'm new to Axis so please
any help would be appreciated?



-- 
thank you for your time

Sincerely
Areeg Samir


 		 	   		  


-- 
thank you for your time

Sincerely
Areeg Samir


 		 	   		  


-- 
thank you for your time

Sincerely
Areeg Samir





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org 		 	   		  
Mime
View raw message