You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Duncan Thomson <du...@mitre.org> on 2007/04/16 15:17:53 UTC

Logging module error with userguide examples

I'm slogging my way through the axis2 userguide introduction
section, and I have some questions.  Hopefully there is someone on 
the list familiar with how the userguide examples were put 
together who can tackle these...

I've deployed axis2 (1.1.1) into apache tomcat (6).  I created and 
deployed the server example as described in the "Apache Axis2 
User's Guide -Building Services" section.  I created and deployed 
the client as described in the "Creating Clients" section.  The 
client and server are both based on the wsdl file in code listing 
5 in the userguide.

The client and server seem to work, however when I run the client
under axis2 I get a bunch of error messages related to undeployed 
logging modules (messages duplicated below).

I did some searching of the archives, and found some information 
about configuration things that have to be done to enable logging 
modules.  But...

1) At this point in the user guide logging modules have not even
been mentioned, and I don't think the example in question uses
them.  So... what is trying to load them?  Is this perhaps the way
the way axis2.war comes set up by default?  Did I inadvertently
turn logging on (or miss a step in which I was supposed to turn it
off)?

2) How do I either turn logging off or properly deploy it?

3) In general, what's with all the "Deploying module" stuff I'm
getting when I run the client?  I'm just trying to figure this
stuff out, but I exepected the client to simply send SOAP messages
to the service, which has already been deployed, hasn't it?  So 
what's with all these messages about "doDeploy" when I run the 
client?  (Note - at this point I still don't really understand
exactly what this client is doing - I'm just working through the
examples in the userguide.)

Any help would be appreciated!

Duncan

p.s. A comment to the userguide authors - suggest we move the
example of building a service BEFORE the example of building the
client, because obviously the client won't work until the service
is built and deployed.

p.s. Another comment for userguide authors - suggest the example
commands be given for both Windows and unix environments, rather 
than just Windows.

Here are the error messages I get when I try to run the client...

seafox:~/myservice> axis2.sh org.apache.axis2.axis2userguide.Client
  Using AXIS2_HOME:            /home/duncant/axis2
  Using JAVA_HOME:             /usr/local/java
Apr 15, 2007 11:26:28 AM
org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1.1
Apr 15, 2007 11:26:28 AM
org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : soapmonitor-1.1.1
Apr 15, 2007 11:26:28 AM
org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  version.aar
Apr 15, 2007 11:26:28 AM
org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  sample-MyService.aar
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules logging module is invalid or has not been
deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules logging module is invalid or has not
been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed
         at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
         at
<snip>
Caused by: org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules logging module is invalid or has not
been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
         org.apache.axis2.deployment.DeploymentException: logging
module is invalid or has not been deployed; nested exception is:
<etc...>
Apr 15, 2007 11:26:28 AM
org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  sample-WsaMappingService.aar
done
echo! ... echo!
org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub$NoParametersResponse@fec107
true
23872983





---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Databinding to existing domain java classes

Posted by Nicolae Marasoiu <nm...@kepler-rominfo.com>.
Hi;

What are the options to make a web services remoting of a certain java call
?

1. RPC Service, hot deployed + RPC client: this requires no java code
generation by the user. It is the slowest solution right?
2. ADB generation: how to reuse my own domain objects?
	- I can remove the attributes in each generated type class and make
it inherit my own type class, the domain class; javabean accessors will
delegate to corresponding accessors of the parent class or they are deleted
when the property names are the same (this will probably be my case); given
that one to many relationships are represented as array properties in both
domains (mine and generated one) I asses that this is a workable solution
right?
	- Is there a currently implemented way of telling the generator to
work with existing type classes? Is it smart enaugh to make such a
decoupling between existing, user supplied data javabeans (DTOs) and the XML
- java binding infrastructure?
3. XML Beans or other generation

Thank you,
Nicu Marasoiu


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Logging module error with userguide examples

Posted by Duncan Thomson <du...@mitre.org>.
Thanks Martin,

The only application containing that line was example2.  I think I 
somehow got that application's .aar file installed under axis2 in 
the tomcat webapps folder.  The service was not showing on the 
axis2 admin console as active, but something was there.  Anyway, I 
rebuilt a clean axis2.war and redeployed it.  Now the problem is 
gone.  User error, I guess.  Thanks.

Duncan

Martin Gainty wrote:
> Good Morning Duncan
> 
> These are great suggestions
> 
> what would happen if you replaced this line from services.xml
>   <module ref="logging"/>
> with a blank line?
> 
> Again these are great suggestions as they step you thru the process in a 
> chronological fashion
> 
> Thanks,
> 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: "Duncan Thomson" <du...@mitre.org>
> To: <ax...@ws.apache.org>
> Sent: Monday, April 16, 2007 9:17 AM
> Subject: Logging module error with userguide examples
> 
> 
>> I'm slogging my way through the axis2 userguide introduction
>> section, and I have some questions.  Hopefully there is someone on the 
>> list familiar with how the userguide examples were put together who 
>> can tackle these...
>>
>> I've deployed axis2 (1.1.1) into apache tomcat (6).  I created and 
>> deployed the server example as described in the "Apache Axis2 User's 
>> Guide -Building Services" section.  I created and deployed the client 
>> as described in the "Creating Clients" section.  The client and server 
>> are both based on the wsdl file in code listing 5 in the userguide.
>>
>> The client and server seem to work, however when I run the client
>> under axis2 I get a bunch of error messages related to undeployed 
>> logging modules (messages duplicated below).
>>
>> I did some searching of the archives, and found some information about 
>> configuration things that have to be done to enable logging modules. 
>> But...
>>
>> 1) At this point in the user guide logging modules have not even
>> been mentioned, and I don't think the example in question uses
>> them.  So... what is trying to load them?  Is this perhaps the way
>> the way axis2.war comes set up by default?  Did I inadvertently
>> turn logging on (or miss a step in which I was supposed to turn it
>> off)?
>>
>> 2) How do I either turn logging off or properly deploy it?
>>
>> 3) In general, what's with all the "Deploying module" stuff I'm
>> getting when I run the client?  I'm just trying to figure this
>> stuff out, but I exepected the client to simply send SOAP messages
>> to the service, which has already been deployed, hasn't it?  So what's 
>> with all these messages about "doDeploy" when I run the client?  (Note 
>> - at this point I still don't really understand
>> exactly what this client is doing - I'm just working through the
>> examples in the userguide.)
>>
>> Any help would be appreciated!
>>
>> Duncan
>>
>> p.s. A comment to the userguide authors - suggest we move the
>> example of building a service BEFORE the example of building the
>> client, because obviously the client won't work until the service
>> is built and deployed.
>>
>> p.s. Another comment for userguide authors - suggest the example
>> commands be given for both Windows and unix environments, rather than 
>> just Windows.
>>
>> Here are the error messages I get when I try to run the client...
>>
>> seafox:~/myservice> axis2.sh org.apache.axis2.axis2userguide.Client
>>  Using AXIS2_HOME:            /home/duncant/axis2
>>  Using JAVA_HOME:             /usr/local/java
>> Apr 15, 2007 11:26:28 AM
>> org.apache.axis2.deployment.DeploymentEngine doDeploy
>> INFO: Deploying module : addressing-1.1.1
>> Apr 15, 2007 11:26:28 AM
>> org.apache.axis2.deployment.DeploymentEngine doDeploy
>> INFO: Deploying module : soapmonitor-1.1.1
>> Apr 15, 2007 11:26:28 AM
>> org.apache.axis2.deployment.DeploymentEngine doDeploy
>> INFO: Deploying Web service  version.aar
>> Apr 15, 2007 11:26:28 AM
>> org.apache.axis2.deployment.DeploymentEngine doDeploy
>> INFO: Deploying Web service  sample-MyService.aar
>> org.apache.axis2.deployment.DeploymentException: Processing
>> Operations Modules logging module is invalid or has not been
>> deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException:
>> Processing Operations Modules logging module is invalid or has not
>> been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed
>>         at
>> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139) 
>>
>>         at
>> <snip>
>> Caused by: org.apache.axis2.deployment.DeploymentException:
>> Processing Operations Modules logging module is invalid or has not
>> been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>>         org.apache.axis2.deployment.DeploymentException: logging
>> module is invalid or has not been deployed; nested exception is:
>> <etc...>
>> Apr 15, 2007 11:26:28 AM
>> org.apache.axis2.deployment.DeploymentEngine doDeploy
>> INFO: Deploying Web service  sample-WsaMappingService.aar
>> done
>> echo! ... echo!
>> org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub$NoParametersResponse@fec107 
>>
>> true
>> 23872983
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


-- 
Duncan Thomson
Tel:      703-983-7337
Mobile:   703-463-0536
Text Msg: 7034630536@vtext.com



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Logging module error with userguide examples

Posted by Martin Gainty <mg...@hotmail.com>.
Good Morning Duncan

These are great suggestions

what would happen if you replaced this line from services.xml
   <module ref="logging"/>
with a blank line?

Again these are great suggestions as they step you thru the process in a 
chronological fashion

Thanks,
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: "Duncan Thomson" <du...@mitre.org>
To: <ax...@ws.apache.org>
Sent: Monday, April 16, 2007 9:17 AM
Subject: Logging module error with userguide examples


> I'm slogging my way through the axis2 userguide introduction
> section, and I have some questions.  Hopefully there is someone on the 
> list familiar with how the userguide examples were put together who can 
> tackle these...
>
> I've deployed axis2 (1.1.1) into apache tomcat (6).  I created and 
> deployed the server example as described in the "Apache Axis2 User's 
> Guide -Building Services" section.  I created and deployed the client as 
> described in the "Creating Clients" section.  The client and server are 
> both based on the wsdl file in code listing 5 in the userguide.
>
> The client and server seem to work, however when I run the client
> under axis2 I get a bunch of error messages related to undeployed logging 
> modules (messages duplicated below).
>
> I did some searching of the archives, and found some information about 
> configuration things that have to be done to enable logging modules. 
> But...
>
> 1) At this point in the user guide logging modules have not even
> been mentioned, and I don't think the example in question uses
> them.  So... what is trying to load them?  Is this perhaps the way
> the way axis2.war comes set up by default?  Did I inadvertently
> turn logging on (or miss a step in which I was supposed to turn it
> off)?
>
> 2) How do I either turn logging off or properly deploy it?
>
> 3) In general, what's with all the "Deploying module" stuff I'm
> getting when I run the client?  I'm just trying to figure this
> stuff out, but I exepected the client to simply send SOAP messages
> to the service, which has already been deployed, hasn't it?  So what's 
> with all these messages about "doDeploy" when I run the client?  (Note - 
> at this point I still don't really understand
> exactly what this client is doing - I'm just working through the
> examples in the userguide.)
>
> Any help would be appreciated!
>
> Duncan
>
> p.s. A comment to the userguide authors - suggest we move the
> example of building a service BEFORE the example of building the
> client, because obviously the client won't work until the service
> is built and deployed.
>
> p.s. Another comment for userguide authors - suggest the example
> commands be given for both Windows and unix environments, rather than just 
> Windows.
>
> Here are the error messages I get when I try to run the client...
>
> seafox:~/myservice> axis2.sh org.apache.axis2.axis2userguide.Client
>  Using AXIS2_HOME:            /home/duncant/axis2
>  Using JAVA_HOME:             /usr/local/java
> Apr 15, 2007 11:26:28 AM
> org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : addressing-1.1.1
> Apr 15, 2007 11:26:28 AM
> org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying module : soapmonitor-1.1.1
> Apr 15, 2007 11:26:28 AM
> org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  version.aar
> Apr 15, 2007 11:26:28 AM
> org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  sample-MyService.aar
> org.apache.axis2.deployment.DeploymentException: Processing
> Operations Modules logging module is invalid or has not been
> deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException:
> Processing Operations Modules logging module is invalid or has not
> been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed
>         at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:139)
>         at
> <snip>
> Caused by: org.apache.axis2.deployment.DeploymentException:
> Processing Operations Modules logging module is invalid or has not
> been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
>         org.apache.axis2.deployment.DeploymentException: logging
> module is invalid or has not been deployed; nested exception is:
> <etc...>
> Apr 15, 2007 11:26:28 AM
> org.apache.axis2.deployment.DeploymentEngine doDeploy
> INFO: Deploying Web service  sample-WsaMappingService.aar
> done
> echo! ... echo!
> org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub$NoParametersResponse@fec107
> true
> 23872983
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org