Problem running build.xml with AspectJ

2007-10-11 Thread Roland Piazzi
Hi!

I try to run my build.xml file with aspectJ and it says:

taskdef A class needed by class org.aspectj.tools.ant.taskdefs.compilers.Ajc 
connot be found: org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter


My question is: Where can I find this class or what library have i forgot to 
put on the classpath?


My build.xml file looks as following:

project name=HumanInteractionMiningService basedir=. 
default=generate.service

property environment=env/
property name=AXIS2_HOME value=../

property name=build.dir value=build/

property name =aspect.dir value=${basedir}/lib/

path id=axis2.classpath
fileset dir=${AXIS2_HOME}/lib
include name=*.jar/
/fileset
/path

 path id=aspectj.classpath
  pathelement location=${aspect.dir}/aspectjrt.jar/
  pathelement location=${aspect.dir}/aspectjtools.jar}/
  pathelement location=${aspect.dir}/aspectjlib.jar}/
  pathelement location=${aspect.dir}/aspectjweaver.jar}/
 /path
  
 taskdef name=ajc 
classname=org.aspectj.tools.ant.taskdefs.compilers.Ajc
   classpath refid=aspectj.classpath/
 /taskdef
  

target name=compile.service
mkdir dir=${build.dir}/
mkdir dir=${build.dir}/classes/

 
!--First let's compile the classes--
javac debug=on 
   fork=true
   destdir=${build.dir}/classes 
   srcdir=${basedir}/src
   classpathref=axis2.classpath
/javac
/target
 
target name = compile.ajc.service
  ajc
 srcdir=${basedir}/src
 destdir=${build.dir}/classes
/ajc
 /target

target name=generate.wsdl depends=compile.service
taskdef name=java2wsdl
 classname=org.apache.ws.java2wsdl.Java2WSDLTask
 classpathref=axis2.classpath/
java2wsdl 
className=ac.at.tuwien.vitalab.services.TaskManagementService
   outputLocation=${build.dir}
 targetNamespace=http://TaskManagementService/;
   schemaTargetNamespace=http://TaskManagementService/xsd;
classpath
pathelement path=${axis2.classpath}/
pathelement location=${build.dir}/classes/
/classpath
/java2wsdl
  

/target

target name=generate.service depends=compile.service
!--aar them up --
copy toDir=${build.dir}/classes failonerror=false
fileset dir=${basedir}/resources
include name=**/*.xml/
/fileset
/copy
jar destfile=${build.dir}/TaskManagementService.aar
fileset excludes=**/Test.class dir=${build.dir}/classes/
/jar
/target

target name=clean
delete dir=${build.dir}/
/target
/project




Re: Searching for help for error: java.lang.RuntimeException: Schema for namespace 'http://calendar.util.sun/xsd' already contains type 'Abstract Calendar'

2007-09-24 Thread Roland Piazzi
I'm not creating it manually, its created within the wsdl file and this is 
created via java2wsdl...? Should i modify my wsdl-file?


- Original Message - 
From: Anne Thomas Manes [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Sunday, September 23, 2007 10:58 PM
Subject: Re: Searching for help for error: java.lang.RuntimeException: 
Schema for namespace 'http://calendar.util.sun/xsd' already contains type 
'Abstract Calendar'




How are you creating/generating the schema(s)?
You need to make sure that the Abstract Calendar type is declared only 
once.


Anne

On 9/23/07, Roland Piazzi [EMAIL PROTECTED] wrote:



Hi!

I'm searching for help for my problem that is:

java.lang.RuntimeException: Schema for namespace
'http://calendar.util.sun/xsd' already contains type 'Abstract Calendar' 
at

org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:311)

I think its because my program wants to enter a new Date Type and within
this has to access the Namespace for a Date Object (i has only Date 
objects)

that already exists.

I receive this error message when generating classes with wsdl2java.

Does anyone know how to correct this error?

Roland


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



Searching for help for error: java.lang.RuntimeException: Schema for namespace 'http://calendar.util.sun/xsd' already contains type 'Abstract Calendar'

2007-09-23 Thread Roland Piazzi
Hi!

I'm searching for help for my problem that is:

java.lang.RuntimeException: Schema for namespace 'http://calendar.util.sun/xsd' 
already contains type 'Abstract Calendar' at 
org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:311)

I think its because my program wants to enter a new Date Type and within this 
has to access the Namespace for a Date Object (i has only Date objects) that 
already exists.

I receive this error message when generating classes with wsdl2java.

Does anyone know how to correct this error?

Roland

Re: Error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unk

2007-06-21 Thread Roland Piazzi

yuhu :-), i've found the error:

the destination package of WSDL2Java should exist, if not exists it gives me 
the error.

thanks again
roland
- Original Message - 
From: Roland Piazzi [EMAIL PROTECTED]

To: Walker, Jeff [EMAIL PROTECTED]; axis-user@ws.apache.org
Sent: Thursday, June 21, 2007 2:51 AM
Subject: Re: Error: java.io.IOException: Server returned HTTP response code: 
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)




what you mean with

edit your wsdl


edit the class that represents the webservice?

Both PC's where hosting the webservice and acting as client.

Yes this is the problem: I really edited the class to the point that i had 
only one simple Method that returned a String but it didn't work...seems 
to be some ghost in there :-)...


roland
- Original Message - 
From: Walker, Jeff [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:33 PM
Subject: RE: Error: java.io.IOException: Server returned HTTP response 
code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source)



I guess what I was implying is,
that I would edit your wsdl to comment out all of the methods except a
simple ping() method, that takes say, an integer, and returns an
integer. Something ridiculously simple. Then generate your classes from
it. Then deploy the web service.
Then get your client to successfully call that ping() method. This tells
you the wsdl (and the generated classes) are healthy.

Then start to edit the wsdl again, bring in one actual business method,
preferrably the simplest business method you have, and try to call that.

I'm not sure what you mean when you say you got it to work on one PC but
not the other. Were both of these PC's acting as clients, or were they
hosting the web service?

One final point of confusion I have; if you removed all of the methods,
then there is no web service to speak of, so there would be no web
service methods to call from your client, and so how could you still get
the error?
I don't understand.
-jeff





-Original Message-
From: Roland Piazzi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 5:00 PM
To: axis-user@ws.apache.org
Subject: Re: Error: java.io.IOException: Server returned HTTP response
code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

I copied some old implementation instead of that and it worked, but only

with one pc, with the other it didn't work, also if i removed all
methods,
still the error was. If you have other advices how to try please tell me

because at the time i don't know how to go on trying.

roland
- Original Message - 
From: Walker, Jeff [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 7:31 PM
Subject: RE: Error: java.io.IOException: Server returned HTTP response
code:
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)


Yeah,
The service is reachable, but the server failed to complete your
request.
A). Check that the request going out to the url is also correct.
B). Check your web service implementation. Do you even reach your web
service methods? (Put some old-fashioned debug statements into your web
service method, to see if tose statements get hit).
C). I'd also pick the simplest method on the web service and call that

from your client, to help narrow down the error. Then move onto the

next
most complicated method, etc.

There are many thing to try, but concentrate on your web service
debugging.
-jeff


-Original Message-
From: Roland Piazzi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:31 AM
To: axis-user@ws.apache.org
Subject: Error: java.io.IOException: Server returned HTTP response code:
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

Hi!

I try to generate WSDL2Java classes but receive the following error (the

service is reachable at this endpoint) :

java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnt
ity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
ersion(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source

Error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown

2007-06-20 Thread Roland Piazzi

Hi!

I try to generate WSDL2Java classes but receive the following error (the 
service is reachable at this endpoint) :


java.io.IOException: Server returned HTTP response code: 500 for URL: 
http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown 
Source)

at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)

at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Can anyone help?
Thanks and regards
Roland 



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



Re: Error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unk

2007-06-20 Thread Roland Piazzi
The command is:

java org.apache.axis.wsdl.WSDL2Java -o src -p PackageLogCollectorWSDL2Java 
http://localhost:8080/axis/services/LogCollector?wsdl


  - Original Message - 
  From: Chris Shah 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, June 20, 2007 8:18 PM
  Subject: Re: Error: java.io.IOException: Server returned HTTP response code: 
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)


  Can you send the command you invoke ?

  Roland Piazzi [EMAIL PROTECTED] wrote: 
Hi!

I try to generate WSDL2Java classes but receive the following error (the 
service is reachable at this endpoint) :

java.io.IOException: Server returned HTTP response code: 500 for URL: 
http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at 

com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown
 
Source)
at 

com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown
 
Source)
at 

com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unknown 
Source)
at 

com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown 
Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Can anyone help?
Thanks and regards
Roland 


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






--
  Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 

Re: Error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unk

2007-06-20 Thread Roland Piazzi
I copied some old implementation instead of that and it worked, but only 
with one pc, with the other it didn't work, also if i removed all methods, 
still the error was. If you have other advices how to try please tell me 
because at the time i don't know how to go on trying.


roland
- Original Message - 
From: Walker, Jeff [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 7:31 PM
Subject: RE: Error: java.io.IOException: Server returned HTTP response code: 
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)



Yeah,
The service is reachable, but the server failed to complete your
request.
A). Check that the request going out to the url is also correct.
B). Check your web service implementation. Do you even reach your web
service methods? (Put some old-fashioned debug statements into your web
service method, to see if tose statements get hit).
C). I'd also pick the simplest method on the web service and call that

from your client, to help narrow down the error. Then move onto the next

most complicated method, etc.

There are many thing to try, but concentrate on your web service
debugging.
-jeff


-Original Message-
From: Roland Piazzi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:31 AM
To: axis-user@ws.apache.org
Subject: Error: java.io.IOException: Server returned HTTP response code:
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

Hi!

I try to generate WSDL2Java classes but receive the following error (the

service is reachable at this endpoint) :

java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnt
ity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
ersion(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknow
n
Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
82)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Can anyone help?
Thanks and regards
Roland


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



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



Re: Error: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unk

2007-06-20 Thread Roland Piazzi

what you mean with

edit your wsdl


edit the class that represents the webservice?

Both PC's where hosting the webservice and acting as client.

Yes this is the problem: I really edited the class to the point that i had 
only one simple Method that returned a String but it didn't work...seems to 
be some ghost in there :-)...


roland
- Original Message - 
From: Walker, Jeff [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:33 PM
Subject: RE: Error: java.io.IOException: Server returned HTTP response code: 
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)



I guess what I was implying is,
that I would edit your wsdl to comment out all of the methods except a
simple ping() method, that takes say, an integer, and returns an
integer. Something ridiculously simple. Then generate your classes from
it. Then deploy the web service.
Then get your client to successfully call that ping() method. This tells
you the wsdl (and the generated classes) are healthy.

Then start to edit the wsdl again, bring in one actual business method,
preferrably the simplest business method you have, and try to call that.

I'm not sure what you mean when you say you got it to work on one PC but
not the other. Were both of these PC's acting as clients, or were they
hosting the web service?

One final point of confusion I have; if you removed all of the methods,
then there is no web service to speak of, so there would be no web
service methods to call from your client, and so how could you still get
the error?
I don't understand.
-jeff





-Original Message-
From: Roland Piazzi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 5:00 PM
To: axis-user@ws.apache.org
Subject: Re: Error: java.io.IOException: Server returned HTTP response
code: 500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

I copied some old implementation instead of that and it worked, but only

with one pc, with the other it didn't work, also if i removed all
methods,
still the error was. If you have other advices how to try please tell me

because at the time i don't know how to go on trying.

roland
- Original Message - 
From: Walker, Jeff [EMAIL PROTECTED]

To: axis-user@ws.apache.org; Roland Piazzi [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 7:31 PM
Subject: RE: Error: java.io.IOException: Server returned HTTP response
code:
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)


Yeah,
The service is reachable, but the server failed to complete your
request.
A). Check that the request going out to the url is also correct.
B). Check your web service implementation. Do you even reach your web
service methods? (Put some old-fashioned debug statements into your web
service method, to see if tose statements get hit).
C). I'd also pick the simplest method on the web service and call that

from your client, to help narrow down the error. Then move onto the

next
most complicated method, etc.

There are many thing to try, but concentrate on your web service
debugging.
-jeff


-Original Message-
From: Roland Piazzi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:31 AM
To: axis-user@ws.apache.org
Subject: Error: java.io.IOException: Server returned HTTP response code:
500 for URL: http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

Hi!

I try to generate WSDL2Java classes but receive the following error (the

service is reachable at this endpoint) :

java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:8080/axis/services/LogCollector?wsdl at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnt
ity(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
ersion(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratioin.parse(Unk
nown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknow
n
Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
82)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Can anyone help?
Thanks