You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Bryan Noll <bw...@gmail.com> on 2006/07/30 06:23:15 UTC

Re: Geronimo/Axis2--Java classes generation from WSDL

This is a log4j problem, and is just a warning, so I don't believe it 
should be adversely affecting your wsdl2java stuff in any way.  Set up a 
simple logger that outputs to the console... something like the following.

A file named 'log4j.properties' needs to exist on the root of your 
classpath, and contain the following (note that you can modify many/most 
of the properties to your liking):

###################################
log4j.threshold=ALL
log4j.rootLogger=ALL, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{MM/dd HH:mm:ss} -- %p 
-- %m -- %c%n
log4j.appender.stdout.Threshold=DEBUG
###################################


Isuru Samaraweera wrote:
> Hi All,
>     I am trying to deploy a Axis2 web service on geronimo.However when 
> I am trying to generate the java classes from a WSDL file using the 
> commandline WSDL2Java tool following error was displayed on the console.
>  
> log4j:WARN No appenders could be found for logger 
> (org.apache.axis2.i18n.Project
> ResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
>  
> =================================================
> Command I am using is
>  
> java org.apache.axis2.wsdl.WSDL2Java -S true cart.wsdl
> Does anybody in this list has encountered this problem  with Axis2 web 
> services?
>  
> Thank You,
> Regards
> Isuru
>
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great 
> rates starting at 1¢/min. 
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>

Re: Geronimo/Axis2--Java classes generation from WSDL

Posted by Isuru Samaraweera <is...@yahoo.com>.
Hi Aaron,
     I have found the solution for my problem :).Problem is described below.
  According to the tutorial at 
  http://www-128.ibm.com/developerworks/library/os-ag-axis2mig/index.html
  after   the "java WSDL2Java -S true cart.wsdl" command  was executed Java classes should be generated.But Java classes were not generated when "wsdl2java" runs.It just prints those debug messages.
   
  After I cange the command to "WSDL2Java -uri cart.wsdl " required classes were generated.
   
  Thank You,
  Regards,
  Isuru
   
   
   
   
  
I have all jar files inside the axis2/lib in the classpath.
   
  Thank you,
  Regards,
  Isuru


Aaron Mulder <am...@alumni.princeton.edu> wrote:
  What the error? Those all look like DEBUG messages, which normally do
not indicate that anything is wrong. I don't see any WARNING or ERROR
messages.

Thanks,
Aaron

On 7/30/06, Isuru Samaraweera wrote:
>
> Hi Bryan,
>
> I add the log4j.properties file to the axis2_classpath.Now I am getting
> the following error when "wsdl2java" is executed.
>
> Using AXIS2_HOME:
> C:\IsurusFiles\geronimo\samples\axis2\axis
> Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0
> 07/30 01:27:42 -- DEBUG --
> getBundle(org.apache.axis2,org.apache.axis2.i18n,reso
> urce,null,...) --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.resource, locale en_US --
> org.apache.
> axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Created org.apache.axis2.i18n.resource, linked to
> par
> ent null -- org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG --
> getBundle(org.apache.axis2,org.apache.axis2.wsdl.i18n
> ,resource,null,...) --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.wsdl.resource, locale en_US --
> org.ap
> ache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.resource, locale en_US --
> org.apache.
> axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Root package not found, cross link to
> org.apache.axis
> 2.i18n.resource --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Root package not found, cross link to
> org.apache.axis
> 2.i18n.resource --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Created
> org.apache.axis2.wsdl.i18n.resource, linked t
> o parent org.apache.axis2.i18n.resource --
> org.apache.axis2.i18n.ProjectResource
> Bundle
>
> Thanks you,
> Regards,
> ISuru
>
>
> Bryan Noll wrote:
> This is a log4j problem, and is just a warning, so I don't believe it should
> be adversely affecting your wsdl2java stuff in any way. Set up a simple
> logger that outputs to the console... something like the following.
>
> A file named 'log4j.properties' needs to exist on the root of your
> classpath, and contain the following (note that you can modify many/most of
> the properties to your liking):
>
> ###################################
> log4j.threshold=ALL
> log4j.rootLogger=ALL, stdout
>
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%d{MM/dd
> HH:mm:ss} -- %p -- %m -- %c%n
> log4j.appender.stdout.Threshold=DEBUG
> ###################################
>
>
> Isuru Samaraweera wrote:
>
> Hi All,
> I am trying to deploy a Axis2 web service on geronimo.However when I am
> trying to generate the java classes from a WSDL file using the commandline
> WSDL2Java tool following error was displayed on the console.
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.Project
> ResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
>
> =================================================
> Command I am using is
>
> java org.apache.axis2.wsdl.WSDL2Java -S true cart.wsdl
>
> Does anybody in this list has encountered this problem with Axis2 web
> services?
>
> Thank You,
> Regards
> Isuru
> ________________________________
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
>
>
> ________________________________
> Groups are talking. We´re listening. Check out the handy changes to Yahoo!
> Groups.
>
>


 		
---------------------------------
Groups are talking. We&acute;re listening. Check out the handy changes to Yahoo! Groups. 

Re: Geronimo/Axis2--Java classes generation from WSDL

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
What the error?  Those all look like DEBUG messages, which normally do
not indicate that anything is wrong.  I don't see any WARNING or ERROR
messages.

Thanks,
    Aaron

On 7/30/06, Isuru Samaraweera <is...@yahoo.com> wrote:
>
> Hi Bryan,
>
>  I add the log4j.properties file to the  axis2_classpath.Now I am getting
> the following error when "wsdl2java" is executed.
>
> Using AXIS2_HOME:
> C:\IsurusFiles\geronimo\samples\axis2\axis
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0
> 07/30 01:27:42 -- DEBUG --
> getBundle(org.apache.axis2,org.apache.axis2.i18n,reso
> urce,null,...) --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.resource, locale en_US --
> org.apache.
> axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Created org.apache.axis2.i18n.resource, linked to
> par
> ent null -- org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG --
> getBundle(org.apache.axis2,org.apache.axis2.wsdl.i18n
> ,resource,null,...) --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.wsdl.resource, locale en_US --
> org.ap
> ache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException:
> Can't
> find bundle for base name org.apache.axis2.resource, locale en_US --
> org.apache.
> axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Root package not found, cross link to
> org.apache.axis
> 2.i18n.resource --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Root package not found, cross link to
> org.apache.axis
> 2.i18n.resource --
> org.apache.axis2.i18n.ProjectResourceBundle
> 07/30 01:27:42 -- DEBUG -- Created
> org.apache.axis2.wsdl.i18n.resource, linked t
> o parent org.apache.axis2.i18n.resource --
> org.apache.axis2.i18n.ProjectResource
> Bundle
>
> Thanks you,
> Regards,
> ISuru
>
>
> Bryan Noll <bw...@gmail.com> wrote:
> This is a log4j problem, and is just a warning, so I don't believe it should
> be adversely affecting your wsdl2java stuff in any way.  Set up a simple
> logger that outputs to the console... something like the following.
>
> A file named 'log4j.properties' needs to exist on the root of your
> classpath, and contain the following (note that you can modify many/most of
> the properties to your liking):
>
> ###################################
> log4j.threshold=ALL
> log4j.rootLogger=ALL, stdout
>
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%d{MM/dd
> HH:mm:ss} -- %p -- %m -- %c%n
> log4j.appender.stdout.Threshold=DEBUG
> ###################################
>
>
> Isuru Samaraweera wrote:
>
> Hi All,
>     I am trying to deploy a Axis2 web service on geronimo.However when I am
> trying to generate the java classes from a WSDL file using the commandline
> WSDL2Java tool following error was displayed on the console.
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.Project
> ResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
>
> =================================================
> Command I am using is
>
> java org.apache.axis2.wsdl.WSDL2Java -S true cart.wsdl
>
> Does anybody in this list has encountered this problem  with Axis2 web
> services?
>
> Thank You,
> Regards
> Isuru
>  ________________________________
>  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
>
>
>  ________________________________
> Groups are talking. We´re listening. Check out the handy changes to Yahoo!
> Groups.
>
>

Re: Geronimo/Axis2--Java classes generation from WSDL

Posted by Isuru Samaraweera <is...@yahoo.com>.
Hi Bryan,
   
   I add the log4j.properties file to the  axis2_classpath.Now I am getting the following error when "wsdl2java" is executed.
   
  Using AXIS2_HOME:   C:\IsurusFiles\geronimo\samples\axis2\axis
Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0
  07/30 01:27:42 -- DEBUG -- getBundle(org.apache.axis2,org.apache.axis2.i18n,reso
urce,null,...) -- org.apache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException: Can't
find bundle for base name org.apache.axis2.resource, locale en_US -- org.apache.
axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- Created org.apache.axis2.i18n.resource, linked to par
ent null -- org.apache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- getBundle(org.apache.axis2,org.apache.axis2.wsdl.i18n
,resource,null,...) -- org.apache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException: Can't
find bundle for base name org.apache.axis2.wsdl.resource, locale en_US -- org.ap
ache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- loadBundle: Ignoring MissingResourceException: Can't
find bundle for base name org.apache.axis2.resource, locale en_US -- org.apache.
axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- Root package not found, cross link to org.apache.axis
2.i18n.resource -- org.apache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- Root package not found, cross link to org.apache.axis
2.i18n.resource -- org.apache.axis2.i18n.ProjectResourceBundle
07/30 01:27:42 -- DEBUG -- Created org.apache.axis2.wsdl.i18n.resource, linked t
o parent org.apache.axis2.i18n.resource -- org.apache.axis2.i18n.ProjectResource
Bundle

  Thanks you,
  Regards,
  ISuru
  
Bryan Noll <bw...@gmail.com> wrote:
  This is a log4j problem, and is just a warning, so I don't believe it should be adversely affecting your wsdl2java stuff in any way.  Set up a simple logger that outputs to the console... something like the following.

A file named 'log4j.properties' needs to exist on the root of your classpath, and contain the following (note that you can modify many/most of the properties to your liking):

###################################
log4j.threshold=ALL
log4j.rootLogger=ALL, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{MM/dd HH:mm:ss} -- %p -- %m -- %c%n
log4j.appender.stdout.Threshold=DEBUG
###################################


Isuru Samaraweera wrote:     Hi All,
      I am trying to deploy a Axis2 web service on geronimo.However when I am trying to generate the java classes from a WSDL file using the commandline WSDL2Java tool following error was displayed on the console.
   
  log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.Project
ResourceBundle).
log4j:WARN Please initialize the log4j system properly.
   
  =================================================
  Command I am using is
   
  java org.apache.axis2.wsdl.WSDL2Java -S true cart.wsdl

  Does anybody in this list has encountered this problem  with Axis2 web services?
   
  Thank You,
  Regards
  Isuru
  
  
---------------------------------
  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. 

 		
---------------------------------
Groups are talking. We&acute;re listening. Check out the handy changes to Yahoo! Groups.