Binary Compatability Migration 1.4 to Axis2

2009-03-04 Thread Willard, Jonathan
Hi all,

Can someone provide a clear simple answer about the binary compatability or 
lack thereof when migrating from Axis1.4 to Axis2?

I have searched the archives and read the apache documentation but I am having 
trouble finding any clear statements about this.  I would expect BC to be 
preserved if the same tool options are used in the Java2Wsdl and Wsdl2Java 
phases.  Is there any offcial word on this or do people think 'it could be, but 
test it out'.

Thanks ... opinions and anecdotes are welcome too :-)

Jon



AXIS2-2881 Axis2 Exception Handling

2009-02-27 Thread Willard, Jonathan
Hi

 

I am migrating working Axis1.4 code to Axis2 and I am having the same
problem with Axis2-1.4 as described in JIRA AXIS2-2881.  It appears that
was resolved in Axis2-1.3.

 

Does anyone have any knowledge or experience with this?  My Service
looks like this:

 

public class JonIf 

{

public String getJonInfo() throws JonException

{

return Hello World  ;

}

}

The JonException extends Exception but the compiler says the following
when compiling the server files.

 

compileServer:

[javac] Compiling 4 source files to X:\top\java\dev\classes

[javac]
X:\top\java\dev\src\com\company\api\jon\server\JonIfMessageReceiverInOut
.java:56: incompatible types

[javac] found   : com.company.api.jon.server.JonException

[javac] required: java.lang.Throwable

[javac] } catch (JonException e) {

[javac]  ^ 

 

Have I missed some obvious difference or migration step in moving from
1.4 to 2?

 

Thanks all,

 

Jon Willard

 



namespaceToPackages AntCodegenTask, Example?

2009-02-19 Thread Willard, Jonathan
Hi I am trying to use the AntCodegenTask namespaceToPackages option.  It
is not doing what I want.  Can some one explain or refer me to a useful
doc?  I actually have 3 namespaces to map so any information about doing
multiple would be helpful too.

 

My ant task looks like this:

 

axis-wsdl2java output=.

wsdlfilename=@{url}

serverside=true

testcase=true

packagename=@{packagename}.server

 
namespaceToPackages=http://table.common.api.company.com/xsd/=com.compan
y.api.common.table.gen generateservicexml=true/

/axis-wsdl2java

 

Where 'axis-wsdl2java is the AntCodegenTask.

 

Regards,

 

Jon Willard

 

 



Please Advise, Axis2 - tomcat authentication system

2008-06-20 Thread Willard, Jonathan
 

Hi all,

 

Hopefully someone can recommned the right way to do this... 

 

I have an Axis2 WebService whose main job is to instantiate objects
running in tomcat.  These tomcat objects organize data and return them
thru the WebService interface.  This allows me to expose legacy data in
an existing application thru WebServcies/WSDL.  

 

The problem is that my tomcat/legacy app has a strong authentication
mechanism built in for it's thick clients.  It uses objects the provide
enterprise Single Sign On capability.  How can I get my Axis2 WebService
to use the same Single Sign On mechanims?

 

I have looked at the following options:

 

1.  Modify Axis2.xml to do something similar to the tomcat
server.xml - 

a.  Having difficulty figuring out how to do this ...

2.  Pass User/Password credentials from the WS client to the Axis2
Server then manually call the auth objects that reside in tomcat

a.  Seems like it could work but how does the server side
'get' the username and pw I set in the client side
org.apache.axis2.transport.http.HttpTransportProperties.Authenticator

3.  User rampart (somehow)???
4.  Other options?

 

So right now #2 seems like the fastest easiest but I wonder if this will
prevent me from using SSL and if it only secures HTTP and that leaves
other protocols open ...

 

Please chime in.

 

Jon

 

 



RE: Multiple services from one WSDL... advice?

2008-06-20 Thread Willard, Jonathan
Hi Andrew,

I am fairly new to Axis2 so I can offer non-Sage advice ... but some
real experience information...

I am building multiple services that get bundled into one .aar file.  I
have a servcies.xml file that uses this structure

serviceGroup
  service name=...
  /service
  service name=...
  /service
/serviceGroup

And a build system using legacy makefiles and ant to build each service
separately.  I have directory that contains the services, each in a
separate package and a directory that contains the test clients, each in
a separate package.  This works well for me.  I can compile all the
services using java2wsdl and then compile all the clients using
wsdl2java.  I use eclipse too and all the services are in one project
but the compiling is all done with the legacy makefiles/ant system on
the command line / cygwin shell.  The only draw back to this is that
sometimes I have to refresh Eclipse to see the stub changes.

I hope this helps ... if you have additional questions please feel free
to contact me directly.

Jon

-Original Message-
From: Andrew Clegg [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2008 5:49 AM
To: axis-user@ws.apache.org
Subject: Multiple services from one WSDL... advice?

Morning folks, a new Axis2 user here seeking some sage advice.

I'm working on a new WS interface for a scientific compute farm, using
Axis2 to generate server classes from WSDLs. The WSDLs currently
define three services: Submit, Monitor and Retrieve.

Submit offers various operations for submitting jobs of various kinds
to the farm for processing, each of which returns a JobID. Monitor
provides operations for checking the status of jobs, nodes etc.
Retrieve contains operations for getting the results of finished jobs
back in several different formats.

Submit, Monitor and Retrieve are currently separate services but I
would be happy putting them in as separate ports within one service.
Ideally, I'd like to be able to run the code generator once on a
single master WSDL, and generate stubs for all three services/ports --
but this isn't allowed. (At least in 1.3, which we are using -- has
this changed in 1.4?)

So instead I'm planning on keeping them in separate services, and
writing a custom Ant task that runs the code generator three times and
deploys three separate services to the server. Each of the three would
need separate directories for src, resources and bin, in order to
avoid clashes. We're working in Eclipse but don't want to set up
completely separate projects for the three services, because of (a)
the amount of back-end code that'll be shared between them and (b) the
fact that we want to keep them together in Subversion to simplify
versioning.

In your experience, would this work, or can you think of a better way?
Are there any other 'gotchas' I should look out for?

Thanks in advance,

Andrew.

-
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: Multiple services from one WSDL... advice?

2008-06-20 Thread Willard, Jonathan
I am very weak with ant but bundle my classes this way, so that my aar
file contains all of the classes from all of the a-e services that I
ship and the servcies.xml file in com/resources.  As I build more
servcies I'll probably want to make my include name a bit less specific.
Since the generate.service depends on generate.wsdl phase, if the
classes are out of date then I will run the wsdl generation first.  My
dir structure is basically:

WebServcies/src/com/.../ws/a
WebServcies/src/com/.../ws/b
WebServcies/src/com/.../ws/c
Etc
Where a-e are different services that are grouped under my application
group.

target name=generate.service depends=generate.wsdl
!--aar them up --
jar destfile=../war/lib/MyService.aar
fileset dir=.
  include name=**/ws/a/*.class /
  include name=**/ws/b/*.class /
  include name=**/ws/c/*.class /
  include name=**/ws/d/*.class /
  include name=**/ws/e/*.class /
/fileset
fileset dir=com/resources
  include name=**/*.xml /
/fileset
/jar
/target

I will not migrate to Eclipse exclusively because we have a lot of
software (Java and C++) ... a build can take between 5-10 hours and is
usually done overnight.  However all of our java code directories
support eclipse so when the build is done we have a 'parallel' build for
eclipse development/debugging but recompiling for deployment is done via
the legacy makefiles/ant and Eclipse does a parallel recompile into an
eclipse only area.  The Eclipse build/rebuild is significatly faster
than the overnight full C++/Java initial build.

Jon


-Original Message-
From: Andrew Clegg [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2008 10:36 AM
To: axis-user@ws.apache.org
Subject: Re: Multiple services from one WSDL... advice?

Hi Jon, thanks for the tips. I've stayed on-list for the benefit of
future searchers...

2008/6/20 Willard, Jonathan [EMAIL PROTECTED]:

 I am building multiple services that get bundled into one .aar file.
I
 have a servcies.xml file that uses this structure

 serviceGroup
  service name=...
  /service
  service name=...
  /service
 /serviceGroup

It's good to know someone else is doing something similar. How do you
bundle several services into a single aar? Could you post an ant or
makefile example? I wasn't even sure if this was possible from my
(admittedly brief) docs search.

I've got my setup working a bit like this, but with a separate
resources folder and services.xml for each. It would be nice to be
able to package up all three services, plus the types derived from the
shared XML Schema which are in a different location, so I can deploy
them to the server together.

 And a build system using legacy makefiles and ant to build each
service
 separately.  I have directory that contains the services, each in a
 separate package and a directory that contains the test clients, each
in
 a separate package.  This works well for me.  I can compile all the
 services using java2wsdl and then compile all the clients using
 wsdl2java.  I use eclipse too and all the services are in one project
 but the compiling is all done with the legacy makefiles/ant system on
 the command line / cygwin shell.  The only draw back to this is that
 sometimes I have to refresh Eclipse to see the stub changes.

Have you considered migrating the make bits into ant, and then kicking
them off from Eclipse as custom project builders? That's what I'm
aiming for when I get the manual build process working happily.

Cheers,

Andrew.

-
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: unexpected subelement exception

2008-06-12 Thread Willard, Jonathan
I found my problem ... is was the result of having a method like this:

 

Response[] myMethod( Request[] )

 

Where both Response and Request are derived from the same base class and
have different children.  The generated wsdl contains definitions for
two different base classes but the derivation is incorrect so when the
client stub attempts to marshal a valid response it crashes because it
expects the wrong tag (using the wrong child).

 

This seems like a bug or a restriction ... Multiple inheritance works
except when the input/output of the method collide.

 

Jon

 

http://www.ca.com/ 



From: Willard, Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2008 5:01 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: unexpected subelement exception

 

I believe I am having the same problem which appears to have started
when I created a class hierarchy that looks like this:

 

Class one {

   String valueone ;

 

 

Class two extends class one {

String valuetwo[];

 

Class three extends class two {

String valuethree;

 

Then I created an method that returns an array of valuethree.
Everything appears correct in the wsdl and in the stub but when I return
what appears to be a valid value (both in the debugger and in
tcpmonitor) the client crashes with a
org.apache.axis2.databinding.ADBException: Unexpected subelement
valueone

 

I have no solution yet but might go back to my two class hierarchy which
was previously working.

 

Jon 



From: Rajendra Kumar Miryala
[mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 9:20 AM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: unexpected subelement exception

 

Hi,

 

Thanks for your response.

 

On further analysis on this problem I find that response xml's getting
from two servers are different (JBOSS and glassfish).

 

In Jboss we are getting namespace for all elements properly and in
glassfish does not provide the namespace, because of which unexpected
sub element exception is raised.

 

 Please help me in getting proper response from glassfish with
namespaces. I had attached the SOAP response messages and wsdl along
with this mail.

 

Let me know if you need anymore information.

 

 

 

 

_

M V Rajendra Kumar / Capgemini India / Hyderabad 
GE-UK
Com1: +040-23125000-25072/ Mobile: 9959811162 www.capgemini.com
http://www.capgemini.com/ 
#5,Software Units Layout,Madhapur,Hyderabad-82
 Together. Free your energies
_

Capgemini is a trading name used by the Capgemini Group of companies
which includes Capgemini Country legal, a company registered in
Country (number x) whose registered office is at insert head
office address.

 



From: Rushikesh Thakkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 4:44 PM
To: axis-user@ws.apache.org
Subject: Re: unexpected subelement exception

 

Can you post relevant parts of WSDL?

-Rushikesh

On Fri, May 30, 2008 at 10:17 AM, Rajendra Kumar Miryala 
[EMAIL PROTECTED] wrote:

Can anybody help on the below issue?

 



From: Rajendra Kumar Miryala [mailto:
[EMAIL PROTECTED] 
Sent: Monday, May 26, 2008 7:58 PM
To: axis-user@ws.apache.org
Subject: unexpected subelement exception

 

Hi,

 

I am getting below exception while receiving response from web-service.

 

This service works fine on JBOS and exception is raised in the Glassfish
(v9.1).

 

I am using Axis2 1.2. 

 

Also using ADB data binding and axis2 code generation tools to generate
the WSDL and stub class.

 

The Element msgID is nillable=true (even with minoccurs = 0). Still
service is expecting the value for msgID.

 

Please help me in resolving the issue.

 

 

Exception:

 

Caused by: java.lang.RuntimeException: Unexpected subelement msgID

at
com.test.client.MyWebServiceStub$SummaryResponse$Factory.parse(MyWebServ
iceStub.java:8704)

at
com.test.client.MyWebServiceStub$GetSummaryResponse$Factory.parse(MyWebS
erviceStub.java:5279)

at
com.test.client.MyWebServiceStub.fromOM(MyWebServiceStub.java:26442)

 

 

XSD definition in WSDL:

 

xs:complexType name=SummaryResponse

xs:sequence

  xs:element name=msgID nillable=true

type=xs:string /

  xs:element name=statusCode
nillable=true

type=xs:string /

/xs:sequence

  /xs:complexType

 

 

Thanks In advance

 

Rajendra

 

 
 
 
 
 
 
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the
intended recipient, you

RE: unexpected subelement exception

2008-06-10 Thread Willard, Jonathan
I believe I am having the same problem which appears to have started
when I created a class hierarchy that looks like this:

 

Class one {

   String valueone ;

 

 

Class two extends class one {

String valuetwo[];

 

Class three extends class two {

String valuethree;

 

Then I created an method that returns an array of valuethree.
Everything appears correct in the wsdl and in the stub but when I return
what appears to be a valid value (both in the debugger and in
tcpmonitor) the client crashes with a
org.apache.axis2.databinding.ADBException: Unexpected subelement
valueone

 

I have no solution yet but might go back to my two class hierarchy which
was previously working.

 

Jon 



From: Rajendra Kumar Miryala
[mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 9:20 AM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: unexpected subelement exception

 

Hi,

 

Thanks for your response.

 

On further analysis on this problem I find that response xml's getting
from two servers are different (JBOSS and glassfish).

 

In Jboss we are getting namespace for all elements properly and in
glassfish does not provide the namespace, because of which unexpected
sub element exception is raised.

 

 Please help me in getting proper response from glassfish with
namespaces. I had attached the SOAP response messages and wsdl along
with this mail.

 

Let me know if you need anymore information.

 

 

 

 

_

M V Rajendra Kumar / Capgemini India / Hyderabad 
GE-UK
Com1: +040-23125000-25072/ Mobile: 9959811162 www.capgemini.com
http://www.capgemini.com/ 
#5,Software Units Layout,Madhapur,Hyderabad-82
 Together. Free your energies
_

Capgemini is a trading name used by the Capgemini Group of companies
which includes Capgemini Country legal, a company registered in
Country (number x) whose registered office is at insert head
office address.

 



From: Rushikesh Thakkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 4:44 PM
To: axis-user@ws.apache.org
Subject: Re: unexpected subelement exception

 

Can you post relevant parts of WSDL?

-Rushikesh

On Fri, May 30, 2008 at 10:17 AM, Rajendra Kumar Miryala 
[EMAIL PROTECTED] wrote:

Can anybody help on the below issue?

 



From: Rajendra Kumar Miryala [mailto:
[EMAIL PROTECTED] 
Sent: Monday, May 26, 2008 7:58 PM
To: axis-user@ws.apache.org
Subject: unexpected subelement exception

 

Hi,

 

I am getting below exception while receiving response from web-service.

 

This service works fine on JBOS and exception is raised in the Glassfish
(v9.1).

 

I am using Axis2 1.2. 

 

Also using ADB data binding and axis2 code generation tools to generate
the WSDL and stub class.

 

The Element msgID is nillable=true (even with minoccurs = 0). Still
service is expecting the value for msgID.

 

Please help me in resolving the issue.

 

 

Exception:

 

Caused by: java.lang.RuntimeException: Unexpected subelement msgID

at
com.test.client.MyWebServiceStub$SummaryResponse$Factory.parse(MyWebServ
iceStub.java:8704)

at
com.test.client.MyWebServiceStub$GetSummaryResponse$Factory.parse(MyWebS
erviceStub.java:5279)

at
com.test.client.MyWebServiceStub.fromOM(MyWebServiceStub.java:26442)

 

 

XSD definition in WSDL:

 

xs:complexType name=SummaryResponse

xs:sequence

  xs:element name=msgID nillable=true

type=xs:string /

  xs:element name=statusCode
nillable=true

type=xs:string /

/xs:sequence

  /xs:complexType

 

 

Thanks In advance

 

Rajendra

 

 
 
 
 
 
 
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message
or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of
this message.
 
 
 
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message
or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of
this message.

 

 
 
 
 
 
 
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is 
intended 

RE: Client Compile Error: JibX/Axis2

2008-05-19 Thread Willard, Jonathan
I've tried this with Axis2 1.4 and I have the same problem.  I must be
doing something wrong. :-(

Jon 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 18, 2008 11:31 PM
To: axis-user@ws.apache.org
Subject: Client Compile Error: JibX/Axis2

Hi all,

I recently posted a question about how to send xml docs and since
learned about Jibx.  I am now trying to use jibx with and get the
following error when building my client clode:

/c/build/Jwsdl.a/src gmake generate.clientclass
/usr/local/packages/Apache/axis2/1.3/bin/wsdl2javant.sh -d jibx
-Ebindingfile com/company/product/ws/ncm/binding.xml -o ../c
lient -uri com/company/product/ws/ncm/NcmService.wsdl -p ncm ; \
Using AXIS2_HOME:   C:/cygwin/usr/local/packages/Apache/axis2/1.3
Using JAVA_HOME:
C:/cygwin/usr/local/packages/sun/jdk/1.6.0/Windows_NT/4.x
Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping
 defined for element {http://NcmService.com/xsd}getLastKnownConfig
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:265)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: No mapping defined for element
{http://NcmService.com/xsd}getLastKnownConfig
at
org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtili
ty.java:1044)
at
org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUti
lity.java:1030)
at
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility
.java:413)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi
on.java:77)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:218)

I built my client code with 
$(AXIS2_HOME)/bin/wsdl2javant.sh -d jibx -Ebindingfile
com/company/product/ws/ncm/binding.xml -o ../client -uri
com/company/product/ws/ncm/NcmService.wsdl -p ncm ; \

I built my server classes using java2wsdl in a ant build file
target name=generate.wsdl depends=compile.service

taskdef name=java2wsdl
classname=org.apache.ws.java2wsdl.Java2WSDLTask
classpathref=axis2.classpath/

java2wsdl className=com.company.product.ws.ncm.NcmService
outputLocation=com/company/product/ws/ncm
targetNamespace=http://NcmService.com/xsd;
schemaTargetNamespace=http://NcmService.com/xsd;

classpath

pathelement path=${axis2.classpath}/

pathelement location=./

/classpath

/java2wsdl


Here is the wsdl generated by java2wsdl:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:ns1=http://ncm.ws.product.company.com/xsd;
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
xmlns:ns0=http://NcmService.com/xsd;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
targetNamespace=http://NcmService.com/xsd;
wsdl:types
xs:schema xmlns:ns=http://NcmService.com/xsd;
targetNamespace=http://NcmService.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:element name=getLastKnownConfig
xs:complexType
xs:sequence
xs:element name=ipAddresses
maxOccurs=unbounded minOccurs=0 type=ns1:NcmService$NcmRequestData
nillable=true/
/xs:sequence
/xs:complexType
/xs:element
xs:element name=getLastKnownConfigResponse
xs:complexType
xs:sequence
xs:element name=return maxOccurs=unbounded
minOccurs=0 type=ns1:NcmService$NcmResponseData nillable=true/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema
xs:schema xmlns:ax21=http://ncm.ws.product.company.com/xsd;
targetNamespace=http://ncm.ws.product.company.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:complexType name=NcmService$NcmRequestData
xs:sequence
xs:element name=strIpAddress minOccurs=0
type=xs:string nillable=true/
/xs:sequence
/xs:complexType
xs:complexType name=NcmService$NcmResponseData
xs:sequence
xs:element name=iError minOccurs=0
type=xs:int/
xs:element name=strConfiruationData minOccurs=0
type=xs:string 

Is anyone successfully using Jibx?

2008-05-19 Thread Willard, Jonathan
Is anyone successfully using Jibx?

 

I can't seem to get beyond 

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping

 defined for element {urn:NcmService}getLastKnownConfig

running wsdl2java

 

using wsdl generated from java code.  

 

I downloaded the jibxtools thinking that I could generate a schema from
my binding but when I run that I get the following.  I should have the
latest versions of Axis2 1.4 and Jibx/jibxTools

 

/c/build/Jwsdl.a/src java -jar c:/jibx/lib/jibx-genschema.jar
com/company/product/ws/ncm/binding.xml

Running schema generator version 0.2

Error: Static serializer method org.jibx.runtime.Utility.serializeByte
not found

Error: Static deserializer method org.jibx.runtime.Utility.parseByte not
found

Error: Static serializer method org.jibx.runtime.Utility.serializeChar
not found

Error: Static deserializer method org.jibx.runtime.Utility.parseChar not
found

Error: Static serializer method org.jibx.runtime.Utility.serializeDouble
not found

Error: Static deserializer method org.jibx.runtime.Utility.parseDouble
not found

 

Jon

 



Axis2 WSDL2Java main java.lang.NoClassDefFoundError

2007-11-07 Thread Willard, Jonathan
/c/Axis2/bin/wsdl2java.sh -uri com.ab.ws.NcmProvider.wsdl

 Using AXIS2_HOME:   /c/Axis2

 Using JAVA_HOME:   C:\Java\jdk1.6.0_02

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2Java

 

How do I resolve this?  I am new to Axis2. I looked in the archive and
did not see an answer. I also get

 

/c/build/WebServices/src/build /c/Axis2/bin/wsdl2java.sh

 Using AXIS2_HOME:   /c/Axis2

 Using JAVA_HOME:   C:\Java\jdk1.6.0_02

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2Java

 

I think my classpath is right because I added set -x to the shell file.

 

+ 'C:\Java\jdk1.6.0_02/bin/java' -classpath
'com.ab.ws.NcmProvider.wsdl:-uri:org.apache.axis2.wsdl.WSDL2Java:/c

/Axis2:C:\Java\jdk1.6.0_02/lib/tools.jar::/c/Axis2/lib/XmlSchema-1.3.2.j
ar:/c/Axis2/lib/activation-1.1.jar:/c/Axis2/lib/

annogen-0.1.0.jar:/c/Axis2/lib/axiom-api-1.2.5.jar:/c/Axis2/lib/axiom-do
m-1.2.5.jar:/c/Axis2/lib/axiom-impl-1.2.5.jar:/c

/Axis2/lib/axis2-adb-1.3.jar:/c/Axis2/lib/axis2-adb-codegen-1.3.jar:/c/A
xis2/lib/axis2-ant-plugin-1.3.jar:/c/Axis2/lib/a

xis2-clustering-1.3.jar:/c/Axis2/lib/axis2-codegen-1.3.jar:/c/Axis2/lib/
axis2-fastinfoset-1.3.jar:/c/Axis2/lib/axis2-jav

a2wsdl-1.3.jar:/c/Axis2/lib/axis2-jaxbri-1.3.jar:/c/Axis2/lib/axis2-jaxw
s-1.3.jar:/c/Axis2/lib/axis2-jaxws-api-1.3.jar:/

c/Axis2/lib/axis2-jibx-1.3.jar:/c/Axis2/lib/axis2-json-1.3.jar:/c/Axis2/
lib/axis2-jws-api-1.3.jar:/c/Axis2/lib/axis2-ker

nel-1.3.jar:/c/Axis2/lib/axis2-metadata-1.3.jar:/c/Axis2/lib/axis2-mtomp
olicy-1.3.jar:/c/Axis2/lib/axis2-saaj-1.3.jar:/c

/Axis2/lib/axis2-saaj-api-1.3.jar:/c/Axis2/lib/axis2-spring-1.3.jar:/c/A
xis2/lib/axis2-xmlbeans-1.3.jar:/c/Axis2/lib/bac

kport-util-concurrent-2.2.jar:/c/Axis2/lib/commons-codec-1.3.jar:/c/Axis
2/lib/commons-fileupload-1.1.1.jar:/c/Axis2/lib/

commons-httpclient-3.0.1.jar:/c/Axis2/lib/commons-io-1.2.jar:/c/Axis2/li
b/commons-logging-1.1.jar:/c/Axis2/lib/geronimo-

annotation_1.0_spec-1.1.jar:/c/Axis2/lib/geronimo-jms_1.1_spec-1.1.jar:/
c/Axis2/lib/httpcore-4.0-alpha5.jar:/c/Axis2/lib

/httpcore-nio-4.0-alpha5.jar:/c/Axis2/lib/httpcore-niossl-4.0-alpha5.jar
:/c/Axis2/lib/jalopy-1.5rc3.jar:/c/Axis2/lib/jax

b-api-2.0.jar:/c/Axis2/lib/jaxb-impl-2.0.5.jar:/c/Axis2/lib/jaxb-xjc-2.0
.5.jar:/c/Axis2/lib/jaxen-1.1.1.jar:/c/Axis2/lib

/jettison-1.0-RC1.jar:/c/Axis2/lib/jibx-bind-1.1.5.jar:/c/Axis2/lib/jibx
-run-1.1.5.jar:/c/Axis2/lib/juli-6.0.10.jar:/c/A

xis2/lib/log4j-1.2.14.jar:/c/Axis2/lib/mail-1.4.jar:/c/Axis2/lib/mex-imp
l-1.3.jar:/c/Axis2/lib/neethi-2.0.2.jar:/c/Axis2

/lib/soapmonitor-1.3.jar:/c/Axis2/lib/stax-api-1.0.1.jar:/c/Axis2/lib/tr
ibes-6.0.10.jar:/c/Axis2/lib/woden-1.0-incubatin

g-M7b.jar:/c/Axis2/lib/wsdl4j-1.6.2.jar:/c/Axis2/lib/wstx-asl-3.2.1.jar:
/c/Axis2/lib/xalan-2.7.0.jar:/c/Axis2/lib/xbean-

2.2.0.jar:/c/Axis2/lib/xercesImpl-2.8.1.jar:/c/Axis2/lib/xml-apis-1.3.03
.jar:' -Daxis2.xml=/c/Axis2/conf/axis2.xml -Daxi

s2.repo=/c/Axis2/repository org.apache.axis2.wsdl.WSDL2Java -uri
com.ab.ws.NcmProvider.wsdl

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/axis2/wsdl/WSDL2Java

 

Jon 

 



Re: Newbie needs a few pointers .. Command line Usage / Eclipse

2007-07-24 Thread Willard
)
 at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
 at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:419)
 at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
 at
org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) 


 at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
 at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 


 at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 


 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.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
 at
org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run
(Main.java:977)
 at
org.eclipse.core.launcher.Main.main(Main.java:952)


 2007/7/23, Lahiru Sandakith [EMAIL PROTECTED]:
 
 
  On 7/21/07, albert quinn  [EMAIL PROTECTED] wrote:
 Hi again, Willard ! :
  
 No, I haven't tried the Eclipse plugin without packages 
because I
   need them. But when I've tried the plugin with packages, 
sometimes it

   worked, sometimes it didn't work, but then, it didn't show me any
   error message at all, so i've moved to Ant which seems to work
   properly. Ant seems to be the better choice for me!, almost as 
easy as

   the plugin but it works!!.
 
  Could you please log a JIRA with the exact scenario on this, I am 
trying

out
  the Axis2 Service Archiver
  located @
 
http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/axis2/tools/1_2/axis2-eclipse-service-archiver-wizard-1.2.zip 


  and did not seeing any random behavior.
 
  Thanks
 
  Lahiru
 
  
   2007/7/21, Willard [EMAIL PROTECTED]:
Hi Albert ...
Thanks for the quick note ... did you ever try using the eclipse
plugin
w/o declaring a package?  It worked for me then but of course, I
want to
create a package so its not a long term solution.
   
I will check out ant!
   
Thx.
   
albert quinn wrote:
  Hi Willard !! :

  I'm a newbie too and I've faced the same problem with the 
Axis 2
 Archiver Eclipse Plugin too. I can tell you what I've done 
: I've

used
 Ant, yeah! u're not familiar with Ant, I wasn't familiar 
with it

but
 it is very very very easy and straightforward, easier than
makefiles
 and easier than command line versions. So take a look at 
the Axis

2
 WeatherService sample, and look at the build.xml file. In 
a few

 seconds u'll be familiar with Ant.

  Sorry... I've no recommendations for the great quick start 
guide,

 but call me if u find one, plase!!!.



 2007/7/21, Willard  [EMAIL PROTECTED]:
 Hi I am new to Axis2 and I've gotten a few samples 
running.  I am

  trying
 to build a POJO Weather service (both Client and Server).  
I was

able
  to
 get the Eclipse plugin working as long as I do not name my
package.
 Once I name the package the plugin hangs in the Archiver as
reported
  by
 other users.

 Can someone point me to instructions for using the command 
line

  versions
 of the tools?  I am not familiar with Ant (makefile guy).  
Since

the
 Eclipse plugin is broken I need to learn to use the 
command line
 versions and I've found the docs to be a bit light on that 
...


 Also I read two books on WebServices which gives all the 
workings

in
 great detail but I have yet to find a GREAT quick start 
guide for

 actually using this stuff ... any recommendations?

 Maybe I've not seen the right doc ...

 Best,

 Jon



 
-
 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]
   
   
  
  
 
-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  --
 
  Thanks
  Lahiru Sandakith
 
  http

Cannot find Service, How do I fix?

2007-07-24 Thread Willard, Jonathan
Hi all,

I have copied the PoJo Weather Sample into my own directory and build it
with ant.  I modified the service so that my package is
server.WeatherService and client.WeatherService and the build structure
is located in my Eclipse workspace area.  I have attempted to modify the
services.xml file so it is correct.  

Ant appears to have built it successfully and I copied
buld/WeatherService to my webapps/axis2/WEB_INF/services as instructed
in the quick start guide. 

I also noticed that the ant build seemed to create a directory under my
eclipse area like this:

Repository
|
-- services
   |
   -- WeatherService.aar

I believe I need to copy that .aar into my tomcat area somewhere ... can
anyone advise?


When I try to query the service via the web admin page I get: 

Faulty Services
c:\install\tomcat\webapps\axis2\WEB-INF\services\WeatherService
...
by: org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: server.WeatherService at
org.apache.axis2.deployment.S
erviceBuilder.populateService(ServiceBuilder.java:350) ... 39 more
Caused by: java.lang.ClassNotFoundException: server.WeatherService at
java.net.URLClassLoader$1.run(URLClassLoader.java:200) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:247) at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSc
hemaGenerator.java:114) at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:305)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde
r.java:343) ... 39 more

Thanks,

Jon


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



Newbie needs a few pointers .. Command line Usage / Eclipse

2007-07-21 Thread Willard
Hi I am new to Axis2 and I've gotten a few samples running.  I am trying 
to build a POJO Weather service (both Client and Server).  I was able to 
get the Eclipse plugin working as long as I do not name my package.  
Once I name the package the plugin hangs in the Archiver as reported by 
other users.


Can someone point me to instructions for using the command line versions 
of the tools?  I am not familiar with Ant (makefile guy).  Since the 
Eclipse plugin is broken I need to learn to use the command line 
versions and I've found the docs to be a bit light on that ...


Also I read two books on WebServices which gives all the workings in 
great detail but I have yet to find a GREAT quick start guide for 
actually using this stuff ... any recommendations?


Maybe I've not seen the right doc ... 


Best,

Jon


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



Re: Newbie needs a few pointers .. Command line Usage / Eclipse

2007-07-21 Thread Willard

Hi Albert ...
Thanks for the quick note ... did you ever try using the eclipse plugin 
w/o declaring a package?  It worked for me then but of course, I want to 
create a package so its not a long term solution.


I will check out ant!

Thx.

albert quinn wrote:

 Hi Willard !! :

 I'm a newbie too and I've faced the same problem with the Axis 2
Archiver Eclipse Plugin too. I can tell you what I've done : I've used
Ant, yeah! u're not familiar with Ant, I wasn't familiar with it but
it is very very very easy and straightforward, easier than makefiles
and easier than command line versions. So take a look at the Axis 2
WeatherService sample, and look at the build.xml file. In a few
seconds u'll be familiar with Ant.

 Sorry... I've no recommendations for the great quick start guide,
but call me if u find one, plase!!!.



2007/7/21, Willard [EMAIL PROTECTED]:

Hi I am new to Axis2 and I've gotten a few samples running.  I am trying
to build a POJO Weather service (both Client and Server).  I was able to
get the Eclipse plugin working as long as I do not name my package.
Once I name the package the plugin hangs in the Archiver as reported by
other users.

Can someone point me to instructions for using the command line versions
of the tools?  I am not familiar with Ant (makefile guy).  Since the
Eclipse plugin is broken I need to learn to use the command line
versions and I've found the docs to be a bit light on that ...

Also I read two books on WebServices which gives all the workings in
great detail but I have yet to find a GREAT quick start guide for
actually using this stuff ... any recommendations?

Maybe I've not seen the right doc ...

Best,

Jon


-
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: Newbie needs a few pointers .. Command line Usage / Eclipse

2007-07-21 Thread Willard




Hi Albert et al...

I am getting this:
/c/Users/willard/eclipse/Weather
ant
Exception
in
thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher

And I've down loaded the latest ant and have skimmed the faq and manual
... The manual says that cygwin users should have no trouble ... I
export ANT_HOME and that did not help ...I am trying to build my own
sample outside of the Axis2 pojoguide because I need to integrate this
into an existing cygwin build structure. ... Any ant pointers are
appreciated.


albert quinn wrote:
Hi again, Willard ! :
  
  
No, I haven't tried the Eclipse plugin without packages because I
  
need them. But when I've tried the plugin with packages, sometimes it
  
worked, sometimes it didn't work, but then, it didn't show me any
  
error message at all, so i've moved to Ant which seems to work
  
properly. Ant seems to be the better choice for me!, almost as easy as
  
the plugin but it works!!.
  
  
2007/7/21, Willard [EMAIL PROTECTED]:
  
  Hi Albert ...

Thanks for the quick note ... did you ever try using the eclipse plugin

w/o declaring a package? It worked for me then but of course, I want
to

create a package so its not a long term solution.


I will check out ant!


Thx.


albert quinn wrote:

 Hi Willard !! :



 I'm a newbie too and I've faced the same problem with the Axis 2

 Archiver Eclipse Plugin too. I can tell you what I've done : I've
used

 Ant, yeah! u're not familiar with Ant, I wasn't familiar with it
but

 it is very very very easy and straightforward, easier than
makefiles

 and easier than command line versions. So take a look at the Axis
2

 WeatherService sample, and look at the "build.xml" file. In a few

 seconds u'll be familiar with Ant.



 Sorry... I've no recommendations for the great quick start guide,

 but call me if u find one, plase!!!.




    


 2007/7/21, Willard [EMAIL PROTECTED]:

 Hi I am new to Axis2 and I've gotten a few samples running. I
am trying

 to build a POJO Weather service (both Client and Server). I
was able to

 get the Eclipse plugin working as long as I do not name my
package.

 Once I name the package the plugin hangs in the Archiver as
reported by

 other users.



 Can someone point me to instructions for using the command
line versions

 of the tools? I am not familiar with Ant (makefile guy).
Since the

 Eclipse plugin is broken I need to learn to use the command
line

 versions and I've found the docs to be a bit light on that ...



 Also I read two books on WebServices which gives all the
workings in

 great detail but I have yet to find a GREAT quick start guide
for

 actually using this stuff ... any recommendations?



 Maybe I've not seen the right doc ...



 Best,



 Jon






-

 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]



  
  
-
  
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: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/

2007-07-02 Thread Willard




Martin,

Thanks for your help. I got it working! I was confused about what the
directory structure needed to be. Once I built the axis2.war and
placed it under C:\Tomcat6\webapps it all started working.

Anyway, thank you very much for all of your assistance.

Best,

Jon


Martin Gainty wrote:

  
  
  
  Hi Jon-
  
  1st) do you'llhave jsp-api.jar if
so which version?
  myjsp-api.jar has a date timestamp
of04/14/2006 and is 50,501 and is located in %CATALINA_HOME%\common\lib
  
  2nd) please provide the wsdl 
Thanks
Martin
  This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
Willard 
To:
axis-user@ws.apache.org 
Sent:
Sunday, July 01, 2007 12:29 PM
Subject:
Re: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


Hi Martin,

Sorry for my confusion but jetspeed appears to be a portal ... I am
trying to use Axis / WebService with Tomcat 6. Can you clarify for
me? I apologize for being such a newbie ... Alos, jetspeed says it is
compatible with


  Tomcat 5.0.x 
  Tomcat 5.5.x 

but I have Tomcat6


Best,

Jon


Martin Gainty wrote:

  
  Good Evening Willard
  
  please verify your jsp-api.jar
is fairly recent (I was able to d/l from jetspeed2.1 site)
  http://portals.apache.org/jetspeed-2/download.html
  
  04/14/2006 02:09 PM
50,501 jsp-api.jar
  
  If youcan attachthe WSDL I'll
try to re-producethat errorhere...
  
HTH
M--
  This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
Willard 
To:
axis-user@ws.apache.org 
Sent:
Saturday, June 30, 2007 6:15 PM
Subject:
Re: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


Thanks Martin,

I have tomcat 6.0.1.3 and I do not have a common/lib, just a /lib under
tomcat. I added my C:\Tomcat6\lib\jsp-api.jar to my classpath,
rebooted, verified and it still does not work. Do you know if
tomcat6.0 uses the Windows env var for CLASSPATH? I rebooted because
tomcat is running as a service and I know that there are issues with
SCM picking up env changes.

Any other ideas?

Best,

Jon


Martin Gainty wrote:

  
  
  known bug
  add
  "$TOMCAT_HOME\common\lib\jsp-api.jar"
  to classpath
  
  http://mail-archives.apache.org/mod_mbox/ws-axis-user/200704.mbox/[EMAIL PROTECTED]
  
  HTH
  M--
  This email message and any files transmitted with it
contain confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
        Willard 
To:
axis-user@ws.apache.org 
Sent:
Saturday, June 30, 2007 4:02 PM
Subject:
HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


New to axis ... 

Trying to access http://127.0.0.1:8080/axis2-web/
while running Tomcat6.0.1.3. I have placed the Axis2 war in the tomcat
webapps as specified. The tomcat Manager page is fine. Any ideas?


type Exception report
message 
description The server encountered an
internal error () that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.axis2.Constants resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.axis2.context.ConfigurationContext resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.axis2.description.Parameter resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.apache.axis2.transport.http.AxisServlet resolves to a package

An error occurred at line: 12 

Re: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/

2007-07-01 Thread Willard




Hi Martin,

Sorry for my confusion but jetspeed appears to be a portal ... I am
trying to use Axis / WebService with Tomcat 6. Can you clarify for
me? I apologize for being such a newbie ... Alos, jetspeed says it is
compatible with


  Tomcat 5.0.x
  Tomcat 5.5.x

but I have Tomcat6


Best,

Jon


Martin Gainty wrote:

  
  
  
  Good Evening Willard
  
  please verify your jsp-api.jar is
fairly recent (I was able to d/l from jetspeed2.1 site)
  http://portals.apache.org/jetspeed-2/download.html
  
  04/14/2006 02:09 PM
50,501 jsp-api.jar
  
  If youcan attachthe WSDL I'll try
to re-producethat errorhere...
  
HTH
M--
  This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
Willard 
To:
axis-user@ws.apache.org 
Sent:
Saturday, June 30, 2007 6:15 PM
Subject:
Re: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


Thanks Martin,

I have tomcat 6.0.1.3 and I do not have a common/lib, just a /lib under
tomcat. I added my C:\Tomcat6\lib\jsp-api.jar to my classpath,
rebooted, verified and it still does not work. Do you know if
tomcat6.0 uses the Windows env var for CLASSPATH? I rebooted because
tomcat is running as a service and I know that there are issues with
SCM picking up env changes.

Any other ideas?

Best,

Jon


Martin Gainty wrote:

  
  
  known bug
  add
  "$TOMCAT_HOME\common\lib\jsp-api.jar"
  to classpath
  
  http://mail-archives.apache.org/mod_mbox/ws-axis-user/200704.mbox/[EMAIL PROTECTED]
  
  HTH
  M--
  This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
    Willard 
To:
axis-user@ws.apache.org 
Sent:
Saturday, June 30, 2007 4:02 PM
Subject:
HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


New to axis ... 

Trying to access http://127.0.0.1:8080/axis2-web/
while running Tomcat6.0.1.3. I have placed the Axis2 war in the tomcat
webapps as specified. The tomcat Manager page is fine. Any ideas?


type Exception report
message 
description The server encountered an internal
error () that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.axis2.Constants resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.axis2.context.ConfigurationContext resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.axis2.description.Parameter resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.apache.axis2.transport.http.AxisServlet resolves to a package

An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();


An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();

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

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

HTTP Status 500 from http://127.0.0.1:8080/axis2-web/

2007-06-30 Thread Willard




New to axis ... 

Trying to access http://127.0.0.1:8080/axis2-web/ while running
Tomcat6.0.1.3. I have placed the Axis2 war in the tomcat webapps as
specified. The tomcat Manager page is fine. Any ideas?


type Exception report
message 
description The server encountered an internal error ()
that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.axis2.Constants resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.axis2.context.ConfigurationContext resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.axis2.description.Parameter resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.apache.axis2.transport.http.AxisServlet resolves to a package

An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();


An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();




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



Re: HTTP Status 500 from http://127.0.0.1:8080/axis2-web/

2007-06-30 Thread Willard




Thanks Martin,

I have tomcat 6.0.1.3 and I do not have a common/lib, just a /lib under
tomcat. I added my C:\Tomcat6\lib\jsp-api.jar to my classpath,
rebooted, verified and it still does not work. Do you know if
tomcat6.0 uses the Windows env var for CLASSPATH? I rebooted because
tomcat is running as a service and I know that there are issues with
SCM picking up env changes.

Any other ideas?

Best,

Jon


Martin Gainty wrote:

  
  
  
  
  known bug
  add
  "$TOMCAT_HOME\common\lib\jsp-api.jar"
  to classpath
  
  http://mail-archives.apache.org/mod_mbox/ws-axis-user/200704.mbox/[EMAIL PROTECTED]
  
  HTH
  M--
  This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
  
  
-
Original Message - 
From:
    Willard 
To:
axis-user@ws.apache.org 
Sent:
Saturday, June 30, 2007 4:02 PM
Subject:
HTTP Status 500 from http://127.0.0.1:8080/axis2-web/


New to axis ... 

Trying to access http://127.0.0.1:8080/axis2-web/
while running Tomcat6.0.1.3. I have placed the Axis2 war in the tomcat
webapps as specified. The tomcat Manager page is fine. Any ideas?


type Exception report
message 
description The server encountered an internal error
() that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.axis2.Constants resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.axis2.context.ConfigurationContext resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.axis2.description.Parameter resolves to a package

An error occurred at line: 9 in the generated java file
Only a type can be imported. org.apache.axis2.transport.http.AxisServlet resolves to a package

An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();


An error occurred at line: 12 in the jsp file: /include/httpbase.jsp
ConfigurationContext cannot be resolved to a type
9: 
10:   public void jspInit() {
11: ServletContext context = this.getServletConfig().getServletContext();
12: ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
13: Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
14: if (parameter != null) {
15:   frontendHostUrl = (String) parameter.getValue();

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



Java2Wsdl Axis2 Sampels NoClassDefFoundError

2007-06-28 Thread Willard




Hi, I am using Axis2 attempting to follow the
instructions at
http://ws.apache.org/axis2/1_2/quickstartguide.html#ready to build the
QuickStart sample. I have compiled the file as you can see below

C:\axis2-1.2\samples\quickstart\srcdir
samples\quickstart\service\pojo
 Directory of
C:\axis2-1.2\samples\quickstart\src\samples\quickstart\service\pojo

06/26/2007 01:36 PM 879 StockQuoteService.class
06/26/2007 11:19 AM 470 StockQuoteService.java

But when I attempt to run java2wsdl I receive a NoClassDefFoundError

C:\axis2-1.2\samples\quickstart\src%AXIS2_HOME%/bin/java2wsdl -cp .
-cn samples.quickstart.service.pojo.StockQuoteService -of
StockQuoteService.wsdl
Using AXIS2_HOME: C:\axis2-1.2
Using JAVA_HOME: C:\Java\jre1.6.0
Exception in thread "main" java.lang.NoClassDefFoundError:
samples/quickstart/service/pojo/StockQuoteService (wrong name:
quickstart/service
/pojo/StockQuoteService)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$000(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:63)
 at
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:82)
 at
org.apache.ws.java2wsdl.Java2WSDLBuilder.getSchemaTargetNamespace(Java2WSDLBuilder.java:56)
 at
org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:152)
 at
org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:56)
 at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:29)

AXIS2_HOME=C:\axis2-1.2 which is correct. I apologize if this is
simple ... I am new to Axis and do not see the problem. I have
searched the archive but could not find a solution to this problem.

Thanks,




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