Re: [axis2] SimpleUUIDGen

2007-06-23 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

org.apache.axiom.om.util.UUIDGenerator. It is within Axiom jar.

Anil Chukkapalli wrote:
> Hi
> 
>  Do we have a mechanism similar to the one provided by
> "org.apache.axis.components.uuid.SimpleUUIDGen" in Axis2. Can anyone
> help me or point me to a thread that contains the related information.
> 
> Thank you
> Anil

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfgLHjON2uBzUhh8RAtrjAKCIs/OrpNj0gHbwhROcYVPkU8F64ACeMyeu
kugno0IQKp+a/K4boOh9oc4=
=HtLO
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] How easy to invoke and deploy a service in Axis2

2007-06-23 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

One quick note on this. If your service implementation class is not
public, then I get a "nice" NPE from RPCInOutMessageReceiver. I think we
discussed about this during the hackathon. Just wanted to relate it to
this :)

Glen Mazza wrote:
> Big deal.  My code has 50% fewer steps:  ;-)
> 
> public static void main(String[] args) throws Exception {
> (new AxisServer()).deployService(MyService.class.getName());
> }
> 
> Glen
> 
> Am Freitag, den 15.06.2007, 19:43 -0400 schrieb Deepal Jayasinghe:
>> In the hackathon we came up with this very cool feature called
>> *deploying a service in two steps !!!*
>>
>>
>> Isn't that a cool to start an Axis2 server and deploy a service in only
>> two steps , yes it is cool , Try this out.
>>
>> Say you have a service class called , MyService as follows,
>>
>> public class MyService {
>>
>>public String helloWord(){
>>  return "HelloWord!!";
>>}
>> }
>>
>> Next
>>
>> public static void main(String[] args) throws Exception{
>>   AxisServer server = new AxisServer();*  // (step1)**
>>   *server.deployService(MyService.class.getName());*  //(step2)*
>> }
>>
>> Next go and browse
>> “http://localhost:6060/axis2/services/MyService/helloWord
>> ” and see what you are getting.
>>
>> 
>>HelloWord!!
>> 
>>
>> So see how simple to create and invoke a service in Axis2 
>>
>> Thanks
>> Deepal
>>
>>
>>
>> -
>> 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]
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfgHtjON2uBzUhh8RApYCAJ9WJho6gwsfRCCja+5NxuQiEz7NYgCeI9xH
NwTclXuSdn50kKrOmQ5uHmI=
=5HXT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Accessing SOAP message from MessageContexts in Handlers

2007-06-23 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This seems to be a bug for me. Can you please create a JIRA giving
enough information to re-create this problem. Also please mark the issue
as a blocker as I think this should be fixed before the next release.

Thanks,
Chinthaka

Kevin TierOne wrote:
> Hi Wayne,
> 
> We've talked about this but I thought I'd post to see if anyone else can
> give us insight.
> 
> 
> The original message context of the
> MySoapReceiverInOut.invokeBusinessLogic() code stores the incoming soap
> envelope.  If your skeleton throws an exception, AxisFault.handleFault()
> will replace the messageContext's soap envelope with
> faultContext.getEnvelope().  If there is no exception in your code, the
> setEnvelope() call is not invoked.
> 
> 
> The reason why you cannot use
> msgContext.getOperationContext().getMessageContext("In") to get the
> orignal envelope, is that the getMessage("In") refers to the original
> message context (because the hashmap stores a reference to original
> message context).  Its envelope was overwritten with the fault envelope
> during the fault handling.  Not sure why there is also a
> getMessage("Fault") that returns the same envelope.  Perhaps it's a bug
> or maybe there is a reason for this.  I don't know enough about the
> Axis2 code.
> 
> 
> Kevin
> 
> 
> 
> From: [EMAIL PROTECTED] 
> To: axis-user@ws.apache.org 
> Subject: Accessing SOAP message from MessageContexts in Handlers
> Date: Wed, 20 Jun 2007 16:09:20 -0400
> 
> 
> Using Axis2 1.2.  Is there a way to read the original SOAP message
> within a PostDispatch Handler? 
> 
> I'm invoking a custom handler in the PostDispatch phase.  The
> handler reads the uses the MessageContext to get the original soap
> request message.  Something like this:
> 
>   String
> 
> incomingMsg=msgContext.getOperationContext().getMessageContext("In").getEnvelope().toString();
>   System.out.println("Original SOAPMessage: "+incomingMsg);
> 
> This works fine in the success case.  The problem is if the Skeleton
> code throws an exception, the above code prints the "Fault" soap
> message.  For example, the following code prints exactly the same
> output:
> 
>   String
> 
> incomingMsg=3DmsgContext.getOperationContext().getMessageContext("In").getEnvelope().toString();
>   System.out.println("SOAPMessage: "+incomingMsg);=0A=
> 
>   String
> 
> faultMsg=3DmsgContext.getOperationContext().getMessageContext("Fault").getEnvelope().toString();
>   System.out.println("SOAPMessage: "+faultMsg);
> 
> Am I doing something incorrectly?  Is there another way to get the
> original SOAP message in a Handler?
> 
> Thanks,
> Wayne
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGffahjON2uBzUhh8RAmhoAJ9w2uBSnBQCvihrHLBbMwpscTbE8ACggMhn
tf3Xh5X4Uc1VnRCaN2KP79s=
=bfc1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis2 command ns2p

2007-06-23 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just had a quick glance over the supported constants inside WSDL2Code
and I couldn't find an option like that. The only way you can do that is
to pass that in the command like using -ns2p option.

Alexey Zavizionov wrote:
> In axis1 it was:
>-N, --NStoPkg =
>mapping of namespace to package
>(now: -ns2p in axis2)
>-f, --fileNStoPkg 
>file of NStoPkg mappings (default NStoPkg.properties)
>  (now: none in axis2)
> Does axis2 have set the mapping file?
> 
> Regards,
> Alexey
> 
> On 6/21/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
>> Hello
>>
>> Does axis2 have option like -ns2p with arg file, file which contains
>> ns1=pkg1,ns2=pkg2?
>> In axis1 it was NStoPkg.properties
>>
>> Thanks,
>> Alexey
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGffUrjON2uBzUhh8RAthUAKCVHmmlH0DPRdve8jEL63yPbCX3/gCgjHZ6
Q86ALh6d4U/FnTjSo/9nPRA=
=x/KO
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Simple Axis2 service in transport session scope, which method is called with each request?

2007-06-23 Thread fat suze

I'm trying to find a method that is called every time my service is
accessed.  There is init(ServiceContext) and destroy(ServiceContext) that is
called at the start of each session, but that doesn't help (at least in
transport scope - because that is called at the start/end of each session I
believe).

After hours of googling, I've found mention of two things that don't seem to
actually exist anymore (I assume they did at some point in time) -

1) init(MessageContext), which was mentioned on
http://www.developer.com/open/print.php/10930_3589126_3

and

2) public void setOperationContext(OperationContext operationContext) which
is mentioned at http://www.developer.com/java/web/article.php/3620661

Neither of these seem to work, but obviously there is some simple way to do
something before each operation I just can't find the documentation on
it!

Please help, thanks

Susie


Re: WSDL Generation location url settings

2007-06-23 Thread Konstantin Rekk
Ok,

there seems to be some wsdl caching involved, but how to force axis2 to
regenerate it on change of config settings?

Regards

-- 
Konstantin Rekk
VZG (GBV), Göttingen, Berlin
0176 2100 6000
030 29003511
skype: krekk1970 
[EMAIL PROTECTED]
http://www.gbv.de


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SOAP response

2007-06-23 Thread Demetris G


Hi all,
  
   is it possible that no one working with Axis for a while now knows 
what terminates
the SOAP message coming from the server engine ?? Anyone ? I will 
appreciate it.
Nothing shows up in the tcpmon or any other tool I used however the SAX 
parser
see the complete SOAP envelope as shown below but yet it block waiting 
for something
else. What is this extra data that it is expecting ? I am sifting 
through the Axis/SAX

classes but it takes a long time to chase this.

Thanks much

Demetris G wrote:


Jeff -- I traced the SAX and Xerces routines to find out what they are 
doing but it
gets a bit hectic to figure them out. I know the client reads back the 
headers I send
it and all of the SOAP message below (if for example I mispell the 
last tag of the SOAP
message then SAX is complaining which means it does parse it till 
them). But the parser
is stuck on SocketInputStream.read() as if it is expecting more after 
the last tag of the

SOAP message - I tried CR / LF but that does not do it.

Any suggestions ??

  ""
 "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"; "
 
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"; "
 
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";>"

 ""
 "soapenv:encodingStyle=\""
 
"http://schemas.xmlsoap.org/soap/encoding/\"; "
 
"xmlns:ns1=\"http://soapobject.bundle.org\";>"
 "soapenc:arrayType=\"xsd:long[24]\" xsi:type=\"soapenc:Array\" "
 
"xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\";>"
 "href=\"#id23\"/>"

 ""
 ""
 "soapenc:root=\"0\" "
 
"soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"; "
 "xsi:type=\"xsd:long\" 
xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\";>"

 "3"
 ""
 ""
 "";


-
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]



Re: [Axis2] Enabling MTOM globally on the server-side

2007-06-23 Thread Davanum Srinivas

Angel,

this is *not* ok. please create a JIRA and upload your service and
client. I'll take a look.

thanks,
dims

On 6/23/07, Angel Todorov <[EMAIL PROTECTED]> wrote:

Hi Thilina,

I have the following issue: When i enable MTOM globally in axis2.xml, on the
server-side, by default all my outgoing messages are sent as MIME
attachments (i.e Content-type: multipart/related) - as far as I can see in
the MTOM Guide, this is OK and a "feature". The problem is that my clients
always hang when such a message is received by the service client, and the
CPU goes to 100 %. I have traced the cause to reach the MIMEBuilder in
org.apache.axis2.builders.* , and after that it hangs. I also have to
mention that the clients don't send any MTOM optimized messages, but either
pure SOAP 1.1 (text+xml content type) , or SOAP 1.2 (application/soap+xml).

Has anyone else experienced such behaviour ? Is this normal ? Thanks.

P.S: My sources are from 30th of May's Snapshot.

Regards,
Angel




--
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WSDL Generation location url settings

2007-06-23 Thread Konstantin Rekk
Hello,

I need some configuration help for wsdl file generation in
services/myService?wsdl - how to configure the location prefix in 


http://193.174.240.209:8080/axis2/services/PIDService"/>


Axis2 is deployed in JBoss and JBoss is running at localhost (Linux,
kubuntu) but the IP
you see in location attribute is the vpn-Connection IP, what is not
intended. How it comes that this IP is used?

I tried to set:
  

http://localhost:8080/

but without effect.

Thanks! Regards!

-- 
Konstantin Rekk
VZG (GBV), Göttingen, Berlin
0176 2100 6000
030 29003511
skype: krekk1970 
[EMAIL PROTECTED]
http://www.gbv.de


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: why is GET request faster than the SOAP request?

2007-06-23 Thread Vibhor_Sharma
Hi Paul 
   Just wanted to share the performance matrix with the developer community.
 
We exposed few of our SOAP services through GET and observed a significant 
reduction in the response time around 1/3 or what we were getting through SOAP.
 
In fact this was even better than the solution build around DOT NET earlier in 
our organozation.
 
Vibhor



From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: Tue 6/19/2007 8:25 AM
To: axis-user@ws.apache.org
Subject: Re: why is GET request faster than the SOAP request?



Yes. Its simply XML parsing time. Did you notice a big difference? In
my tests I noticed that GET requests were about 25% faster than SOAP
XML POSTS.

Paul

On 6/19/07, Vibhor_Sharma <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>  I have been doing some performance benchmarking and observe that the
> SOAP requests take more time as compared to the REST based services. Any
> reason for that?
>
> Thanks
> Vibhor


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org  
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Axis2 + Weblogic 9.x + Hibernate

2007-06-23 Thread Alejandro Calbazana

Hello,

I have a service, using Hibernate 3.2, that runs under Tomcat 5.5 
without any problems.  However, when I try to deploy the same service to 
a Weblogic 9.x instance, I get the following errors:


Caused by: java.lang.LinkageError: Class org/xml/sax/EntityResolver 
violates loader constraints

   at org.dom4j.io.SAXReader.read(SAXReader.java:447)
   at 
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at 
org.hibernate.cfg.Configuration.configure(Configuration.java:1310)

...

My service uses Hibernate 3.2 with the requisite TCCL set to "composite" 
in my services.xml.  This allows my Hibernate configuration to load 
successfully under Tomcat. 

Since I am attempting to deploy to Weblogic, I have also set my 
container to prefer classes in WEB-INF by specifying the appropriate 
settings in my deployment descriptor as follows:


http://www.bea.com/ns/weblogic/90";
   xmlns:j2ee="http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://www.bea.com/ns/weblogic/90
   http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd";>

   true
 



I am not clear on how to get around this.  Has anyone else run into this 
problem?  I am pretty much at a loss here.


Thanks,

Alejandro


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SOAP response

2007-06-23 Thread Demetris G


Jeff -- I traced the SAX and Xerces routines to find out what they are 
doing but it
gets a bit hectic to figure them out. I know the client reads back the 
headers I send
it and all of the SOAP message below (if for example I mispell the last 
tag of the SOAP
message then SAX is complaining which means it does parse it till them). 
But the parser
is stuck on SocketInputStream.read() as if it is expecting more after 
the last tag of the

SOAP message - I tried CR / LF but that does not do it.

Any suggestions ??

  ""
 "xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"; "
 
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"; "
 
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";>"

 ""
 "soapenv:encodingStyle=\""
 
"http://schemas.xmlsoap.org/soap/encoding/\"; "
 
"xmlns:ns1=\"http://soapobject.bundle.org\";>"
 "soapenc:arrayType=\"xsd:long[24]\" xsi:type=\"soapenc:Array\" "
 
"xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\";>"
 "href=\"#id23\"/>"

 ""
 ""
 "soapenc:root=\"0\" "
 
"soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"; "
 "xsi:type=\"xsd:long\" 
xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\";>"

 "3"
 ""
 ""
 "";


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Enabling MTOM globally on the server-side

2007-06-23 Thread Angel Todorov

Hi Thilina,

I have the following issue: When i enable MTOM globally in axis2.xml, on the
server-side, by default all my outgoing messages are sent as MIME
attachments (i.e Content-type: multipart/related) - as far as I can see in
the MTOM Guide, this is OK and a "feature". The problem is that my clients
always hang when such a message is received by the service client, and the
CPU goes to 100 %. I have traced the cause to reach the MIMEBuilder in
org.apache.axis2.builders.* , and after that it hangs. I also have to
mention that the clients don't send any MTOM optimized messages, but either
pure SOAP 1.1 (text+xml content type) , or SOAP 1.2 (application/soap+xml).

Has anyone else experienced such behaviour ? Is this normal ? Thanks.

P.S: My sources are from 30th of May's Snapshot.

Regards,
Angel


Re: class loading problem

2007-06-23 Thread Michele Mazzucco

Joe,

it should not make any difference because the linking is made at  
runtime, and I wasn't using any of the new features.

Indeed, I think the problem is related to the Axis2 class loader.


Michele


On 23 Jun 2007, at 12:29, Joe Nathan wrote:



It does have differences between 1.6 and 1.5!
For example, 1.6 JVM contains class definitions that 1.5 does not.
The latter you have to add extra Tomcat/Axis jar files to classpath.

Regards.


Michele Mazzucco-2 wrote:


Hi all,

I've compiled a module on a machine using Java 1.6 and deployed on
another machine running Java 1.5. When I start tomcat I get a
ClassNotFoundException on the module class -- which is correctly
included and configured into the mar file.
If I compile the module with Java 1.5 it works fine.
I guess this is not a normal behavior, is it?

Michele


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: http://www.nabble.com/class-loading- 
problem-tf3965801.html#a11265430

Sent from the Axis - User mailing list archive at Nabble.com.


-
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]



Re: JMS/SOAP axis2

2007-06-23 Thread Chathura Herath

This looks familiar to some of the problems i have seen in JSON. I
assume you are using ADB for data binding,  are u?
If so could you try  -d xmlbeans and see whether it works. This may
not solve your problem completely, but it would give us an idea.
Thanks
Chathura

On 6/21/07, Kang, Kamaljeet K. <[EMAIL PROTECTED]> wrote:




Hi,

I am trying to test a webservice with JMS transport. The service works
perfectly fine with HTTP but with JMS it gives the following exception
during unmarshling. Looks like localName is incorrect. Is it a bug?


OMElelment BodyBy the StaxSOAPModelBuilder
1-Jun 15:44:40,552 DEBUG builder.StAXOMBuilder [JMSWorker-1] -
START_ELEMENT: {
mf854.v1}notify:notify
1-Jun 15:44:40,552 DEBUG builder.StAXSOAPModelBuilder [JMSWorker-1] - Build
the
OMElelment notifyBy the StaxSOAPModelBuilder
1-Jun 15:44:40,552 DEBUG engine.AxisEngine [JMSWorker-1] - [MessageContext:
log
D=urn:uuid:4153845C2D42C4D72B1182455081080] receive:null
1-Jun 15:44:40,552 DEBUG
addressing.AddressingValidationHandler [JMSWorker-1] -
invoke: IS_ADDR_INFO_ALREADY_PROCESSED=null
1-Jun 15:44:40,552 DEBUG
addressing.AddressingValidationHandler [JMSWorker-1] -
checkUsingAddressing: WSAddressingFlag=unspecified
1-Jun 15:51:30,779 DEBUG builder.StAXOMBuilder [JMSWorker-1] -
START_ELEMENT: {
mf854.v1}TopicExpression_T:TopicExpression_T (it should be
topic)
1-Jun 15:51:30,779 DEBUG builder.StAXSOAPModelBuilder [JMSWorker-1] - Build
the
OMElelment TopicExpression_TBy the StaxSOAPModelBuilder
1-Jun 15:52:48,088 ERROR jms.JMSMessageReceiver [JMSWorker-1] - JMS Worker
[JMS
orker-1] Encountered an Axis Fault : java.lang.RuntimeException: Unexpected
sub
lement TopicExpression_T; nested exception is:
   java.lang.RuntimeException: java.lang.RuntimeException: Unexpected
subel
ment TopicExpression_T
rg.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected subelement
To
icExpression_T; nested exception is:
   java.lang.RuntimeException: java.lang.RuntimeException: Unexpected
subel
ment TopicExpression_T
   at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:367)
   at
org.tmforum.tmf854.v1.ws.notif.NotificationConsumerMessageReceiverInO
ly.invokeBusinessLogic(NotificationConsumerMessageReceiverInOnly.java:55)
   at
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
nMessageReceiver.java:35)
   at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:186)
Kamal





The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs






--
Chathura Herath
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: class loading problem

2007-06-23 Thread Joe Nathan

It does have differences between 1.6 and 1.5!
For example, 1.6 JVM contains class definitions that 1.5 does not.
The latter you have to add extra Tomcat/Axis jar files to classpath.

Regards.


Michele Mazzucco-2 wrote:
> 
> Hi all,
> 
> I've compiled a module on a machine using Java 1.6 and deployed on
> another machine running Java 1.5. When I start tomcat I get a
> ClassNotFoundException on the module class -- which is correctly
> included and configured into the mar file.
> If I compile the module with Java 1.5 it works fine.
> I guess this is not a normal behavior, is it?
> 
> Michele
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/class-loading-problem-tf3965801.html#a11265430
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Duplicate Deployments

2007-06-23 Thread Holger Sattel
Hi,

I just installed axis2.war in a geronimo web-container. After starting up the 
following entries showed up in the logs:

11:19:58,611 INFO  [ModuleDeployer] Deploying module: soapmonitor
11:19:58,642 INFO  [ModuleDeployer] Deploying module: addressing
11:19:58,878 INFO  [ServiceDeployer] Deploying Web service: version.aar

Then I opened the administrator web console of Axis2. Now the following 
entries occurred in the logs:

11:20:59,082 INFO  [ModuleDeployer] Deploying module: soapmonitor
11:20:59,127 INFO  [ModuleDeployer] Deploying module: addressing
11:20:59,155 INFO  [ServiceDeployer] Deploying Web service: version.aar

This means the service archive was deployed a second time. I confirmed this 
behaviour with my own web service archive using also a ServiceLifeCycle 
object. Each deployments created its own ServiceLifeCycle object!

So my questions are: Is this behaviour correct? How can I prevent the second 
deployment?

Holger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for

2007-06-23 Thread Alexey Zavizionov

Hi,
I really haven't time in my wsrp implementation and this impossibility
for multiple porttypes blocked my project. This leads me to seek other
soap implementations... :(

Will be fix it soon?
When will be the next release?

Regards,
Alexey

On 6/22/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:

Hi,
You can use -pn, -sn options to specify the different port/service
combinations. As for the point raised by Kim, yes it is a problem
since now each port will yield a different service. Really this
becomes a issue when you have multiple bindings and multiple
porttypes.

Ajith

On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
> How can I do "generate code for each port with separate WSDL2Java
> calls" if I can't modify wsdl file, because it was given by wsrp
> specification 
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl
>  ?
>
> Regards,
> Alexey
>
>
> On 6/22/07, Sagnwoo Kim <[EMAIL PROTECTED]> wrote:
> > Ajith suggested multiple wsdl files for the solution of multiple ports. I
> > have a question for that. When you want to create client from the wsdl
> > files. with WSDL2Java and if you have multiple wsdl files for one service.
> > Then you have to create multiple clients as well for every ports? Even
> > though they are all under the same service?
> >
> > Thanks
> > Sangwoo Kim
> >
> >
> > On 6/22/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > > Hi Ajith,
> > >
> > >   Thanks for the comments. Look forward to your explanation. Like to know
> > the difference between the workaround and the expected.
> > >
> > > Thanks,
> > > -Bo
> > >
> > >
> > > On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > We will definitely look at the possibility of supporting this during
> > > > the hackathon. I will perhaps explain in a separate mail what is the
> > > > thinking behind starting from the port but it seems that we need to
> > > > rethink this when it comes to skeletons.
> > > >
> > > > What I can suggest as a workaround is to generate code for each port
> > > > with separate WSDL2Java calls (which will yield multiple skeletons).
> > > > You can make this easy if you use the ant task
> > > >
> > > > Ajith
> > > >
> > > > On 6/13/07, Bo Xie <[EMAIL PROTECTED]> wrote:
> > > > > Hi Amila and all,
> > > > >
> > > > >   In case this is not working yet, can you suggest any alternative? I
> > have a
> > > > > few services that shared a lot of common data among them. I have to
> > move all
> > > > > the methods in all services into one mega service and change method
> > name if
> > > > > necessary to avoid conflicts. Mixing methods of different purpose into
> > one
> > > > > service looks messy.
> > > > >
> > > > >Appreciate any advice.
> > > > >
> > > > > -Bo
> > > > >
> > > > >
> > > > > On 5/24/07, Jess Fisher < [EMAIL PROTECTED]> wrote:
> > > > > > I still cannot get all the portTypes generated even with Axis 1.2.
> > Any
> > > > > plans on fixing this ?
> > > > > >
> > > > > >
> > > > > > Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > Sorry to bother you again. Just want to know if this is a bug or I
> > did not
> > > > > set the parameter correctly. Any advice on how to make this work.
> > > > > >
> > > > > > Thanks,
> > > > > > -Bo
> > > > > >
> > > > > >
> > > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > I attached the wsdls from the original email.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > -Bo
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 5/20/07, Amila Suriarachchi < [EMAIL PROTECTED] >
> > wrote:
> > > > > > > > Can you send your wsdl? do you have ports for each bining?
> > > > > > > > Actually code is generated per port.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On 5/20/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > >   Just wondering if this is still an issue in Axis2 1.2 or I
> > did not
> > > > > put the parameters properly.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > -Bo
> > > > > > > > >
> > > > > > > > > On 5/17/07, Bo Xie < [EMAIL PROTECTED]> wrote:
> > > > > > > > > > Thanks, Amila. I tried your advice using no -pn and -sn. It
> > still
> > > > > only generated last one binding out of the 4. I used asix2 1.2
> > release.
> > > > > > > > > >
> > > > > > > > > > Here is the command line. Anything I did not do right?
> > Attached is
> > > > > the output files and wsdl files. Sorry for the 500k size.
> > > > > > > > > >
> > > > > > > > > > C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss
> > -sd -g
> > > > > -S src -R src -uri wsrp_service.wsdl
> > > > > > > > > > Using AXIS2_HOME:   C:\programs\axis2- 1.2
> > > > > > > > > > Using JAVA_HOME:C:\programs\jdk1.5.0_09
> > > > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > > > > 'file:/C:/programs/work/'.
> > > > > > > > > > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative
> > to
> > > > > 'file:/C:/programs/work/ws