[Axis2] Eclipse project setup

2006-03-18 Thread Dennis Sosnoski
I've been trying to setup an Eclipse project for Axis2. I defined a 
MAVEN_REPO variable for the maven repository, and have included a 
multitude of jars in the attempt to get everything to build properly:


   path="MAVEN_REPO/stax/jars/stax-api-1.0.jar"/>
   path="MAVEN_REPO/commons-logging/jars/commons-logging-1.0.4.jar"/>
   path="MAVEN_REPO/geronimo-spec/jars/geronimo-spec-activation-1.0.2-rc4.jar"/>
   path="MAVEN_REPO/geronimo-spec/jars/geronimo-spec-javamail-1.3.1-rc5.jar"/>
   path="MAVEN_REPO/geronimo-spec/jars/geronimo-spec-servlet-2.4-rc4.jar"/>
   path="MAVEN_REPO/jaxen/jars/jaxen-1.0-FCS-full.jar"/>
   path="MAVEN_REPO/saxpath/jars/saxpath-1.0-FCS.jar"/>
   path="MAVEN_REPO/annogen/jars/annogen-0.1.0.jar"/>
   path="MAVEN_REPO/ws-commons/jars/XmlSchema-1.0-SNAPSHOT.jar"/>
   path="MAVEN_REPO/ws-commons/jars/policy-1.0-SNAPSHOT.jar"/>
   path="MAVEN_REPO/wsdl4j/jars/wsdl4j-1.4.jar"/>
   path="MAVEN_REPO/jaxme/jars/jaxmejs-0.5.1.jar"/>
   path="MAVEN_REPO/jaxme/jars/jaxmexs-0.5.1.jar"/>
   path="MAVEN_REPO/jaxme/jars/jaxme2-0.5.1.jar"/>
   path="MAVEN_REPO/xmlbeans/jars/xbean-2.1.0.jar"/>


I can't seem to find the javax.wsdl.extensions.schema.Schema class 
referenced from org.apache.axis2.deployment.AxisServiceBuilder, though. 
Anyone have any idea where this is coming from?


Maven seems designed to make dependencies as obscure and difficult to 
figure out as possible. I don't suppose anyone knows of a tool for 
converting mavenized projects to Eclipse?


 - Dennis


Re: [axis2] failure when trying to build axis2

2006-03-18 Thread Dennis Sosnoski
I don't normally use -o, but tried building Axiom and dropping it in the 
Maven repository, then did "maven clean" and "maven -o". I still get 
failures in "Apache Axis 2.0 - Integration", though. The same failures 
occur when I try building with Java 5. Anyone have any idea why "Apache 
Axis 2.0 - Integration" tests would fail consistently?


 - Dennis

Ajith Ranabahu wrote:


Hi all,
There was an Axiom change that broke the build for a while and now it
is fixed. I guess the Axiom jar should be upated by now. But if you
are in the habit of running the build with -o (offline) which makes
things faster, then you may still be having the older jar in your
maven  repository which could be the problem.
The safest thing you can do is to build Axiom by yourself and put the
jar inside the repo.

HTH

Ajith

On 3/19/06, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:
 


I've also been getting repeated and consistent test failures over the
last week, despite updating to the latest SVN code every day. The first
error is with org.apache.axis2.engine.CallUnregisteredServiceTest, and
pretty much everything from that point on has errors. I'm running on
Linux, using JDK 1.4.2 from Sun. I do a "maven clean" first, then
"maven", and have MAVEN_OPTS=-Dversion_affix=dev

 - Dennis

Sean Doyle (Gmail) wrote:

   


Loreno Oliveira wrote:

 


I got also problems with some tests, just like Sean and Bruno.
My problem was fixed when I turned off the Norton Worm Protection...
   


No such luck here - I've turned off my Trend Micro, ran svn update,
and still see errors.

After

 


  [junit] [ERROR] TEST org.apache.axis2.rpc.RPCCallTest FAILED
  [junit] Running org.apache.axis2.security.AddressingMTOMSecurityTest
   


you see

 


BUILD FAILED
File.. C:\Documents and
Settings\sean\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly
Element... maven:reactor
Line.. 217
Column 9
Unable to obtain goal [multiproject:install-callback] -- C:\Documents
and Settings\sean\.maven\cache\maven-test-plugin-1
.6.2\plugin.jelly:181:54:  There were test failures.
Total time: 20 minutes 39 seconds
Finished at: Fri Mar 17 15:25:25 EST 2006
   


This was in response to a 'maven release'.


 


Now I'm building and testing axis2 fine...

Loreno

On 3/16/06, *Eran Chinthaka* <[EMAIL PROTECTED]
> wrote:

   Hi Sean and Bruno,

   We experience a build failure in Axis2 main branch now. Please
give us
   time till tomoro for us to fix it.

   Thanks,
   Chinthaka

   Sean Doyle (Gmail) wrote:
   > bruno wanadoo wrote:
   >
   >> Hi Chinthaka & everybody else
   >>
   >> I followed instructions in the FAQ ( with jdk1.5 I modify the
   >> security file to add BC as provider)
   >> But when I launch maven , a lot of targets are built but at the
   end I
   >> got this
   >>
   > I'm getting the same
   >Unable to obtain goal [multiproject:install-callback] --
   > C:\Documents and
   >

Settings\bruno\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54:

   > I've also put in the same attribute for BC. And svn is current
   as of a
   > few minutes ago.
   >
   > Here's what works and doesn't work - I'm a bit confused by the
   site's
   > documentation since it has two different calls to maven
   specified for
   > building the project. One fails with the plugin.jelly message, the
   > other works but doesn't make the war file.
   >
   > I'm running this in WindowsXP. My version of Maven is 1.0.2. My
   > version of Java is java version " 1.5.0_06".
   >
   >
   > According to http://ws.apache.org/axis2/svn.html - you just type
   > 'maven'. This fails -
   >
   >> test:test:
   >> [junit] Running org.apache.axis2.om.impl.dom.DocumentImplTest
   >> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
   0.39 sec
   >> [junit] Running
   org.apache.axis2.om.impl.dom.DOMImplementationTest
   >> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
   0.28 sec
   >> [junit] Running org.apache.axis2.om.impl.dom.ElementImplTest
   >> [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed:
   0.381
   >> sec
   >> [junit] Running org.apache.axis2.om.impl.dom.MessagesTest
   >> [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
   0.471
   >> sec
   >> *[junit] [ERROR] TEST
org.apache.axis2.om.impl.dom.MessagesTest
   >> FAILED*
   >> [junit] Running org.apache.axis2.om.impl.dom.OMDOMFactoryTest
   >> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
   0.281
   >> sec
   >> [junit] Running org.apache.axis2.om.impl.dom.TextImplTest
   >> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
   0.28 sec
   >>
   >> BUILD FAILED
   >> File.. C:\Documents and
   >>

Settings\sean\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly

   >> Element... maven:reactor
   >> Line.. 217
   >> Column 9
   >> Unable to obtain goal [multiproject:install-callback] --
   C:\Documents
   >> an

Re: [axis2] failure when trying to build axis2

2006-03-18 Thread Ajith Ranabahu
Hi all,
There was an Axiom change that broke the build for a while and now it
is fixed. I guess the Axiom jar should be upated by now. But if you
are in the habit of running the build with -o (offline) which makes
things faster, then you may still be having the older jar in your
maven  repository which could be the problem.
The safest thing you can do is to build Axiom by yourself and put the
jar inside the repo.

HTH

Ajith

On 3/19/06, Dennis Sosnoski <[EMAIL PROTECTED]> wrote:
> I've also been getting repeated and consistent test failures over the
> last week, despite updating to the latest SVN code every day. The first
> error is with org.apache.axis2.engine.CallUnregisteredServiceTest, and
> pretty much everything from that point on has errors. I'm running on
> Linux, using JDK 1.4.2 from Sun. I do a "maven clean" first, then
> "maven", and have MAVEN_OPTS=-Dversion_affix=dev
>
>   - Dennis
>
> Sean Doyle (Gmail) wrote:
>
> > Loreno Oliveira wrote:
> >
> >> I got also problems with some tests, just like Sean and Bruno.
> >> My problem was fixed when I turned off the Norton Worm Protection...
> >
> >
> > No such luck here - I've turned off my Trend Micro, ran svn update,
> > and still see errors.
> >
> > After
> >
> >>[junit] [ERROR] TEST org.apache.axis2.rpc.RPCCallTest FAILED
> >>[junit] Running org.apache.axis2.security.AddressingMTOMSecurityTest
> >
> >
> >
> > you see
> >
> >> BUILD FAILED
> >> File.. C:\Documents and
> >> Settings\sean\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly
> >> Element... maven:reactor
> >> Line.. 217
> >> Column 9
> >> Unable to obtain goal [multiproject:install-callback] -- C:\Documents
> >> and Settings\sean\.maven\cache\maven-test-plugin-1
> >> .6.2\plugin.jelly:181:54:  There were test failures.
> >> Total time: 20 minutes 39 seconds
> >> Finished at: Fri Mar 17 15:25:25 EST 2006
> >
> >
> > This was in response to a 'maven release'.
> >
> >
> >>
> >> Now I'm building and testing axis2 fine...
> >>
> >> Loreno
> >>
> >> On 3/16/06, *Eran Chinthaka* <[EMAIL PROTECTED]
> >> > wrote:
> >>
> >> Hi Sean and Bruno,
> >>
> >> We experience a build failure in Axis2 main branch now. Please
> >> give us
> >> time till tomoro for us to fix it.
> >>
> >> Thanks,
> >> Chinthaka
> >>
> >> Sean Doyle (Gmail) wrote:
> >> > bruno wanadoo wrote:
> >> >
> >> >> Hi Chinthaka & everybody else
> >> >>
> >> >> I followed instructions in the FAQ ( with jdk1.5 I modify the
> >> >> security file to add BC as provider)
> >> >> But when I launch maven , a lot of targets are built but at the
> >> end I
> >> >> got this
> >> >>
> >> > I'm getting the same
> >> >Unable to obtain goal [multiproject:install-callback] --
> >> > C:\Documents and
> >> >
> >>
> >> Settings\bruno\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54:
> >>
> >> > I've also put in the same attribute for BC. And svn is current
> >> as of a
> >> > few minutes ago.
> >> >
> >> > Here's what works and doesn't work - I'm a bit confused by the
> >> site's
> >> > documentation since it has two different calls to maven
> >> specified for
> >> > building the project. One fails with the plugin.jelly message, the
> >> > other works but doesn't make the war file.
> >> >
> >> > I'm running this in WindowsXP. My version of Maven is 1.0.2. My
> >> > version of Java is java version " 1.5.0_06".
> >> >
> >> >
> >> > According to http://ws.apache.org/axis2/svn.html - you just type
> >> > 'maven'. This fails -
> >> >
> >> >> test:test:
> >> >> [junit] Running org.apache.axis2.om.impl.dom.DocumentImplTest
> >> >> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
> >> 0.39 sec
> >> >> [junit] Running
> >> org.apache.axis2.om.impl.dom.DOMImplementationTest
> >> >> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
> >> 0.28 sec
> >> >> [junit] Running org.apache.axis2.om.impl.dom.ElementImplTest
> >> >> [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed:
> >> 0.381
> >> >> sec
> >> >> [junit] Running org.apache.axis2.om.impl.dom.MessagesTest
> >> >> [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
> >> 0.471
> >> >> sec
> >> >> *[junit] [ERROR] TEST
> >> org.apache.axis2.om.impl.dom.MessagesTest
> >> >> FAILED*
> >> >> [junit] Running org.apache.axis2.om.impl.dom.OMDOMFactoryTest
> >> >> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
> >> 0.281
> >> >> sec
> >> >> [junit] Running org.apache.axis2.om.impl.dom.TextImplTest
> >> >> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
> >> 0.28 sec
> >> >>
> >> >> BUILD FAILED
> >> >> File.. C:\Documents and
> >> >>
> >>
> >> Settings\sean\.maven\cache\maven-m

Re: [Axis2 0.94] Reusing a Stub across multiple operations

2006-03-18 Thread Ajith Ranabahu
Hi Chuck,
We discovered this as a bug in our options class and fixed it sometime
back. The issue was that the parent-child hierarchy of the options
objects were not getting treated properly in the getter methods.
Stubs are meant to be used for multiple operations and you should be
able to use one instance for multiple invocations of the
same/different services! We also had a problem with the Axisservice
being static inside the stub and now that is changed too.
So all your issues should be solved in the latest code base :)

Ajith



On 3/18/06, Chuck Williams <[EMAIL PROTECTED]> wrote:
>  Resending with proper subject header:
>
>
>  Hi All,
>
> We have been creating a new Stub instance for every operation initiated
> by our client, because if we don't, subsequent operations always get
> confused and think they are instances of the first operation performed.
> I.e., if we do operation A and then operation B on the same Stub, then
> the operation for B sends the correct message payload to the server, but
> the server thinks it is another A operation; the implementation of A of
> course then dies because the message is of the wrong type.
>
> In looking at the code, it seems this must be a bug as the Stub is
> designed to be reused across operations. Is this a known problem? We
> are using the http client transport. Or perhaps, the bug is on the
> server side not accepting a message for a different operation on the
> same connection? We are using the built-in http client on the server
> side. There is this interesting comment at the top of Stub.java:
>
> > /**
> > * If _maintainSession is set to true, all the calls can use the same
> > * ServiceContext. The user can share information through this
> > * ServiceContext across operations.
> > */
>
>
> However, grep _maintainSession shows no other references in the axis2
> code base. I'm wonder if this is somehow related to our issue. E.g.,
> if the operation is somehow sticky in the ServiceContext. I don't see
> any other shared state than the ServiceContext (and Options) across
> client operations on a single Stub instance.
>
> I'm looking into this problem again because we are getting a large
> number of hanging TimerThreads in our client on Windows. The same
> behavior does not happen running on linux. Anyone seen this issue?
>
> Thanks for any help,
>
> Chuck
>
>
>
>
> --
>
>  Chuck Williams
>  Manawiz
>  Principal
>  V: (808)885-8688
>  C: (415)846-9018
>  [EMAIL PROTECTED]
>  Skype: manawiz
>  AIM: hawimanawiz
>  Yahoo: jcwxx
>


--
Ajith Ranabahu


Module validation failed module.xml

2006-03-18 Thread Yariel Ramos Moreno
Hi:This is the second time I wrote about this problem, but the situation is diferent now.I have an Axis2 (0.94 release) web service. It is working fine. Also, I have a web application in wich the service is invoked. When I do  this, I get the followin exception:
Module validation failed  module.xml not found  for the module :   addressing; nested exception is:     org.apache.axis2.deployment.DeploymentException: module.xml not found  for the module :   addressingorg.apache.axis2.deployment.DeploymentException
: module.xml not found  for the module :   addressing; nested exception is:     org.apache.axis2.deployment.DeploymentException: module.xml not found  for the module :   addressing; nested exception is:     org.apache.axis2.deployment.DeploymentException
: module.xml not found  for the module :   addressing; nested exception is:     org.apache.axis2.deployment.DeploymentException: module.xml not found  for the module :   addressing    at org.apache.axis2.deployment.DeploymentEngine.load
(DeploymentEngine.java:542)    at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:39)    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)    at org.apache.axis2.client.ServiceClient
.(ServiceClient.java:86)    at org.apache.axis2.client.ServiceClient.(ServiceClient.java:148)    at facade.struts.model.NewsServiceClient.invokeService(NewsServiceClient.java:23)    at 
facade.struts.model.NewsService.getNewsFrom(NewsService.java:93)    at facade.struts.action.MenuAction.execute(MenuAction.java:68)    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java
:484)    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)    at org.apache.struts.action.ActionServlet.doGet
(ActionServlet.java:507)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:213)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)    at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)    at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
:527)    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)    at java.lang.Thread.run
(Thread.java:595)Caused by: org.apache.axis2.deployment.DeploymentException: module.xml not found  for the module :   addressing; nested exception is:     org.apache.axis2.deployment.DeploymentException: module.xml
 not found  for the module :   addressing    at org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:193)    at org.apache.axis2.engine.AxisConfiguration.loadModulefromResources
(AxisConfiguration.java:385)    at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:328)    at org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:502)
    at org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:537)    ... 28 moreCaused by: org.apache.axis2.deployment.DeploymentException: module.xml not found  for the module :   addressing
    at org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:158)    ... 32 moreBut when I use the same client code from the main method of a simple class, outside the web application and the tomcat server, it work fine.
I have made everything conserning with the .axis2 directory (it is created, with the respective modules directory and address.mar file inside it).Any idea about this? Do anyone have a solution to this problem? I need some help very quickly.
Thanks and regards...


Re: [axis2] failure when trying to build axis2

2006-03-18 Thread Dennis Sosnoski
I've also been getting repeated and consistent test failures over the 
last week, despite updating to the latest SVN code every day. The first 
error is with org.apache.axis2.engine.CallUnregisteredServiceTest, and 
pretty much everything from that point on has errors. I'm running on 
Linux, using JDK 1.4.2 from Sun. I do a "maven clean" first, then 
"maven", and have MAVEN_OPTS=-Dversion_affix=dev


 - Dennis

Sean Doyle (Gmail) wrote:


Loreno Oliveira wrote:


I got also problems with some tests, just like Sean and Bruno.
My problem was fixed when I turned off the Norton Worm Protection...



No such luck here - I've turned off my Trend Micro, ran svn update, 
and still see errors.


After


   [junit] [ERROR] TEST org.apache.axis2.rpc.RPCCallTest FAILED
   [junit] Running org.apache.axis2.security.AddressingMTOMSecurityTest




you see


BUILD FAILED
File.. C:\Documents and 
Settings\sean\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly

Element... maven:reactor
Line.. 217
Column 9
Unable to obtain goal [multiproject:install-callback] -- C:\Documents 
and Settings\sean\.maven\cache\maven-test-plugin-1

.6.2\plugin.jelly:181:54:  There were test failures.
Total time: 20 minutes 39 seconds
Finished at: Fri Mar 17 15:25:25 EST 2006



This was in response to a 'maven release'.




Now I'm building and testing axis2 fine...

Loreno

On 3/16/06, *Eran Chinthaka* <[EMAIL PROTECTED] 
> wrote:


Hi Sean and Bruno,

We experience a build failure in Axis2 main branch now. Please 
give us

time till tomoro for us to fix it.

Thanks,
Chinthaka

Sean Doyle (Gmail) wrote:
> bruno wanadoo wrote:
>
>> Hi Chinthaka & everybody else
>>
>> I followed instructions in the FAQ ( with jdk1.5 I modify the
>> security file to add BC as provider)
>> But when I launch maven , a lot of targets are built but at the
end I
>> got this
>>
> I'm getting the same
>Unable to obtain goal [multiproject:install-callback] --
> C:\Documents and
>

Settings\bruno\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54:


> I've also put in the same attribute for BC. And svn is current
as of a
> few minutes ago.
>
> Here's what works and doesn't work - I'm a bit confused by the
site's
> documentation since it has two different calls to maven
specified for
> building the project. One fails with the plugin.jelly message, the
> other works but doesn't make the war file.
>
> I'm running this in WindowsXP. My version of Maven is 1.0.2. My
> version of Java is java version " 1.5.0_06".
>
>
> According to http://ws.apache.org/axis2/svn.html - you just type
> 'maven'. This fails -
>
>> test:test:
>> [junit] Running org.apache.axis2.om.impl.dom.DocumentImplTest
>> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
0.39 sec
>> [junit] Running
org.apache.axis2.om.impl.dom.DOMImplementationTest
>> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
0.28 sec
>> [junit] Running org.apache.axis2.om.impl.dom.ElementImplTest
>> [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed:
0.381
>> sec
>> [junit] Running org.apache.axis2.om.impl.dom.MessagesTest
>> [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed:
0.471
>> sec
>> *[junit] [ERROR] TEST 
org.apache.axis2.om.impl.dom.MessagesTest

>> FAILED*
>> [junit] Running org.apache.axis2.om.impl.dom.OMDOMFactoryTest
>> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
0.281
>> sec
>> [junit] Running org.apache.axis2.om.impl.dom.TextImplTest
>> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:
0.28 sec
>>
>> BUILD FAILED
>> File.. C:\Documents and
>>

Settings\sean\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly


>> Element... maven:reactor
>> Line.. 217
>> Column 9
>> Unable to obtain goal [multiproject:install-callback] --
C:\Documents
>> and Settings\sean\.maven\cache\maven-test-plugin-1
>> .6.2\plugin.jelly:181:54:  There were test failures.
>> Total time: 4 minutes 9 seconds
>> Finished at: Thu Mar 16 10:22:34 EST 2006
>
>
> According to http://ws.apache.org/axis2/siteHowTo.html - you type
> 'maven multiproject'. This worked yesterday - but it didn't 
make the

> war file. And - although it worked there are several errors of
the sort:
>
>> Error retrieving artifact from
>>

[http://www.ibiblio.org/maven/axis2/jars/axis2-codegen-0.95-SNAPSHOT.jar]: 


>> java.net.Conne
>> ctException: Connection timed out: connect
>> 192K downloaded
>
>
>
> Somewhere on the apache site there was a suggestion to use
'maven.war'
> - this failed with (I believe) the same plug

Re: [Axis2 ] unclosed Threads

2006-03-18 Thread Ali Sadik Kumlali
Roman,JIRA is issue tracking application. You can reach Axis2's JIRA at http://issues.apache.org/jira/browse/AXIS2. It seems you are required to become a member to create an issue. You  can reach sign-up page from  https://issues.apache.org/jira/secure/Signup!default.jspa.Regards,Ali Sadik Kumlali  Roman Weidlich <[EMAIL PROTECTED]> wrote:  Sorry, what means "JIRA" ?Deepal Jayasinghe wrote:> can you please creat a JIRA> > Roman Weidlich wrote:> >> Look this: final String ENDPOINT1 = "http://..."; public String say(String data) {>>   //first call>>   String endpoint2 = invokeEchoBlocking(ENDPOINT1, "say", data);>>   //second call>>   String result =
 invokeEchoBlocking(endpoint2, "say", data);>>   return result;>> } On every invocation two new threads arise visible in the Task-Manager>> of Windows. Axis 1 don't show this behaviour!> 
		Brings words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.

Re: [Axis2 ] unclosed Threads

2006-03-18 Thread Roman Weidlich

Sorry, what means "JIRA" ?


Deepal Jayasinghe wrote:

can you please creat a JIRA

Roman Weidlich wrote:


Look this:

final String ENDPOINT1 = "http://...";;

public String say(String data) {
  //first call
  String endpoint2 = invokeEchoBlocking(ENDPOINT1, "say", data);
  //second call
  String result = invokeEchoBlocking(endpoint2, "say", data);
  return result;
}

On every invocation two new threads arise visible in the Task-Manager
of Windows. Axis 1 don't show this behaviour!






[Axis1.3] problem when using a proxy

2006-03-18 Thread Hans Rupp
Hello,

i've got the following problem. I'm using Axis1.3. I generated the client-
and server-classes for my webservice
with wsdl2java. I also wrote a simple proxy, which forwards the request and
sends back the response, to get through my firewall. I got the following
problem:

When i use my client without the proxy everything is fine. But when i use
the proxy, the client cannot understand
the answer. I checked the the messages from client to proxy and vice versa
using the tcpmon and the messages from
the proxy to the service and vice versa using the soapmonitor, and all
messages look correct to me. But when
the client gets the response from the proxy, it throws the following
exception:

org.xml.sax.SAXParseException: Premature end of file.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChe
cker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at Retailer7.wsdl.RetailerSOAPStub.quotation(RetailerSOAPStub.java:219)
... 7 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(Unknown Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unkno
wn Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
 Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
 Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersi
on(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext
.java:227)


at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
... 16 more
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Premature end of file.
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Premature end of file.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(Unknown Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unkno
wn Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
 Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
 Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersi
on(Unknown Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext
.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChe
cker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at Retailer7.wsdl.RetailerSOAPStub.quotation(RetailerSOAPStub.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingM

Sorry about that last email...

2006-03-18 Thread Jim Azeltine
Wrong list!  8)

Re: [EPK9] KBr? yes or no??

2006-03-18 Thread Jim Azeltine
"Elizabeth Y. MacDonald" <[EMAIL PROTECTED]> wrote:  >> hi list. liz and duke from germany here. i have been reading about this>> KBr business and a doctor had posted all these horrible things about it like>> coma and brain damage. none of my vets (in two different countries) have>> ever mentioned any of these things as side effects...! should i ask about>> taking duke off the KBr? he has done so well with the PhB and KBr combo,>> i'm hesitant to mess with the meds but if this doctor is saying it's so>> awful, perhaps i should reconsider. >> this post said something about KBr should NEVER be ingested...? OH NO..>> duke has been on it for almost a year.>> geez. just when i thought i'd reached the right med combo this goes and>> happens.>> confused liz and duke  If you are referring to Kathi's email,
  she is
 not a doctor, she is a Master Herbalist. I would guess she was getting her information from a source referring to the effect the KBr has on humans. Don't worry about it for your pup, read some of the other emails about the successes that list members like us have had with KBr. Our KC has been taking it for about 3 years, and I am quite sure she would have crossed the bridge already if we had not started her on it.     Jim

Re: Retrieve Web Service name in Axis2

2006-03-18 Thread Jeff Greif
Look up javadoc for java.lang.ClassLoader.getSystemResource() or 
getSystemResourceAsStream().
Using this, you can have the file in your service's classpath, e.g. 
axis/WEB-INF/classes/
Relative to this directory you can name the file 
resources/newService/config.xml and get it using 
ClassLoader.getSystemResourceAsStream("resources/newService/config.xml");


Jeff


Yariel Ramos Moreno wrote:
OK... why do I need the service name? Maybe you can give me another 
solution...


I have a XML file into my service, exactly in the root, where there 
are some configuration options for the service work. I most access 
this file from the service classes to get this configuration 
parameters. I'm using System.getProperty("user.dir") to step over the 
tomcat directory, but next I have to concat to this path the rest of 
the path to get the file: 
/webapps/axis2/WEB-INF/services/newsService/config.xml. Is there 
onother way to do this (get the path of an Axis2 web service from the 
service code)?


Thanks again...


On 3/18/06, *Deepal Jayasinghe* <[EMAIL PROTECTED] 
> wrote:


hmm , it should work :-/

any at the init method what did you get as your service name , or was
the AxisServce null , if it is not null then you should be able to get
the name.





Re: Retrieve Web Service name in Axis2

2006-03-18 Thread Yariel Ramos Moreno
OK... why do I need the service name? Maybe you can give me another solution...I have a XML file into my service, exactly in the root, where there are some configuration options for the service work. I most access this file from the service classes to get this configuration parameters. I'm using 
System.getProperty("user.dir") to step over the tomcat directory, but next I have to concat to this path the rest of the path to get the file: 
/webapps/axis2/WEB-INF/services/newsService/config.xml. Is there onother way to do this (get the path of an Axis2 web service from the service code)?Thanks again...
On 3/18/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
hmm , it should work :-/any at the init method what did you get as your service name , or wasthe AxisServce null , if it is not null then you should be able to getthe name.Yariel Ramos Moreno wrote:
> Hi Deepal:>> I have tried the procedure you recomended me, but doesn't work... It> didn't get the name of the WS... Have you another  solution?>> Thanks for your help...
 On 2/22/06, *Deepal Jayasinghe* <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:
>> yes you can do that , meaning if you want to get the name of the> service> at your service impl class level , you have to following procedure.>   add a new method to service impl class called "init"
>> class MyService {> String serviceName;> void  init(MessageContext msgctx){>   serviceName = msgctx.getAxisService().getName();> }> //rest o fthe code
>> public String myMethod(){>// you know the name of the sevrice this point> }> } Yariel Ramos Moreno wrote:>> > Thanks for your help Deepal...
> >> > I know that. My problem is that I want to get the name of my WS> in the> > moment I invoke it, from one of the clases implemented in the WS. I> > want to know if there is a class in the Axis2 API that alows me
> to do> > that (get my name from code if I'm the invoked WS).> >> > On 2/22/06, *Deepal Jayasinghe* < [EMAIL PROTECTED]
> [EMAIL PROTECTED]>> > [EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:> >> > Hi Yariel;> >> > Name of the service will be the name of the archive file if the> > services.xml
 has only one service element meaning if the> services.xml> > look like below> > > > // service data> > 
> >> > In the case of servicegroup name of the service will be the> name that> > you specified in services.xml as an example if the> services.xml is
> > like> > below;> > > >> >> > 
> >> > so name of the service will be foo in this case.> >> > Yariel Ramos Moreno wrote:> >> > > How can I retrieve the name of a Web Service deployed in
> Axis2 sever> > > in runtime? I mean, when the service is invoked, I need to> get the> > > name of it from inside it in my code.> > >
> > > Thanks in advance,> > >> > > Yariel.> >> >> > --> > Thanks,> > Deepal> > 
> > ~Future is Open~> >> >> >>> --> Thanks,> Deepal> 
> ~Future is Open~>>>--Thanks,Deepal~Future is Open~


axis threading

2006-03-18 Thread Mr Rob Shepherd


I am evaluating axis for a number of projects.

I have sucessfully deployed axis on jetty 5 and tested a simple jws 
object. This query may be an issue with jetty, so I apologise if this is 
the case.


I dropped in a calculator  object with just add and subtract methods.

In testing I noticed the service is provided without multithreading. 
However strangely this only appears to be 'per' method. If I make both 
methods consume 10 seconds say, subsequent requests to the same method 
will block. Likewise with the other method, however it has an independent 
request queue to the first.


Strangley also, a new instance of the calculator is made upon every 
request. I don't understand then why these standalone instances cannot be 
multithreaded.


Some questions...

Is there some docs to describe this behaviour?
It this only an issue with jws scripts?
How can I multi thread my objects?
additionally, can I get access to the http basic auth credentials from my 
axis ws?



Incidentally, I have configured jetty to use axis with listener thread 
pool size min and max values. I don't know whether there is some other 
config for this. The jetty list is my next stop.


Thanks for any insight,

Rob


Re: Retrieve Web Service name in Axis2

2006-03-18 Thread Deepal Jayasinghe
hmm , it should work :-/

any at the init method what did you get as your service name , or was
the AxisServce null , if it is not null then you should be able to get
the name.



Yariel Ramos Moreno wrote:

> Hi Deepal:
>
> I have tried the procedure you recomended me, but doesn't work... It
> didn't get the name of the WS... Have you another  solution?
>
> Thanks for your help...
>
>
>
> On 2/22/06, *Deepal Jayasinghe* <[EMAIL PROTECTED]
> > wrote:
>
> yes you can do that , meaning if you want to get the name of the
> service
> at your service impl class level , you have to following procedure.
>   add a new method to service impl class called "init"
>
> class MyService {
> String serviceName;
> void  init(MessageContext msgctx){
>   serviceName = msgctx.getAxisService().getName();
> }
> //rest o fthe code
>
> public String myMethod(){
>// you know the name of the sevrice this point
> }
> }
>
>
>
> Yariel Ramos Moreno wrote:
>
> > Thanks for your help Deepal...
> >
> > I know that. My problem is that I want to get the name of my WS
> in the
> > moment I invoke it, from one of the clases implemented in the WS. I
> > want to know if there is a class in the Axis2 API that alows me
> to do
> > that (get my name from code if I'm the invoked WS).
> >
> > On 2/22/06, *Deepal Jayasinghe* < [EMAIL PROTECTED]
> 
> > >> wrote:
> >
> > Hi Yariel;
> >
> > Name of the service will be the name of the archive file if the
> > services.xml has only one service element meaning if the
> services.xml
> > look like below
> > 
> > // service data
> > 
> >
> > In the case of servicegroup name of the service will be the
> name that
> > you specified in services.xml as an example if the
> services.xml is
> > like
> > below;
> > 
> >
> >
> > 
> >
> > so name of the service will be foo in this case.
> >
> > Yariel Ramos Moreno wrote:
> >
> > > How can I retrieve the name of a Web Service deployed in
> Axis2 sever
> > > in runtime? I mean, when the service is invoked, I need to
> get the
> > > name of it from inside it in my code.
> > >
> > > Thanks in advance,
> > >
> > > Yariel.
> >
> >
> > --
> > Thanks,
> > Deepal
> > 
> > ~Future is Open~
> >
> >
> >
>
> --
> Thanks,
> Deepal
> 
> ~Future is Open~
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 




Re: Missing DOCTYPE and validation

2006-03-18 Thread Dies Koper

Hello Michael,

I don't think a SOAP message is supposed to have a DOCTYPE header.
What is the error you get? Stacktrace?
Axis does not schema-validate the SOAP message, and AFAIK by default XML 
parsers do not do that unless implicitly told to.


Regards,
Dies


Michael Oltz wrote:

Hello,

I am using Axis 1.3 with Xerces 2.7.1. I am writing a client
for a web service which, I have discovered, does not put a
DOCTYPE header in the SOAP message that comes back. I get an
XML error when Axis starts to try to unmarshall the SOAP.
I am not in a position to fix the other end, nor to fudge
the response way down deep. How can I make the parsing
nonvalidating? Or is that forbidden because it would break
too many other things?