Re: Axis2 Service stand-alone in Tomcat 5

2008-06-25 Thread Suran Jayathilaka

Hi Karl,

This article might be what you're looking for.

http://wso2.org/library/90

HTH.
Suran

Karl Heinz Marbaise wrote:

Hi there,

i have create a complete service with Axis2 1.4 and created an aar file
wich I can deploy to the stand-alone-server (axis2server.sh) and is
working well...

Now I want to move to Tomcat, but i would like to have a single WAR file
which can simply be deployed to the Tomcat without first deploying
(axis2.war etc.)...

Can someone give me a hint for this ?

Thanks in advance...

Kind regards
Karl Heinz Marbaise
  



--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



AMQP over the JMS transport with Qpid

2008-06-09 Thread Suran Jayathilaka

Hi,

I have written a tutorial describing the configuration options necessary 
to get a service deployed on Axis2 to be invoked via AMQP using the 
Axis2 or Synapse JMS transport, and an Apache Qpid/Java broker as the 
JMS broker.

This is readable at http://wso2.org/library/3663.
Granted, the sample described there is extremely simple, but should 
serve as a basis for getting a request/response scenario over AMQP 
working with Axis2.


Thanks.

--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: How to Debug Axis2 Engine

2008-06-06 Thread Suran Jayathilaka

Hi,

If you're running the Axis2 standalone server (i.e. by invoking the 
AXIS2_HOME/bin/axis2server.sh) you can do this to debug axis2 code.

Edit the axis2server.sh file as follows.

Before the "java" invocation, declare an environment variable

export JAVA_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"


Now insert $JAVA_OPTS to the execution line, as follows.

java $JAVA_OPTS -classpath "$AXIS2_CLASSPATH" 
org.apache.axis2.transport.SimpleAxis2Server \

-repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*

Now, when you invoke this script, execution will pause, listening at 
port 8000.


"Listening for transport dt_socket at address: 8000"

Set your IDE to remote debug at 8000. You can of course change the debug 
port number to a preferred one.


The *JMSMessageReceiver.java class in the axis2-kernel module and hence 
in the axis2-kernel-1.4.jar file.


HTH.
Suran
*

adisesha wrote:


Hi,

 

How can I debug 
axis2-1.4\modules\kernel\src\org\apache\axis2\transport\jms\*JMSMessageReceiver.java 
*(axis2 engine)?


 

http://wso2.org/library/225 will helps us to debug web service & not 
axis2 code. And which jar file has this class? I feel this is part of 
module which cant be debugged?


 


Thanks in advance

 


Disclaimer

The information contained in this communication is intended solely for 
the use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking 
any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you have received this 
communication in error, please notify us immediately by forwarding 
this email to [EMAIL PROTECTED] and then delete it from your system. 
Ness technologies is neither liable for the proper and complete 
transmission of the information contained in this communication nor 
for any delay in its receipt.





--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: Tomcat issue with AXIS web service

2008-05-22 Thread Suran Jayathilaka
Chain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)

at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:595)


Meet people who discuss and share your passions. Join them now. 
<http://in.rd.yahoo.com/tagline_groups_7/*http://in.promos.yahoo.com/groups/bestofyahoo/> 




--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: Axis2 sources in Eclipse

2008-05-15 Thread Suran Jayathilaka
Try doing a full build (mvn clean install) and then do mvn 
eclipse:eclipse again.
That might resolve the missing library errors. You did an import from 
within eclipse to load the axis2 project right?


Suran

Krystian Szczesny wrote:


Hi,

Anyone knows how to load axis2 sources to Eclipse properly?

I’ve done like it’s written on the webpage – mvn eclipse:eclipse and 
set classpath variable.


But when I load the projects I get lots of errors like:

Project X is missing required source folders [that’s not a problem, I 
can create them]


Project X is missing required Java project: ‘axis2’ [what??]

Project 'Axis2-CodegenWizard' is missing required library: 
'lib/[EMAIL PROTECTED]@.jar' [how to fix that??]


Unbound classpath variable: 
'M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar' in project 'axis2-corba' 
[file does exist in that location]


Some help would be appreciated,

--

Krystian Szczesny

This e-mail and any attachments are confidential and may also be legally
privileged and/or copyright material of Intec Telecom Systems PLC (or its
affiliated companies). If you are not an intended or authorised recipient
of this e-mail or have received it in error, please delete it immediately
and notify the sender by e-mail. In such a case, reading, reproducing,
printing or further dissemination of this e-mail or its contents is 
strictly

prohibited and may be unlawful.
Intec Telecom Systems PLC does not represent or warrant that an 
attachment

hereto is free from computer viruses or other defects. The opinions
expressed in this e-mail and any attachments may be those of the 
author and

are not necessarily those of Intec Telecom Systems PLC.



--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: developing Web Services using axis2.0

2008-05-13 Thread Suran Jayathilaka

The following resources might provide you with some of the answers you seek.

Developing Web Services Using Apache Axis2 Eclipse Plugins - 
http://wso2.org/library/1719


Expose Your POJO-Based Domain Apps as Web Services - 
http://wso2.org/library/941


HTH.
Suran

Ashish Kulkarni wrote:

Hi
What is the best way to develop web serivce using axis2.0,
do i use command line to convert existing java source to web service, 
or should i use eclipse plugin to do so,

what is the best way, what do normally people do.

I tried to convert one java source using eclipse plugin, it is giving 
errors in WSDL when i run the application



Ashish



--
U. Suran Jayathilaka
WSO2, Inc. - http://www.wso2.com

http://suranjay.blogspot.com


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



Re: java2wsdl questions

2008-04-06 Thread Suran Jayathilaka

Hi Dan,

The inclusion of super-class methods is currently unavailable in Axis2 
java2wsdl.

This capability is in the works.

Suran.

Dan Armbrust wrote:

I'm trying to migrate some code from Axis (1.2.1, I think) to Axis2 1.3.

I can't seem to figure  out how to make the java2wsdl tool in Axis2
properly generate method signatures for a superclass.

The old java2wsdl tool automatically included methods from the super
class in the generated wsdl.

What am I missing?

Is there more doc somewhere on the java2wsdl tool - other than:
http://ws.apache.org/axis2/1_3/reference.html ?

Thanks,

Dan

-
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: module containing libs

2008-03-23 Thread Suran Jayathilaka

Enric Jaen wrote:

Is it possible to have modules containing libs? If so,  where should I put the 
jars? Maybe inside META-INF/lib? I have not found this in the documentation.
Cheers,
/Enric



  __ 
Enviado desde Correo Yahoo! 
Más formas de estar en contacto. http://es.docs.yahoo.com/mail/overview/index.html



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


  

Hi Enric,

This is indeed possible. You should put the .jar files in a folder named 
"lib" at the root level of the module archive, i.e. at the same level as 
META-INF/.

e.g.

META-INF/
   - module.xml
lib/
   - foo.jar
   - bar.jar
com/
   - sample/
 - MyModuleClass.class


HTH.
Suran.

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



Re: "Mustunderstand" How to handle it

2008-03-12 Thread Suran Jayathilaka

Appasamy Thirugnana wrote:

Hi ,
 
 Anyone please help me out in how to handle SOAP Header and

where to handle the header if i set "Mustunderstand=1" in my SOAP header
before sending a request.

  whether i need to set its "isProcessed" to true in server side
or both server and client side . Any tutorial regarding this also will
help
 
 
Thanks

Appu
 


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


  

Hi Appasamy,

I believe the following mail thread addresses the same problem.

http://marc.info/?l=axis-user&m=119254285330924&w=2

HTH.

Suran

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



Re: Call to axis service over the Internet

2008-03-11 Thread Suran Jayathilaka

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Samir Basic wrote:
| Dear people at Apache.org,
|   
|   I have just started studying the web services using Axis and, to be

| honest, am struggling with the subject. SOAP, WSDL, UDDI etc. where
| does it all end?!
|   
|   So, I have created and run the services and client code listed under

| Code Listing 8, 9 and 10 (see here
| http://ws.apache.org/axis2/1_3/userguide-buildingservices.html) on my
| PC. I now need to understand if I can run these over the Internet as 
they are and without using WSDL and UDDI. Basically, I will know where 
the service is running before I call it

| from the client.
Hi,

The example you have followed used the code-first approach, where you 
create the web service as a plain old java class. You actually don't 
need to worry about WSDL here. Axis2 will generate the WSDL for your 
service automatically, which you can view at

host:port/axis2/services/serviceName?wsdl
|   
|   Is it just the question of replacing 'localhost:8080' with an IP

| address:port or is there more to it?

It is, in fact, just a case of replacing localhost:8080 with the 
external IP of the machine and port you are using in order to access 
your service over the internet, or a LAN.
|   
|   Thank you,

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

iD8DBQFH1mh1Xkt94l6LfXURAsW6AKCDfoiBIppp9LsH5QhECE05phEZEQCg3uIV
79H8DsgO+KWmvdxpj+vfSmQ=
=stfm
-END PGP SIGNATURE-


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



Re: Size of Message

2008-02-06 Thread Suran Jayathilaka
h b wrote:
> Hello, Is there a way I can measure the size of the message that gets
> on the wire?  I want to figure out how much pressure I'm gonna be
> putting on the network.
>  
> Thanks
Try using tcpmon. It gives you the content length of the message.

Suran.

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



Re: Using Spring and Hibernate with Axis2

2007-11-29 Thread Suran Jayathilaka
Andrew McGhee wrote:
> Hi all,
>  
> I am writing a web service using Axis2 1.1 and have successfully
> integrated Spring within the AAR. I am also using Hibernate, but at the
> moment can't get it to work inside the AAR - I have to explode the AAR.
>  
> I have had a look at http://ws.apache.org/axis2/1_1_1/spring.html#263
> and have tried using 'classpath*:**/my.hbm.xml' and am getting
> NoClassDefFoundError.
>  
> Having a look around this place, it seems that having Hibernate work
> with Spring in an AAR is possible. Has anyone actually achieved this?
> Are there any additional pointers/tips/tricks anyone could give to
> assist?
>  
> Thanks in advance,
> Andrew
>
> *
>
> This email, including any attachments sent with it, is
>
> confidential and for the sole use of the intended recipient(s).
>
> This confidentiality is not waived or lost, if you receive it and
>
> you are not the intended recipient(s), or if it is transmitted/
>
> received in error.
>
>  
>
> Any unauthorised use, alteration, disclosure, distribution or
>
> review of this email is strictly prohibited. The information
>
> contained in this email, including any attachment sent with
>
> it, may be subject to a statutory duty of confidentiality if it
>
> relates to health service matters.
>
>  
>
> If you are not the intended recipient(s), or if you have
>
> received this email in error, you are asked to immediately
>
> notify the sender by telephone collect on Australia
>
> +61 1800 198 175 or by return email. You should also
>
> delete this email, and any copies, from your computer
>
> system network and destroy any hard copies produced.
>
>  
>
> If not an intended recipient of this email, you must not copy,
>
> distribute or take any action(s) that relies on it; any form of
>
> disclosure, modification, distribution and/or publication of this
>
> email is also prohibited.
>
>  
>
> Although Queensland Health takes all reasonable steps to
>
> ensure this email does not contain malicious software,
>
> Queensland Health does not accept responsibility for the
>
> consequences if any person's computer inadvertently suffers
>
> any disruption to services, loss of information, harm or is
>
> infected with a virus, other malicious computer programme or
>
> code that may occur as a consequence of receiving this
>
> email.
>
>  
>
> Unless stated otherwise, this email represents only the views
>
> of the sender and not the views of the Queensland Government.
>
> 
>
>  
>
Hi Andrew,

You should switch to the latest stable release of Axis2, i.e. Axis2-1.3
, since it contains many bug fixes and improvements over Axis2-1.1.

Cheers.
Suran

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



Re: Problems while starting the Tools under axis2-1.3\bin

2007-11-29 Thread Suran Jayathilaka
Hi Markus,

Markus Unger (RDG) wrote:
> Hello,
>
> I tryed to work with axis2 and the getting startet guide. But I get
> errors while starting the tools under %AXIS_PATH%\bin. No
> ClassDefFound... and that with alle *.bat file in the directory. I
> tryed the version 1.3 and 1.2 the same errors:
>
> 
>
> C:\Dokumente und
> Einstellungen\ungerk>C:\Downloads\axis2-1.3\bin\axis2server.bat
> Using JAVA_HOMEC:\Programme\Java\jdk1.5.0_14
> Using AXIS2_HOME   C:\Downloads\axis2-1.3
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis2/transport/SimpleAxis2Server
> C:\Dokumente und Einstellungen\ungerk>echo %CLASSPATH%
> .;C:\Programme\Java\jre1.5.0_13\lib\ext\QTJava.zip
>
> C:\Dokumente und Einstellungen\ungerk>set
> CLASSPATH=%CLASSPATH%;C:\Downloads\axis2-1.3\lib\
>
> C:\Dokumente und
> Einstellungen\ungerk>C:\Downloads\axis2-1.3\bin\axis2server.bat
> Using JAVA_HOMEC:\Programme\Java\jdk1.5.0_14
> Using AXIS2_HOME   C:\Downloads\axis2-1.3
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis2/transport/SimpleAxis2Server
> C:\Dokumente und Einstellungen\ungerk>echo %CLASSPATH%
> .;C:\Programme\Java\jre1.5.0_13\lib\ext\QTJava.zip;C:\Downloads\axis2-1.3\lib\
>
>
> 
>
> I think the AXIS2_HOME is set correct and the JAVA_HOME too.. First I
> tryed to start without the AXIS_HOME\lib and then with.. but it didn't
> work...
Since the files in the AXIS2_HOME\lib folder are .jar files, if you were
to do it manually, you would need to add each .jar to the classpath, and
not just the lib folder. But the .bat script is supposed to take care of
this.
> I must only download the "Standard Distrubtion" and extract it on the
> filesystem.. set the AXIS2_HOME and it must work right?
Yes that is correct. Actually, you shouldn't even need to set
AXIS2_HOME. Setting JAVA_HOME should suffice.
>
> btw.. The Webapplication starts without no problem, I can develop my
> own services and invoke the datas by my own client.
>
> Anybody a idea why this tools not work?
>
> Thanks for Help
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
This is a case of the AXIS2_CLASSPATH not getting set correctly IMO.
Try this. Open up the .bat script in notepad and comment out the topmost
line (@echo off) by putting a 'rem' in front of it. Then run it again
and see if the AXIS2_CLASS_PATH variable gets created properly. i.e. all
the .jars in the lib folder should get appended to it sequentially. If
not, please check where it's breaking down.

Hope this helps.

Suran

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



Re: [Axis2] Architecture: Asynchronous Web services with Axis1 and Axis2 -

2007-11-07 Thread Suran Jayathilaka

william wallace wrote:

Hi,

So far, we have used Axis1 to create a number of Web services in my 
project. We see it works well with the request-response message 
pattern. Only one issue is that we could not have Asynchronous Web 
services. Instead, we have had to use Socket programming for those 
asynchronous in nature. (the client maintains a server Socket, after 
responding, the Web service has to initialize a client socket 
connecting to the client side program,...). The key shortcoming of 
this approach is that the socket connection must be maintained for a 
time even no data transfer in the case of event notification (the Web 
service informs back to the client side about an event happened).


Now I just switch to Axis2 and find that it supports the Non-blocking 
invocation and I can use it for those Asynchronous Web services. The 
first thing I notice is, in Axis2, there is no difference in client 
(consumer) and Web service side.


I would like to know how the Call Back mechanism has been implemented.

- if HTTP is the transport, is there an http server in the client side 
opening to wait for the call-back message from Web service ? if not, 
what is really happening ?


- if TCP is the transport, can I say that a server Socket is opened in 
the client side ? any long-running  connection between the client and 
Web services ?



Anyone has knowledge in this issue, please advise me. I do appreciate it.

Thanks in advance

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Hi William,

I believe this podcast/article should tell you a bit about asynchronous 
web services invocations in Axis2.


http://wso2.org/library/2774

Cheers!
Suran

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



Re: [Axis2]Maven2 plugins for WSDL2Code Generation

2007-11-07 Thread Suran Jayathilaka

David Wilkinson wrote:

Hi

I am starting a new project and have started to put a POM file together for
an axis web service, and I'm looking for a plugin to generate my code. I
have spotted the one under the tools section of the web site but when I
tryed to down load the plugin from the site all the links are broken and
there are no maven 2 repositories that have version 1.3. The only version I
have found so far is version 1.1 which also seams to suffer from dependency
issues.

Has anyone got this working or is there any other maven 2 plugin about that
I can use. Any help would be grateful

Regards

DRAW


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


  

Greetings!

You can get the maven2 wsdl2java plugin in this way, until the download 
links are fixed.
Checkout the axis2 source from the links at 
http://ws.apache.org/axis2/svn.html

Go to the /modules/tool/axis2-wsdl2code-maven-plugin folder.
And build the plugin using "mvn clean install".

Cheers!
Suran

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



Re: AxisCallback vs. the deprecated Callback

2007-10-07 Thread Suran Jayathilaka

Huitang Li wrote:

Hi,

I created a web service client following Async/One Channel model using 
axis2-generated stub. In the stub code, AxisCallback interface is used.


For almost all tests, no soap message response is received before the 
client is finished. This is verified with the help of the excellent 
tool tcpmon.


In AxisCallback, I did not see something like isComplete() to test 
whether a whole message is retrieved or not. So I had to replace the 
AxisCallback with the depreciated Callback, and then put the following 
code in the stub.


while (!callback.isComplete()) {
   Thread.sleep(1000);
}

Does anyone have a better solution without having to use the 
deprecated API?


Thanks.






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



Hi!
Please refer to this thread.
http://www.mail-archive.com/axis-user@ws.apache.org/msg31442.html

Cheers.
Suran

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



Re: questions regarding axis2 war

2007-10-07 Thread Suran Jayathilaka

ianwong wrote:

I doployed axis2 war into my applicaiton, and visited Service EPR address and
Service REST epr address. Both address got error message  as following:

I can not find a service for this request to be serviced. Check the WSDL and
the request URI

but the wsdl is work well, http://localhost/axis2/services/Version?wsdl

I want to know how to fix this, thanks!!


  

Hi,

Can you provide more details as to which server you deployed the axis2 
war into, as well as the addresses you tried for the eprs?


Suran.

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



Re: Library not found

2007-10-07 Thread Suran Jayathilaka

Fátima Milla Olaya wrote:
I have changed build.xml for compiling the skeleton.java but when I 
run the client of the web service I got an axis fault of the library 
open source so I included all the jars of the library in the folder 
lib of axis2 then it runs well, but I don't think that it's rigorous 
doing this like that. Is there another way of including the library in 
axis2 without recopy all the jars of the external library in the 
folder lib? Thanks


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



Hi Fatima,

What you can do is include the external libraries in a folder named lib 
inside the service folder itself. The lib folder should be at the same 
level as the META-INF folder of the service. then the libraries will be 
available for the service without your having to put them inside the 
axis2/lib folder.


Please refer to http://ws.apache.org/axis2/1_3/quickstartguide.html

Cheers.
Suran



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



Re: Library not found

2007-10-05 Thread Suran Jayathilaka

Fátima Milla Olaya wrote:

This is the class:

public class FilexmltransferSkeleton {
   /**
* Auto generated method signature
* @param filename
*/
   public com.evidian.www.filexmltransfer_xsd1.Filexml transfer(
   com.evidian.www.filexmltransfer_xsd1.Filename filename) {
   String fileName=filename.getFilename();
   OMElement omElem=null;
   try{
   org.opensaml.DefaultBootstrap.bootstrap();
 // Get the builder factory
   XMLObjectBuilderFactory builderFactory = 
Configuration.getBuilderFactory();


   // Get the assertion builder based on the assertion element 
name
   SAMLObjectBuilder builder = 
(SAMLObjectBuilder)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME)); 



   // Create the assertion
   Assertion assertion = builder.buildObject();
   // Get the marshaller factory
   MarshallerFactory marshallerFactory = 
Configuration.getMarshallerFactory();


   // Get the Assertion marshaller
   Marshaller marshaller = 
marshallerFactory.getMarshaller(assertion);


   // Marshall the Assertion
   Element assertionElement = marshaller.marshall(assertion);
 XMLStreamReader 
parser=XMLInputFactory.newInstance().createXMLStreamReader(new 
DOMSource(assertionElement));

 //Create the new builder
   StAXOMBuilder doomBuilder = new StAXOMBuilder(parser);
   //Get the document element
   omElem = doomBuilder.getDocumentElement();
   }catch (Exception e){
   System.out.println("StaXOMBuilder");
   }
   Filexml fileXml=new Filexml();
   fileXml.setFilexml(omElem);
   return fileXml;
   }
}

And this the errors:
Buildfile: C:\Documents and 
Settings\Benoit\workspace-wtp2\filexmltransfer\build.xml

init:
pre.compile.test:
[echo] Stax Availability= true
[echo] Axis2 Availability= true
compile.src:
   [javac] Compiling 1 source file to C:\Documents and 
Settings\Benoit\workspace-wtp2\filexmltransfer\build\classes
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:12: 
package org.opensaml.common does not exist

   [javac] import org.opensaml.common.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:13: 
package org.opensaml.saml2.core does not exist

   [javac] import org.opensaml.saml2.core.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:14: 
package org.opensaml.saml2.core.impl does not exist

   [javac] import org.opensaml.saml2.core.impl.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:15: 
package org.opensaml.xml does not exist

   [javac] import org.opensaml.xml.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:16: 
package org.opensaml.xml.io does not exist

   [javac] import org.opensaml.xml.io.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:17: 
package org.opensaml.xml.util does not exist

   [javac] import org.opensaml.xml.util.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:25: 
package org.joda.time does not exist

   [javac] import org.joda.time.*;
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:40: 
package org.opensaml does not exist

   [javac] org.opensaml.DefaultBootstrap.bootstrap();
   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:43: 
cannot find symbol

   [javac] symbol  : class XMLObjectBuilderFactory
   [javac] location: class 
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
   [javac] XMLObjectBuilderFactory builderFactory = 
Configuration.getBuilderFactory();

   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:43: 
cannot find symbol

   [javac] symbol  : variable Configuration
   [javac] location: class 
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
   [javac] XMLObjectBuilderFactory builderFactory = 
Configuration.getBuilderFactory();

   [javac] ^
   [javac] C:/Documents and 
Settings/Benoit/workspace-wtp2/fil

Re: Library not found

2007-10-05 Thread Suran Jayathilaka

Fátima Milla Olaya wrote:
Hi, I'm creating a web services with axis2 and I use a library 
opensource. I use Eclipse and it compiles well (the library is 
correctly in the build path) but when I run the jar.server in ant it 
doesn't compile. It can't find the package. It says package does not 
exit. Thanks


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



Hi Fatima,

Can you please provide more details? Are you trying out a sample?
What is the package it cannot find?

Cheers.
Suran

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



Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:

Hi!
 
Thank you very much for your help, Suran and Lahiru.
 
>First of all, I see that your class uses generics. Please note that 
Axis2 only supports simple-types, arrays and beans. Since Axis2 is 
JDK1.4 compliant, generics are not >supported.

>So what you can do is replace your genericised List arguments with arrays.
>e.g.: replace List with Class32[].
 
 
I think I am more confused than I thought :-(. Because of your 
explanation I deduce that I should use another web service framework, 
maybe Apache Tuscany. Is this right?
 
>Your service folder structure looks ok to me. When the eclipse plugin 
has created the .aar file, check whether it contains the intended 
structure.
>(rename the .aar file to .zip and you'll be able to deal with it using 
any zip tool, or extract the .aar file somewhere and take a look at 
the extracted structure, or do  "jar tvf" on the archive).
 
Regarding the generation of .aar files. I checked the structure 
generated before and I thought that it was wrong, because where is the 
"MyService.class"??. The generated structure is:

-MyService.aar
-configuration
- . 
-lib (the libraries that I described in my latter mail)

-META-INF
-MANIFEST.MF
-services.xml (the same xml that I described in my latter mail)
 -plugins
   
Thanks,
 
Ana.
 


Hi Ana,
Obviously, as members of the Axis2 dev community, we wouldn't be 
suggesting that you move to another framework, although that is up to 
you. :-)


Might I ask what you rconfusion is in regards to our suggestions? In 
removing generics?


Also, you can try creating the service archive manually, using the java 
jar tool. Again, you are welcome to ask for any help in solving any 
problems that may arise.


Cheers.
Suran




Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:
 
Hello Suran, 


My service makes use of several packages and classes and interfaces. It has
a complex structure. So, I have created the following folder structure:

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\axis2\WEB-INF\services\
- MyService
-eu
- myproject
- serviceone
-myservice
-MyService.class
-MyService.java
-Otherclass.class [other
object which MyService needs]
-Otherclass.java
-folder1[other folders with the code
of the rest of classes and interfaces ]
-Class11.class
-Class11.java
-Class12.class
-Class12.java
-folder2
-Class21.class
-Class21.java
- ...
- ...   
		-lib [libs used by my application] 
			-commons-codec-1.3.jar

-commons-httpclient-3.0.1.jar
-commons-logging-api-1.1.jar
-dom4j-1.6.1.jar
-jaxen-1.1-beta-5.jar
- ...
-META-INF
-services.xml
-[several .xml files needed by my service]

Note that the "eu" folder is a full copy of the "src" folder created in my
workspace. 


My "MyService.java" is:

package eu.myproject.serviceone.myservice;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Node;

import eu.myproject.serviceone.exceptions.AGSCException;
import eu.myproject.serviceone.exceptions.AGSException;
import eu.myproject.serviceone.exceptions.AGSNFException;
import eu.myproject.serviceone.folder1.Class11;
import eu.myproject.serviceone.folder2.Class21;
import eu.myproject.serviceone.folder3.Class31;
import eu.myproject.serviceone.folder3.Class32;

public class MyService implements Class32{

public List getAllClassObj(List constraintsList)
throws AGSNFException {
List ClassObjList = new ArrayList();
//code..
return ClassObjList ;
}


//
--  

public Class21 getClassObj(String id) throws AGSNFException{
//Class21 is an interface and Class21 is the object which
implements the interface
Class21Object classobj = null;
//code...
return classobj;
}

//
--

private boolean method1(List constraints){
// code...
return true;
}
//
--
private String method2(List constraints){
String Xpath = "";
//code...
return Xpath;   
}

//
--

private String method3(Integer id){
String path = "";
//code...
return path;
}

}

Please, note that this class implements an interface (called Class32..) and
my service offers only two available operations.

I hope you understand the aforementioned complex structure and code. I
haven't copy the full class code because it is very long!


Finally, my "services.xml" file is:



   MyService


mep="http://www.w3.org/2004/08/wsdl/in-only";

class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>


eu.myproject.serviceone.myservice.MyService



 
Regarding the .aar file...I work with Eclipse and I have installed a plugin

to generate .aar files ("Axis Service Archiver 1.0.0"). I have added the
plugin "Axis2 Coden Wizard 1.2.0" too. Using the first tool Eclipse
generates an .aar file, but it doesn't work when I upload the service. I
could explain step to step what I do for that.

Thank you very much for your interest in it and I hope you can help me
beca

Re: Problem building available services

2007-10-02 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:

Hi again!

I am trying now building my actual service but I receive this error message:


Error: java.lang.NoClassDefFoundError: org/dom4j/DocumentException at
java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown
Source) at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchema
Generator.java:115) at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:340) at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.ja
va:347) at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(
ArchiveReader.java:95) at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou
p(ArchiveReader.java:172) at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy
mentFileData.java:137) at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:
571) at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav
a:141) at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav
a:318) at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe
ner.java:220) at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.j
ava:118) at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAx
isConfigurator.java:272) at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:78) at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.ja
va:500) at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
39) at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3956) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60) at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:448) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at
org.apache.catalina.startup.Catalina.start(Catalina.java:552) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

I understand the class org/dom4j/DocumentException is not found. How can I
get that it be found? 


I suppose that generating a .aar file it should be inclosed, but I don't
know how I have to make that.

Best regards and thank you for your appreciated help.

Ana Belén
  
 






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


  

Hullo Ana,

Can you attach your service class code, and describe any other resources 
you are using? That may help in figuring out what's wrong.


And did you mean that you don't know how to make an .aar file or that 
you don't know how to include your dependancy jars with your service?


Cheers.
Suran





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



Re: *SPAM*: 04.70/4.0 - Re: Problem building available services

2007-10-02 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:
Hi, 


Thank you for your fast answer, Suran. I am using Apache Tomcat 5.5 and
Axis2 1.3 war, too. 
Could you please say me the procedure followed for you step to step? I don't

know what I have forgotten.

Thank you!

Ana Belén

-Mensaje original-
De: Suran Jayathilaka [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 02 de octubre de 2007 10:57

Para: axis-user@ws.apache.org
Asunto: *SPAM*: 04.70/4.0 - Re: Problem building available services

Ana Belén Antón Gironés wrote:
  

Hi Ana,
Glad to be of assistance.
I'm gonna go thru each step since you have requested so.
I used the non-installer zip version of tomcat. But IMO that shouldn't 
make a difference.


I extracted tomcat to my drive.
downloaded axis2-1.3.war and extracted it. Then copied the axis2.war 
file to TOMCAT_HOME\webapps


Then I started tomcat so that the axis2.war will get exploded.
Then stopped tomcat.

In my IDE, i created ur package structure, created a class named Sum, 
and copied your java code as it was. Compiled it.
Created a folder named META-INF. in it, put a services.xml file with 
your services.xml content exactly.

Put both META-INF, and the org folder in to a folder called Sum.
copied the Sum folder to TOMCAT_HOME\webapps\axis2\WEB-INF\services folder.
Started tomcat again.
When I accessed localhost:8080/axis2, the Sum service was listed.

My folder structure is identical to yours.

Sum
   - META-INF
 - services.xml
   - org
 - ana
- web
   - services
  - Sum.class


Hope it helped.
Suran




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



Re: Problem building available services

2007-10-02 Thread Suran Jayathilaka

Ana Belén Antón Gironés wrote:

Good morning,
 
I am new in axis and I am a bit lost. Sorry. I would like to get your 
help, please.
 
I would like make some as easy as build a service from a Java Object. 
I have followed the user guide in the apache org web page but the 
service is remarked as "Faulty services" and I have got this error 
message:
 
Error: org.apache.axis2.deployment.DeploymentException: Invalid 
service. META-INF directory not found. at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:274) 
at 
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:64) 
at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137) 
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571) 
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141) 
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318) 
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220) 
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:312) 
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64) 
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71) 
at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83) 
at java.util.TimerThread.mainLoop(Unknown Source) at 
java.util.TimerThread.run(Unknown Source) Caused by: 
org.apache.axis2.deployment.DeploymentException: Invalid service. 
META-INF directory not found. at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:262) 
... 12 more
 
 
For that, I have created this "services.xml":
 



  Suma


http://www.w3.org/2004/08/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>


org.ana.web.services.Sum

 
 
and this directory structure (in C:\Program Files\Apache Software 
Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services)

 - Sum
   - META-INF
 - services.xml
   - org
 - ana
   - web
 - services
   - Sum.class 
   -Sum.java

My Sum.java is as simple as:

*package* org.ana.web.services;

*public* *class* Sum {

*public* String getSum (*int* a, *int* b){

Integer c = a+b;

*return* ("The operation is: "+a+" + "+b+" = "+c);

}

}

Thank you very much in advance and best regards,
 
Ana Belen.

Hi Ana,

I tried your exact code and directory structure on WindowsXP, Apache 
Tomcat 5.5.20, using the Axis2 1.3 war. And it worked without a problem.


Can you please tell us which version of Axis2 you are using? If you are 
using an older version, I suggest you download the Axis2 1.3 release and 
try.


You can also try creating a service archive with an .aar extension using 
the Java jar tool, and deploying that instead of the exploded directory 
structure.


Best of luck!
Suran.


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