ArrayStoreException: org.apache.axis.encoding.ser.ArrayDeserializer$ArrayListExtension

2009-10-22 Thread Frank Otto

Hi,

I use axis 1.4 and get following exception:

java.lang.ArrayStoreException: 
org.apache.axis.encoding.ser.ArrayDeserializer$ArrayListExtension


I have one Webservice with 2 methods, which returns an array of a bean. 
For example:



public MyBean1[] getMyBeans1();
public MyBean2[] getMyBeans2();


If I call the getMyBeans2() method after getMyBean1(), getMyBeans2() 
throws the exception. On getMyBean1() after getMyBean2(), getMyBean1() 
throws the exception.


I think there is an error in array deserialisation.

The two method calls will be work, if I reinitialise my Webservice after 
the first method.


Has someone an idea?


kind regards,

Frank



Re: Help with wsdl2java

2009-03-31 Thread Frank Vyncke
On 31/03/2009 09:48, "Andreas Veithen"  wrote:

> Frank,
> 
> MTOM is a _transparent_ way of optimizing messages. Why does the WSDL
> explicitly reference xop:Include?

That is a very good question... And not one I can answer immediatly.

I am 'new' to MTOM, that is, I learned it about 2 months ago, and I learned
it through gSOAP. At the level of gSOAP (in C++), it is not transparent... I
think I see at that level the 'processed' message with it's attachments.

What you are saying is that the WSDL should in fact contain a binary blob
there, with mime type attribute, instead of the xop:Include object.

Makes sense, but then I have to investigate how I can make such a setup with
gSAOP (where I start from C++ classes...)

Thanks for the input

Frank
> 
> Andreas
> 
> On Mon, Mar 30, 2009 at 18:18, Frank Vyncke  wrote:
>> I,
>> 
>> Am starting to develop a 'client' for a gSOAP based server, using MTOM
>> attachments.
>> 
>> I have a wsdl file, but when I try to compile the wsdl file, I get an
>> exception with the following message:
>> 
>> Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
>> the element {http://www.w3.org/2004/08/xop/include}Include from the parent
>> schema http://www.genivia.com/schemas/mtom_stream_test.xsd
>> 
>> Can anyone tell me where this error comes from, because the wsdl file does
>> import the http://www.w3.org/2004/08/xop/include schema correctly (I think,
>> there is no way I can check if it really imported the schema or not).
>> 
>> Thanks
>> Frank
>> 
>> 



Help with wsdl2java

2009-03-30 Thread Frank Vyncke
I,

Am starting to develop a 'client' for a gSOAP based server, using MTOM
attachments.

I have a wsdl file, but when I try to compile the wsdl file, I get an
exception with the following message:

Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
the element {http://www.w3.org/2004/08/xop/include}Include from the parent
schema http://www.genivia.com/schemas/mtom_stream_test.xsd

Can anyone tell me where this error comes from, because the wsdl file does
import the http://www.w3.org/2004/08/xop/include schema correctly (I think,
there is no way I can check if it really imported the schema or not).

Thanks
Frank



[Ann] Meet-Up For Selenium, soapUI, HTMLUnit, TestMaker

2008-09-23 Thread Frank Cohen
Frank Cohen is organizing a meet-up for open source test tools:  
Selenium, soapUI, HMTLUnit, TestMaker and others. The first free event  
is in Anaheim, California next week, followed by San Francisco,  
Chicago, New York, and London.


Java developers, QA testers, and IT managers are challenged to rapidly  
build and test Ajax, Service Oriented Architecture (SOA,) and Rich  
Internet Applications (RIA) in a time when schedules are short,  
budgets are tight, standards are few, and much of this is new  
technology. I have been pushing for the open source test platforms to  
come together in a way that delivers inexpensive, immediate value to  
organizations. Businesses like AMD, Ford, and The Jackson Laboratory  
are success stories for using open source test software as a more  
affordable and flexible option to the traditional test vendors.


The meet-up is a free half-day Workshop to talk about what can be done  
with Selenium, soapUI, TestGen4Web, HTMLUnit, TestMaker and other open- 
source test tools. We will discuss methodology, tools, and techniques.  
It is ideal for developer, testers, IT managers, and CIOs/CTOs.


Details for the meeting are at http://workshop.pushtotest.com.

-Frank Cohen

--
Frank Cohen, http://www.PushToTest.com, phone 408 871 0122
PushToTest, the open-source test automation company




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



soapUI and Apache Axis

2008-09-23 Thread Frank Cohen

Hi Everyone:

Any opinions about using soapUI with Axis?

-Frank





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



Axis2 Transports and support for administrative commands?

2008-06-10 Thread Frank, Tim
I know you can retrieve wsdl for an Axis2 service by using the http
transport and appending ?wsdl to the URL. Similarly you can retrieve
schema by appending ?xsd and you can get a list of registered Axis
services with the URL ending in services/.

Do, or should, the other supplied Axis transport mechanisms (JMS, mail,
etc) have the ability to retrieve WSDL, Schema or lists of registered
Axis services like the HTTP transport does? 

Tim Frank

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



[Ann] Open Source Test Workshop, June 12, 2008

2008-06-06 Thread Frank Cohen

FREE OPEN SOURCE TEST WORKSHOP
Cupertino, California, USA

Featuring PushToTest, soapUI, Selenium, TestGen4Web

Software developers, QA testers, and IT managers are challenged to  
rapidly test Web service, Service Oriented Architecture (SOA,) Ajax,  
REST, and Web applications in a time when schedules are short, budgets  
are tight, and much of this is new technology! Find out why Open  
Source Test Tools (OSTT) emerge at AMD, Ford, and The Jackson  
Laboratory as a more affordable and flexible option to the traditional  
test vendors.


Learn how you can leverage open-source testing tools (soapUI,  
PushToTest, Selenium, TestGen4Web, HTMLUnit) for functional testing,  
load and performance testing, and business service monitoring, with  
more flexibility than traditional solutions provide.


Register Now For The FREE workshop

Thursday, June 12, 2008
1:00 pm to 5:00 pm
Hilton Garden Inn
Cupertino, California

Register now at:
http://workshop.pushtotest.com

Frank Cohen, the leading authority for testing and optimizing software  
developed with SOAP, Web, SOA, AJAX and REST designs and  
implementations, and author of FastSOA, will lead the seminar.


Agenda

1:00 pm - 1:30 pm, The why, what, and how of Open-Source Test tools  
vs. traditional tools


1:30 pm - 2:15 pm, Web browser application testing using record/ 
playback and scripting tools


2:15 pm - 3:15 pm, Identifying and solving performance bottlenecks in  
Rich Internet Applications (Web 2.0 and Ajax)


3:15 pm - 4:00 pm, Service Oriented Architecture (SOA) testing,  
including test governance


4:00 pm - 4:30 pm, How to understand and analyze test results

4:30 pm - 5:00 pm, Questions and Answers

Every attendee will receive a free CD with fully working copies of the  
Open Source Test tools, including Selenium, soapUI, PushToTest,  
TestGen4Web, and many others taught in this class.


Guarantee Your Seat! Register now at:

http://workshop.pushtotest.com

-Frank


--
Frank Cohen, http://www.PushToTest.com, phone 408 871 0122
PushToTest, the open-source test automation company




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



[ANN] eviware and PushToTest Announced New Partnership

2008-02-04 Thread Frank Cohen

Hi Axis-istas!

PushToTest and eviware announced a new partnership to deliver highly  
integrated open-source test automation tools and platforms for SOA  
and Web service projects.


The press release is found below in this message. You may also  
download the press release at:

http://downloads.pushtotest.com/news/Eviware_PushToTest_PressRelease.pdf

Additionally, PushToTest launched a new section of its Web site  
devoted to soapUI users at:

http://soapui.pushtotest.com

Feel free to contact me with questions. Thanks.

-Frank

--

Press Release copy:

FOR IMMEDIATE RELEASE
For more information contact:

Niclas Reimertz, Eviware, Sweden, +46 70 666 5921, [EMAIL PROTECTED]
Frank Cohen, PushToTest, California, USA, (408) 871-0122,  
[EMAIL PROTECTED]


Eviware™ and PushToTest™ Announce Partnership To Deliver Open Source  
Test Automation Solutions for Web Services


Users Enjoy Greater Integration Between soapUI And PushToTest

February 4, 2008 – CAMPBELL, CALIFORNIA, USA – Eviware, the world  
leader in open-source Web service soapUI test automation tools, and  
PushToTest, the world leader in open-source enterprise Web  
application, Web service, Ajax, and Service Oriented Architecture  
(SOA) test automation solutions announced a far-ranging partnership  
to benefit Information Technology (IT) organizations that are  
challenged to surface performance and scalability issues with load  
and performance test automation, regression test automation, and  
business service monitoring solutions. In a clear win for customers  
and users, Eviware and PushToTest will build advanced integration  
between Eviware soapUI Pro and PushToTest and to sell and support  
test automation solutions in the USA and Canadian marketplaces.


InfoWorld rated PushToTest and soapUI to be "excellent" individually  
and PushToTest customers are looking for outstanding integration! For  
instance, many mid-size and large enterprises use soapUI to read Web  
Service Description Language (WSDL) documents and in a few clicks of  
the mouse write a multi-step test suite. Using PushToTest these tests  
run in a test lab of 10 servers to generate 2,000 concurrently  
running test suites. PushToTest reports then show an SOA  
environment's scalability index to help plan for hardware purchases  
and network bandwidth needs.


Under terms of the partnership the Eviware and PushToTest agreement  
delivers the following to customers and users:


Eviware and PushToTest to build advanced integration and offer  
integrated Web Service test automation. While PushToTest version 5.0  
currently integrates Eviware soapUI 2, Eviware and PushToTest will  
build deeper integration to provide support for Mock Services  
(virtualized services for testing,) advanced reporting for soapUI  
test suites, and Repository and Scheduler functions for soapUI test  
suites into upcoming product releases.


PushToTest to build Eclipse plug-in with advanced integration with  
soapUI Eclipse Plug-in.


Enterprises are challenged to surface performance and load issues,  
regression and functional issues, and to accomplish business service  
monitoring in a Service Oriented Architecture (SOA) environment.  
Eviware soapUI is the recognized open-source Web service test suite  
development tool. soapUI users easily work with WSDL and SOAP-based  
Web services in an entirely graphical environment. soapUI features  
test suite creation and debugging. For instance, soapUI provides easy  
Mock Service creation to build virtualized services for test  
development where the real service is unavailable. PushToTest  
operates soapUI tests in a distributed test environment and provides  
hundreds of reports that enable users to do root cause analysis and  
remediation of SOA performance and regression problems. PushToTest  
repurposes soapUI tests into Business Service Monitors (BSM) with no  
additional programming.


About Eviware

Eviware is the company behind soapUI, the popular Open Source Web  
Service testing tool. soapUI offers extensive functionality for Web  
Service inspection, functional and other testing, as well as load  
testing and Web Service mocking. soapUI aspires to be a tool that  
makes life easier for all Web Service developers, testers and project  
managers. soapUI is distributed under a LGPL license and with 10 000  
weekly downloads soapUI is the most used Web Service testing tool in  
the world. soapUI Pro is the Professional Version offering support as  
well as productivity enhancements and unique functionality such as  
WSDL Test Coverage. Details at http://www.soapui.org or http:// 
www.eviware.com.


About PushToTest

PushToTest is a professional open-source software publisher of test  
automation tools, methodology, and training to medium and large sized  
enterprises, including The Jackson Laboratory, General Motors, TIBCO,  
and Wynn Las Vegas. PushToTest's mission is to provide flexible open- 
source test automation solu

AXIS 1.4 SoapEnvelope deserialization error

2008-01-16 Thread Frank Zhou
Hi All, 

I am using AXIS 1.4 for my web service needs. I am now
encounting the following error when I try to send an
XML over HTTP:
 
I have a valid XML message as a string, the XML
message defines a namespace at the root element like
this:

  xmlns:ns1="somthing"

Let me assume this xml string as xmltext, now I create
a soap envelope with this XML message as body, the
problem occurs when I try to deserialize it using
soapEnvelope.toString() or soapEnvelope.getAsString().
I notice that for every local element in the original
xml such as this:

   xxx,

in the output string, I get the the following:

   xxx

That is, there is an extra attribute with empty value.
This causes problems for the receivers of the http
response.

Here are my code snappet: 
===
SOAPEnvelope soapEnvelope = new SOAPEnvelope();
Element bodyElement =
createDocument(xmltext).getDocumentElement();
org.apache.axis.message.SOAPBodyElement
messageElement = new
org.apache.axis.message.SOAPBodyElement(bodyElement);
   
soapEnvelope.addBodyElement((SOAPBodyElement)messageElement);


The createDocument(xmlText) calls the following APIs:

   InputSource source = new InputSource( new
StringReader( xmlText ) ) ;
   DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
   factory.setIgnoringElementContentWhitespace(false);
   DocumentBuilder docBuilder =
factory.newDocumentBuilder();
   return docBuilder.parse(source);

It seems to me that AXIS has a bug handling this case.
Any help is very much appreciated!

Thanks!
Frank

 


any help is very much appreciated.




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



web service libraries in C++

2007-08-17 Thread Frank Zhou
Hi All, 

I am searching for a AXIS-like library implemented in
C++ (My application is in C++). Ideally, it will
supports web services standards like SOAP/WSDL et
cetera (just like AXIS), and is available in different
platforms like windows, linux and unix. If anyone
knows of such a library, would you please let me know?
If you know of several, your opinions on them are also
much appreciated. 

Thanks much in advance.

Frank


   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

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



[News] PushToTest TestMaker 5.0 Released

2007-08-16 Thread Frank Cohen
Hi Axis-istas! We announced PushToTest TestMaker 5.0 today. This is a  
giant release for our open-source community. The new version includes  
an Apache Axis protocol handler to test Web services for scalabiliyt,  
performance, and to implement service monitors. -Frank


---

PushToTest TestMaker 5.0 Now Available

http://www.pushtotest.com

FOR IMMEDIATE RELEASE. For additional information contact Frank  
Cohen, CEO and Founder, at [EMAIL PROTECTED], phone (408)  
871-0122 California, USA


August 16, 2007 – CAMPBELL, CALIFORNIA - PushToTest TestMaker 5 is a  
platform for test automation, service governance, and business  
service management. For Java developers TestMaker is a framework for  
turning unit tests into functional tests, load and scalability tests,  
and service monitors automatically.


At any given time new software needs to be installed, existing  
application software modules and database software need to be  
patched, application software and databases need to be tuned and  
optimized, and the root-causes of crashes, downtime, and performance  
bottlenecks needs to be analyzed and remediated quickly.


Software developers use PushToTest Version 5 to turn their unit tests  
into functional tests in a test automation platform that runs on  
their development machine. PushToTest Version 5 includes Wizards and  
Recorders to automatically build tests and supports a variety of  
languages, including Java, Jython, Groovy, PHP, Ruby, and many  
others. Plus PushToTest Version 5 supports SOA, Web Service, AJAX,  
and REST services using HTTP, HTTPS, SOAP, XML-RPC, and the email  
protocols.


The PushToTest Version 5 runtime environment automatically turns  
these same functional tests into load tests, scalability and  
performance tests, regression tests, and service monitors for QA  
technicians, IT operations managers, and CIOs. PushToTest Version 5  
runtime load tests and service monitors integrate into Service  
Registry/Repository products and database and application performance  
optimization and root-cause analysis tools.


Top-level features and enhancements:

*  TestScenario is a new XML-based system to reuse unit tests as  
regression tests, functional tests, load tests, integration tests,  
and service monitors requiring no coding.
* Graphical environment to control tests and view results in  
real-time.
* Record/play-back unit tests of Web applications using the  
integrated point-and-click TestGen4Web utility.
* Create test suites of SOAP-based Web Services using the  
integrated Eviware soapUI utility.
* Create tests of AJAX and REST applications using the  
integrated HTMLUnit framework.
* Java 6 ScriptEngine (JSR 223) support enables you to write  
tests in any supported language: Java, Jython, Groovy, PHP, Ruby, and  
many others.
* Distributed test environment (TestNetwork/TestNodes) to  
vertically scale tests to thousands of users and horizontally scale  
tests to operate the test from multiple locations around your network
* Performance Comparison Utility shows changes in performance  
from one test to another.

* Monitors CPU, Network, Memory utilization as test operates.
* Transaction distribution analysis charts as test operates.
* Automatic archiving of test results in XML file format.
* Log to Relational Databases (RDBMS)
* Data Production Library (DPL) system to create dynamic data as  
test operates from XML files, Comma Separated Value (CSV) files, and  
Relational Database (RDBMS)
* Validate service responses using Data Production Library  
(DPL,) integrated XML parsers, regular expressions, and custom objects.
* Operate PushToTest As A Service (PAAS) by making a SOAP  
request to TestMaker to operate a test and return the statistics of  
the test results. Includes fully functional interoperability with  
SoftwareAG/WebMethods X-Registry repository.
* Start, pause, stop, and change the order of test case  
operation as the test operates.

* Service monitor panel shows service status dashboard.
* Notification of test operation by email, SMS, pagers.
* Expanded protocol handler support (HTTP, HTTPS, Apache SOAP,  
Apache Axis SOAP, REST, AJAX, email) and extensible to add your  
protocols.

* Backwardly compatible with TestMaker 4 tests.
* Call TestMaker from the command-line to use with Continuous  
Integration Environments.
* Professional documentation, tutorials, screencasts, and  
reference guides.


The new software comes with two licenses: The source code is  
distributed under a GPL version 2 license and the pre-built and ready- 
to-run binary download comes with a free commercial license that  
limits you to 200 concurrent running virtual test users and 10  
service monitors. Additional users and monitors licenses available  
from PushToTest.



Download PushToTest TestMaker at http://www.pushtotest.com

PushToTest is a trademark of the PushToTest Company

About

Re: Cannot find Service, How do I fix?

2007-07-24 Thread Frank Knoll

Hi Jonathan,


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?
 

I always copy the aar file to 
$CATALINA_HOME/webapps/axis2/WEB-INF/services/ where $CATALINA_HOME 
points to the tomcat installation.


Cheers, Frank


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



how to handle arrays?

2007-07-19 Thread Frank Knoll

Hi,

I want to write a web service, that handles arrays of several types 
(please see attached WSDL file). I have written the web service with 
axis2 (databinding xmlbeans) and succeded with a client invoking the 
operations echoString, echoStringArray and echoStruct. The operations 
echoByteArray (handling base64Binary) and echoByteArray2 (handling a 
sequence of bytes) didn't work, throwing the following exception:


Exception in thread "main" org.apache.axis2.AxisFault: First Element 
must contain the local name, Envelope
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356)
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
   at 
org.apache.axis2.userguide.axis2sampledoclit.Axis2SampleDocLitServiceStub.echoByteArray2(Axis2SampleDocLitServiceStub.java:975)

   at clients.TestClient.echoByteArray2(TestClient.java:66)
   at clients.TestClient.main(TestClient.java:81)
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element 
must contain the local name, Envelope
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:221)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:179)
   at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:135)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:163)
   at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:111)
   at 
org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:474)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:142)
   at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:77)

   ... 5 more

In using axis 1.4 none operation handling arrays succeeded.

What is wrong with the WSDL file and what do I have to do to make this 
work in axis 1.4 and axis2?


Cheers, Frank


http://schemas.xmlsoap.org/wsdl/";
	xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
	xmlns:tns="http://userguide.axis2.apache.org/Axis2SampleDocLit";
	xmlns:xsd="http://www.w3.org/2001/XMLSchema";
	xmlns:xsd1="http://userguide.axis2.apache.org/xsd";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit";
	name="Axis2SampleDocLitService">
	
		http://userguide.axis2.apache.org/xsd";
			xmlns="http://www.w3.org/2001/XMLSchema";
			xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
			elementFormDefault="qualified">
			

	

			
			

	
	
	

			
			
			
			
			
			
			
			
		
		http://www.w3.org/2001/XMLSchema";
			targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit";>
			

	
		
		
	

			
			

	
		
		
	

			
			

	
		
		
	

			
			

	
		
		
	

			
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
			
			
		
		
			
			
		
		
			
			
		
		
			
			
		
		
			
			
		
	
	


		http://schemas.xmlsoap.org/soap/http"; />
		


			http://userguide.axis2.apache.org/Axis2SampleDocLit/echoString"; />
			


			
			


			
		
		


			http://userguide.axis2.apache.org/Axis2SampleDocLit/echoStringArray"; />
			


			
			


			
		
		


			http://userguide.axis2.apache.org/Axis2SampleDocLit/echoStruct"; />
			


			
			


			
		
		
			http://userguide.axis2.apache.org/Axis2SampleDocLit/echoByteArray"; />
			

			
			

			
		
		
			http://userguide.axis2.apache.org/Axis2SampleDocLit/echoByteArray2"; />
			

			
			

			
		
	
	
		
			http://userguide.axis2.apache.org/stkv3/wsdl/Axis2SampleDocLit.wsdl"; />
		
	


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

[AXIS V1.4] java.io.IOException: Error: missing type or ref attribute for node 'unknown' while parsing WSDL

2007-04-25 Thread Hiller, Frank RD-PT31
I get this error message while generating classes using WSDL2Java.

java.io.IOException: Error: missing type or ref attribute for node
'unknown'
at
org.apache.axis.wsdl.symbolTable.SymbolTable.createTypeFromRef(SymbolTab
le.java:1334)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:9
63)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1
119)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1
119)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1
119)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1
119)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populateTypes(SymbolTable.j
ava:909)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:7
05)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
18)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
95)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)

Has someone ever had such a problem?

Thanks,
Frank


Confidentiality note:
The information in this email and any attachment may contain confidential and 
proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates 
and may be privileged or otherwise protected from disclosure. If you are not 
the intended recipient, you are hereby notified that any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may cause liability. In case you have received this message due 
to an error in transmission, we kindly ask you to notify the sender immediately 
and to delete this email and any attachment from your system.


Re: sample quickstartadb doesn't generate.service

2007-04-24 Thread Frank Knoll

Hi Charitha,

thanks for your answer. In the meantime I experimented a little bit and 
the problem was having Axis2 and some Globus-Toolkit-4 libraries 
intermixed or something like that. Now it works by separating Axis2 and 
Globus-Toolkit-4.


Cheers, Frank


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



sample quickstartadb doesn't generate.service

2007-04-23 Thread Frank Knoll

Dear all,

I tried to run through the QuickstartGuide of Axis2 and in saying "ant 
generate.service" in the directory samples/quickstartadb the following 
error occured:

BUILD FAILED
/usr/local/axis2-1.1.1/samples/quickstartadb/build.xml:56: 
java.lang.NoSuchMethodError: 
javax.wsdl.Operation.getExtensibilityElements()Ljava/util/List;


Can someone help me, please?
Cheers, Frank


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



Axis 1.4 and unreferenced classes

2007-04-11 Thread Hiller, Frank RD-PT31
Hello Axis user list!

I used Axis 1.1 in Tomcat environment and changed to 1.4 now.
Due to performance issues I transfer lists of objects as byte array to
the client.
All the classes to be published are listed in the WSDD file, each in a
"beanMapping" section.

When I create the WSDL with Axis 1.1 by connecting to the running
service via http and calling the wsdl-link the WSDL is created
containing all unreferenced classes in the wsdl:types section, too.
This is not true for Axis 1.4. It only creates complexType sections for
referenced classes.

I worked around this by using Java2WSDL with the --extraClasses
parameter.

Is there a way to get the unreferenced classes created in WSDL when
connecting to the running services via http and calling the wsdl-link?

Thank you,
Frank



Confidentiality note:
The information in this email and any attachment may contain confidential and 
proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates 
and may be privileged or otherwise protected from disclosure. If you are not 
the intended recipient, you are hereby notified that any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may cause liability. In case you have received this message due 
to an error in transmission, we kindly ask you to notify the sender immediately 
and to delete this email and any attachment from your system.


Axis 1.4 and unreferenced classes

2007-03-29 Thread Hiller, Frank RD-PT31
Hello Axis user list!

I used Axis 1.1 in Tomcat environment and changed to 1.4 now.
Due to performance issues I transfer lists of objects as byte array to
the client.
All the classes to be published are listed in the WSDD file, each in a
"beanMapping" section.

When I create the WSDL with Axis 1.1 by connecting to the running
services via http and calling the wsdl-link the WSDL is created
containing all unreferenced classes in the wsdl:types section, too.
This is not true for Axis 1.4. It only creates complexType sections for
referenced classes.

I worked around this by using Java2WSDL with the --extraClasses
parameter.

Is there a way to get the unreferenced classes created in WSDL when
connecting to the running services via http and calling the wsdl-link?

Thank you,
Frank



Confidentiality note:
The information in this email and any attachment may contain confidential and 
proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates 
and may be privileged or otherwise protected from disclosure. If you are not 
the intended recipient, you are hereby notified that any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may cause liability. In case you have received this message due 
to an error in transmission, we kindly ask you to notify the sender immediately 
and to delete this email and any attachment from your system.


[ann] TSSJS slides on XML Perf available

2007-03-25 Thread Frank Cohen
I gave two talks at The Server Side Java Symposium. Axis users may be  
interested in the XML Performance deck as it includes many things to  
think about when working with WS, SOA and XML. Here are links to  
download the slides:


XML Scalability and Performance
http://downloads.pushtotest.com/presentations/2007_TSSJS_XMLPerf.pdf

Dynamic Scripting on Java http://downloads.pushtotest.com/ 
presentations/2007_TSSJS_Scripting.pdf


Feel free to ask questions.

-Frank



--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool






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



WSDLReader with HTTP basic authorization problem

2007-01-15 Thread Frank Zhou
Hi all, 

I'm having a problem with WSDLReader trying to parse a
WSDL url, the URL is under HTTP Basic authentication.
My browsing through the WSDLReader api, I couldn't
find any method to pass the userid/passwd information
when I call readWSDL(...) on it. I am using AXIS 1.2
and WSDL4J-1.5.1.

My code is something like this:

  WSDLFactory factory = WSDLFactory.newInstance();
  WSDLReader reader = factory.newWSDLReader();
  reader.setFeature("javax.wsdl.verbose", true);
  reader.setFeature("javax.wsdl.importDocuments",
true);
  Definition wsdlDef = reader.readWSDL( _wsdlURL );

When I run this, I got the following error:

  WSDLException: faultCode=OTHER_ERROR: Unable to
resolve imported document at
'http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml'.:
Server returned HTTP response code: 401 for URL:
http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml:
java.io.IOException: Server returned HTTP response
code: 401 for URL:
http://sj-w-01-xzhou:28080/diAdmin/servlet/webservices?wsdlxml
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)
at
java.net.URLConnection.getContent(URLConnection.java:585)
at java.net.URL.getContent(URL.java:927)
at
com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
..
===

I tried to search mail archive but couldn't find any
useful info. Any help is much appreicated.

Thanks in advance.
Frank


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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



Question about AXIS and tomcat

2006-12-28 Thread Frank Zhou
Hi, All,

I have a general question about tomcat and AXIS. Is
there any relation or execlusion between the two? I am
currently starting to work on a web service
application which the web server is hosted on TOMCAT
and the client is using AXIS to parse WSDL and making
SOAP/http calls et cetera. My web service application
basically intends to expose some functionalities of
another application through web serivce (so there is a
server component), it also try to use thrid party web
services to integrate with my other applications's
functionality (so there is a client component). The
server side is really simple from architectural point
of view, it basically just a servlet respoding to
SOAP/http calls (like publish WSDL and handling
operations as defined in the generated WSDL).

Now I am trying to expand and enhance the web service
application, but as a web service novice, I would like
to seek some expert advices here. 

(1) Can I use AXIS on the server side? can AXIS
replace the servlet? 

(2) On the client side, currently I am just able to
make SOAP/http calls. I know AXIS2 offers lots of new
features. Which of those are more important than
others from web service perspective? I am trying to
enhance my web service client so that I can better
consume third party web services like Google adwords
et cetera.
 
(3) Is there such a thing called platform web service?
What are the essential features of it? Maybe I am
asking wrong question here, but I am trying to
understand what I can do to enhance my server side
compoent, which currently is just a servlet
structually.

Well, enough for now, any feedback is really
appreciated. 

Thanks much in advance.

Frank

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

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



Secure socket layer (SSL) connection problem

2006-12-20 Thread Frank Zhou
Hi All,

I am encounting a problem with setting up secure
socket layer connecttion between my TOMCAT web server
and my web service client (using AXIS 1.2 bit not a
browser client). My situation is this, in my web
service client, I need to tell the full client
keystore path to the application. And basically, I
have NO problem configuring the TOMCAT server to
accept https connection (through generating
keystore/cert et cetera), and in the client side, I
also have NO problem configuring it to have an HTTPS
connection with the server (through port 8443). 

Now if I give an INCORRECT client keystore path to the
application, I got an error saying something like "no
trusted certificate found", which is expected.
However, the problem occurs that if I subsequently
give the CORRECT keystore path, I still get the same
error. I had to stop my job server services (a
component of my application) and then the HTTPS
connection will work.

Similarly, if the first time I give the correct client
keystore path, the https connection works, and if
subsequently I give an INCORRECT keystore path, it
still works. Seems like the web server always
remembers the keystore the first it is given. 

I debugged my client code and seems like every time
when the client makes a call, it is CORRECTly giving
the current keystore path.  

Any ideas what could be the cause for this? Thanks
much in advance.

Frank

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

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



Re: [Axis2] Axis1 a better choice?

2006-09-15 Thread Frank Zhou
Hi All, 

I have a similar question. Does anyboby know if AXIS2
works with TOMCAT 5.0.28? Any known issues?

Thanks much.

Frank

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

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



MalformedURIException in wsdl2java-generated code

2006-09-14 Thread Frank Knoll
 org.apache.axis.types.URI$MalformedURIException: Cannot initialize 
URI with empty parameters.
at org.apache.axis.types.URI.initialize(URI.java:614)
at org.apache.axis.types.URI.(URI.java:311)
at org.apache.axis.types.URI.(URI.java:272)
at 
org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(AddressingHandler.java:245)
at 
org.globus.wsrf.handlers.AddressingHandler.processClientRequest(AddressingHandler.java:69)
at 
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
... 11 more

Does anybody know what I did do wrong here?

Cheers
Frank

_
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=0066


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



transport support

2006-09-12 Thread Frank Zhou
Hi all,

I am new to AXIS and web service in general. I have a
few basic questions:

Does AXIS support protocls other than SOAP? For
example,raw XML and MIME.

Does AXIS support transport other than HTTP? For
example, SMTP, TCP and JMS.

We have built a web service based on SOAP/HTTP, but
looking to support other protocols/Transports. If
there are some examples or documents/apis, that would
be great!

Thanks much.
Frank 



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

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



how can two WebServices share the same data?

2006-09-11 Thread Frank Knoll
Dear Axis-Users and -Developers,

I have installed Axis 1.4 over Tomcat 5.5.17 over Java 1.5 and have one 
question and one problem:
My question is: I have two WebServices deployed in the same container which 
want to share the same data (e.g. one instance of my class FileResourceHome). I 
figured out that this data can be stored in a property (e.g. 
"TextGrid.FileResourceHome") of the ServletContext which I can access out of 
any WebService deployed in the same container, right or wrong?
Here is is the code I am using so far for this scenario:

import org.apache.axis.MessageContext;
import org.apache.axis.transport.http.HTTPConstants;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletContext;
...
private static final String fileResourceHomeName = "TextGrid.FileResourceHome";
public static FileResourceHome getInstance()
{
  MessageContext messageContext = MessageContext.getCurrentContext();
  HttpServlet httpServlet = 
(HttpServlet)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLET);
  ServletContext servletContext = httpServlet.getServletContext();

  FileResourceHome fileResourceHome = 
(FileResourceHome)servletContext.getAttribute(fileResourceHomeName);
  if(fileResourceHome == null)
  {
fileResourceHome = new FileResourceHome();
servletContext.setAttribute(fileResourceHomeName, fileResourceHome);
  }

  return fileResourceHome;
}

My problem is: This code does compile, but doesn't execute, because the line
MessageContext messageContext = MessageContext.getCurrentContext();
from above results in a java.lang.reflect.InvocationTargetException. I don't 
understand this, because the class MessageContext is in the file axis.jar which 
is stored in the webapps/axis/WEB-INF/lib directory of my tomcat-installation.

What did I do wrong? Can someone help me, please?

Cheers
Frank

___
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02


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



SOAP Wizard improvements

2006-05-07 Thread Frank Cohen
Now that TestMaker 4.4 is out I am returning to the SOAP Wizard. I am  
seeking your help at a better design. TestMaker has a utility to  
create jUnit TestCase classes from a WSDL document. It is similar in  
function to wsdl2java.


The current code looks at the WSDL definition for a service using  
SOAP encoding and stubs out the parameters to make it easier for the  
user to know how to construct the SOAP request.


For a SOAP service using Document-literal or wrapped attributes I  
would like to stub-out the attributes in a set of JDOM or Xerces  
calls to construct the request. I have not found a library to help me  
do this. Right now, just like with wsdl2java, the stub takes an  
object and it's up to the user to figure out the correct parameters  
within that object.


I experimented with wsdl2java in Axis 1.3. It does a good job - very  
simple - at taking a WSDL document and create a client stub to call  
the service. It would be easy to create the following in TestMaker:


wsdl2java -> compile into jar -> dynamic load jar in Jython -> write  
jython TestCase script


but just as good is

wsdl4j -> write a Jython TestCase script

The problem is in support of complex data types. Neither gives you  
support for easy (GUI-based, JDOM based, or Xerces based) creation of  
the request document.


I have not found an open-source class that understands how to marshal  
parameters for a Document-literal encoded SOAP call using complex  
data types. Any ideas?


-Frank



[ann] TestMaker 4.4 now available

2006-05-04 Thread Frank Cohen
TestMaker is my open-source utility and framework for testing Web  
applications, services, and SOA for scalability, performance and  
reliability. TestMaker 4.4 is now available for immediate download.


The release notes and documentation for the new version are available  
at:

http://www.pushtotest.com/Docs/vreleasenotes

The download (21.9 MB) is online at:
http://downloads.pushtotest.com/TestMaker44.zip

TestMaker 4.4 incorporates new features and bug fixes from 14  
volunteer contributors. The charting capability is completely  
changed. TestMaker shows live results when running a load test in  
XSTest. All the documentation and example test agent scripts have  
been rewritten. A single Ant build script creates all of TestMaker,  
including the full distribution. The new software incorporates many  
bug fixes: Log4J compatibility, removed unused jar files, fixed HTTP  
header value logging, fixed URL encoding problems, and problems  
running TestMaker scripts from the command-line.


TestMaker is the framework PushToTest uses to build performance and  
developer productivity tests. For instance, the SOA Performance Kit  
(http://dev2dev.bea.com/soa/toolkit.html) shows Java developers how  
to measure SOA scalability and performance and the FastSOA  
Performance Kit (http://www.xquerynow.com/library/fastsoa/) shows how  
to accellerate SOA performance using XML-centric technology. Both are  
built on TestMaker.


TestMaker provides example test scripts that interoperate with Axis  
services using SOAP RPC and SOAP Document-literal encoding.


-Frank Cohen
http://www.pushtotest.com
http://www.xquerynow.com





using different versiosn of Axis

2006-02-02 Thread Frank
I believe I know the answer to this through experimentation but others 
have told me that it should not be a problem but i think it is.  I'm 
using someone's code that compiled it with Axis 1.2.  I'm using their 
code along with some of mine but I'm compiling and running in axis 
1.2.1. When calls are made to their code I get errors.  If I use 1.2 
axis it works fine.


Over all question on Axis.  If you use some one else code that uses Axis 
and they compiled it with come version of it axis like 1.2.  Are you 
required to also use that same version if you use their code even if you 
use a newer version?  I have not been able to get it to work.



Thanks,

Frank




token handling

2006-01-23 Thread Otto, Frank



Hi,
 
I want to use axis 
to implement a webservice.
 
Now, I need an 
authentication mechanism to secure the webservice. I want to use login method 
with login/password. After successful login, I will generate a token, which the 
user have to put as parameter with other webservice methods. The token must have 
an expire time.
 
Has someone do this? 
Can someone give me hints?
 
 
kind 
regards,
 
Frank


Re: Axis problem

2006-01-11 Thread Frank
Check the server log. Probably a classpath issue or something. Have had 
similar problem and recall that being the problem


Stijn Christiaens wrote:


Hello everyone,

I am looking for some help on Axis.
I've created a wsdd file that auto-starts my webservice:

http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>


 
 




When I access the address for the service, it says that there is an Axis
service present (woohoo!), but when I go to the AxisServlet and ask for
the WSDL it says it cannot generate it (not so woohoo!).

So in the next try I added a wsdlFile parameter to the wsdd in which I
placed a java2WSDL created wsdl file (for the Calculator class). Still
Axis tells me the service is present, but that it cannot generate the
wsdl file.

However on the url .../services/Calculateur it says there is a web
service, but on the wsdl url .../services/Calculateur?wsdl it says it
cannot generate a wsdl file, because there is no web service at the
address.

Am I doing something wrong?

Thanks in advance for all the assistance!

Ciao,

Stijn



 






axis/tomcat find jars

2006-01-05 Thread Frank
I have been getting some weird results now and again and I was wondering 
if some one could explain to me how when using tomcat with axis want 
libraries will be used?  i.e. does it use your environment variable 
classpath or only what resides in the webapps\axis\WEB-INF\lib directory 
or some combination?


   If just what's in the lib directory how does it know what jar to use 
if for say you have conflicts, i.e. diff filename/versions of the same 
classes in a jar file?



Thanks,

Frank




[Fwd: Custom deploy version not working, instant works]

2005-12-29 Thread Frank




I'm sorry I missed that the SoapBindingStub had a static method that
was executed the line with ===> is the line it just stops at, no
exception thrown either at the server, but the bogus one at the client
that is useless is thrown.

   private static void _initOperationDesc1(){
  try{
    org.apache.axis.description.OperationDesc oper;
    org.apache.axis.description.ParameterDesc param;
    oper = new org.apache.axis.description.OperationDesc();
    oper.setName("callObjectManager");
    param = new org.apache.axis.description.ParameterDesc(new
javax.xml.
    namespace.QName("", "requestDoc"),
    org.apache.axis.description.ParameterDesc.IN,
   new javax.xml.namespace.
   QName("http://xml.apache.org/xml-soap",
"Document"),
   org.w3c.dom.Document.class, false, false);
    oper.addParameter(param);
    oper.setReturnType(new javax.xml.namespace.QName(
    "http://xml.apache.org/xml-soap", "Document"));
    oper.setReturnClass(org.w3c.dom.Document.class);
    oper.setReturnQName(new javax.xml.namespace.QName("",
    "callObjectManagerReturn"));
===>    oper.setStyle(org.apache.axis.constants.Style.RPC);
    oper.setUse(org.apache.axis.constants.Use.ENCODED);
    _operations[0] = oper;

    }





 Original Message 

  

  Subject: 
  Custom deploy version not working, instant works


  Date: 
  Thu, 29 Dec 2005 15:22:53 -0500


  From: 
  Frank <[EMAIL PROTECTED]>


  Organization:
  
  Keyway Security


  To: 
  axis 

  





I have 2 services where one service calls the other. I initially used
instant deployment and it works fine.  Now I tried to switch to using
custom deployment using the wsdd files.  Now it seems to have deployed
but when the one service calls the other service I get a bogus useless
exception at the client.  Nothing really useful is thrown at the server
side either.  (using tomcat 5.0.29).  Started to put trace statements
in the generated stub code.   As far as I can tell it executes this
line and must fail some how to the client get the exception back but
nothing is thrown at the service level, why?  I even but a catchall
exception just in case as it only caught org.apache.axis.AxisFault but
nothing. 

Line from the ServiceLoctor stub
 frankpc.axis.services.OMSSecure.OMSSecureSoapBindingStub _stub = new
frankpc.axis.services.OMSSecure.OMSSecureSoapBindingStub(portAddress,
this);

Can not put traces in the SoapBindingStub constructor until after call
to this(service), and it doe snot get pass that. 

Any one have any thoughts?

One different thing that I did see is when I goto the service from a
display page stand point.  The new custom deploy looks like this:

OMSSecure
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

i.e. no form for the wsdl but you will get it if you append the ?wsdl

But using instant deploy I get 

There is a Web Service here
Click to see the WSDL 










Custom deploy version not working, instant works

2005-12-29 Thread Frank




I have 2 services where one service calls the other. I initially used
instant deployment and it works fine.  Now I tried to switch to using
custom deployment using the wsdd files.  Now it seems to have deployed
but when the one service calls the other service I get a bogus useless
exception at the client.  Nothing really useful is thrown at the server
side either.  (using tomcat 5.0.29).  Started to put trace statements
in the generated stub code.   As far as I can tell it executes this
line and must fail some how to the client get the exception back but
nothing is thrown at the service level, why?  I even but a catchall
exception just in case as it only caught org.apache.axis.AxisFault but
nothing. 

Line from the ServiceLoctor stub
 frankpc.axis.services.OMSSecure.OMSSecureSoapBindingStub _stub = new
frankpc.axis.services.OMSSecure.OMSSecureSoapBindingStub(portAddress,
this);

Can not put traces in the SoapBindingStub constructor until after call
to this(service), and it doe snot get pass that. 

Any one have any thoughts?

One different thing that I did see is when I goto the service from a
display page stand point.  The new custom deploy looks like this:

OMSSecure
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

i.e. no form for the wsdl but you will get it if you append the ?wsdl

But using instant deploy I get 

There is a Web Service here
Click to see the WSDL 










axis not finding class but in lib/classes dir

2005-12-20 Thread Frank
Anyone ever see this before?  The OMS class file is in both the lib and 
classes directory under axis.  The really stange thing is a recompiled 
this last night and redeployed it, even started/stopped the tomcat a few 
times.  Now I get this?


This has me a little confussed though "wrong name: oms/OMS"

thanks,

Frank


2005-12-20 10:01:22 StandardWrapperValve[AxisServlet]: Servlet.service() 
for servlet AxisServlet threw exception

java.lang.NoClassDefFoundError: OMS (wrong name: oms/OMS)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
   at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)

   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:219)
   at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
   at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142)
   at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85)
   at 
org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider.java:395)
   at 
org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:428)
   at 
org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:340)
   at 
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:475)
   at 
org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:520)
   at 
org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:286)
   at 
org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisServlet.java:431)
   at 
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:222)

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

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

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






Problem using custom deployment using wsdd

2005-12-19 Thread Frank
Ok I've been looking at this for a while now and I still don't know why 
it will not work.  I have 2 services Service #1 service #2.  Service #1 
calls service #2.  Both are deployed on the same machine. When service 
#1 tries to call service #2 it throws the exception I have listed 
below.  Ok here is what I tried out and I don't know why it will not work.


1. Using the exact same code fro the service using jws/instant 
deployment to the same tomcat server on the same machine it works just fine.
2. Using a test program  but not having tomcat act as the client I can 
call service #2, so it's up and running and working.



using tomcat 5.0.28 and axis 1.2.1


exception thrown back at the client (but problem appears to be on the 
server i.e. program trace ends when service #1 calles #2).

Dec 19, 2005 2:01:34 PM InterceptDDSMsgs InterceptDDSMsgs
WARNING: ServiceConnectionException
ServiceConnectionException occured 
Method:NcesTlService/callService-RemoteException Value not found was null

   at csds.servicecall.NcesTlService.callService(NcesTlService.java:207)
   at csds.servicecall.TlService.callService(TlService.java:100)
   at csds.servicecall.ServiceCall.callTls(ServiceCall.java:71)
   at 
csds.InterceptDDSMsgs.InterceptDDSMsgs.(InterceptDDSMsgs.java:138)

   at csds.InterceptDDSMsgs.RunDDSIntercept.main(RunDDSIntercept.java:23)
Caused by: java.lang.reflect.InvocationTargetException
   at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
   at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
   at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.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:424)
   at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
   at org.apache.axis.client.Call.invoke(Call.java:2748)
   at org.apache.axis.client.Call.invoke(Call.java:2424)
   at org.apache.axis.client.Call.invoke(Call.java:2347)
   at org.apache.axis.client.Call.invoke(Call.java:1804)
   at 
frankpc.axis.services.TLSSecure.TLSSecureSoapBindingStub.callTrustedLabeler(TLSSecureSoapBindingStub.java:103)

   at csds.servicecall.NcesTlService.callService(NcesTlService.java:199)
   ... 4 more
Caused by:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException
   at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
   at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
   at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.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:424)
   at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
   at org.apache.axis.client.Call.invokeEngine(Call.j

issues with have 2 axis's on tomcat?

2005-12-15 Thread Frank
Was wondering is there any know issues (other then setting up classpaths 
correctly and all and pointing to the correct url/endpoint), with having 
2 different versions (or the same for that matter, just under another 
directory) of axis on a tomcat install?  axis is just an application 
from a tomcat perspective isn't it?  It does not care that there might 
be similar apps.  But does axis have any issues I should be made aware of?



Thanks,

Frank




Re: Problem with instant deployment

2005-12-14 Thread Frank




But i had this working before and it's working on a linux box might
this minute.  This xp machine I had working before until I started
trying to do custom deployment with wsdd files

jayachandra wrote:

  Looks like we have a very interesting scenario here. If I
recollect correct, axis engine inside a jvm is a *singleton* and to
serve Service1 it might be existing as a singleton with serverside flag
set to true inside Tomcat JVM, and since inside your Service1 you try
to access the engine code as if like a client side client is trying to
call Service2, axis might be failing.
  
  Axis can't be blamed for this either, for its an SOA framework
where client is assumed to be located in a seperate JVM. So I'd suggest
that don't try to invoke the Service2 methods via an axis client call
mechanism but rather import the corresponding Service2SoapBindingImpl
into your Service1SoapBindingImpl class and do a direct method call,
unless you want to truly *experiment* and find something for yourself
as a case study.
  
 
  HTH,
  Jaya
 
  On 12/14/05, Frank <[EMAIL PROTECTED]> wrote:
  Well
I've narrowed it down and it is a server problem but I'm not sure how
to fix it.

Service 1 and service 2 both work fine if called from a client or a
browser.  Service 1 calls service 2 and that's where it stops and
returns to the client that useless exception.  The server code has a
try catch around that call but produces nothing in the server log.  
This except code works on another machine and I had it working on here
earlier.  All I can figure is it's some config etc thing.  The tubs are
compiled and in the \webapps\axis\WEB-INF\classes unjared.
    

Any thoughts?

Thanks,

Frank


jayachandra wrote:

  Totally agree with Ron,
  have a peep into catalina_home/logs and I bet 70% of the
time we'll know what to do.
 
  Jaya
 
  On 12/14/05, Ron Reynolds <[EMAIL PROTECTED]
  > wrote:
  
errors in Axis are actually
logged (in some cases) at the DEBUG level.  also make sure the request
is hitting your server (check your $TOMCAT_HOME/logs/ directory for
most recent catalina, localhost and access logs).  there was a posting
earlier that sounded like the Axis engine never came up - if that's the
case check the localhost log as that's where the problem will be
logged. 
 
in all cases where i got a
very generic error on the client it was a server-side error that had
somehow been "dumbed down" to a generic error, so that's why i
suggested checking the server-side logs. 
 
.ron. (tho you can
call me "roy") ;-)


  -
Original Message - 
  From:
  
De Graef Luc 
  To:
  
'axis-user@ws.apache.org' 
  Sent:
Tuesday, December 13, 2005 10:37 PM
  Subject:
RE: Problem with instant deployment
  
 
  Hello, 
  in the message 'Server.UserException /
InvocationTargetException  with a new webs ervice', I described
approximately the same scenario, let's say the same output. I am also
working with Tomcat 5.0.28 but with Axis 1.3 .
   A suggestion from Roy Reynolds was that it
really is a server related issue, and that we need to check the server
logging output. It seems however that I don't have any logging, not
even with a log4j.properties file containing following info : 
      # Set root category priority to
INFO and its only appender to CONSOLE. 
    log4j.rootCategory=INFO, CONSOLE, LOGFILE
  
    #log4j.rootCategory=INFO, CONSOLE, LOGFILE 
    # Logging detail level, 
    # Must be one of ("trace", "debug", "info",
"warn", "error", or "fatal"). 
    org.apache.commons.logging.simplelog.defaultlog=trace
  
      
    # Set the enterprise logger category to FATAL
and its only appender to CONSOLE. 
    log4j.logger.org.apache.axis.enterprise=FATAL,
CONSOLE 
    log4j.logger.org.apache=INFO, CONSOLE, LOGFILE
  
    # CONSOLE is set to be a ConsoleAppender using
a PatternLayout. 
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  
    log4j.appender.CONSOLE.Threshold=TRACE 
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  
    log4j.appender.CONSOLE.layout.ConversionPattern=-
%m%n 
    # LOGFILE is set to be a File appender using a
PatternLayout. 
    log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  
    
log4j.appender.LOGFILE.File=axis.log 
    log4j.appender.LOGFILE.Append=true 
    log4j.appender.LOGFILE.Threshold=TRACE 
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
  
    log4j.appender.LOGFILE.layout.ConversionPattern=%-4r
[%t] %-5p %c %x 

Re: Problem with instant deployment

2005-12-14 Thread Frank




Well I've narrowed it down and it is a server problem but I'm not sure
how to fix it.

Service 1 and service 2 both work fine if called from a client or a
browser.  Service 1 calls service 2 and that's where it stops and
returns to the client that useless exception.  The server code has a
try catch around that call but produces nothing in the server log.  
This except code works on another machine and I had it working on here
earlier.  All I can figure is it's some config etc thing.  The tubs are
compiled and in the \webapps\axis\WEB-INF\classes unjared.

Any thoughts?

Thanks,

Frank

jayachandra wrote:

  Totally agree with Ron,
  have a peep into catalina_home/logs and I bet 70% of the time
we'll know what to do.
 
  Jaya
 
  On 12/14/05, Ron Reynolds <[EMAIL PROTECTED]> wrote:
  
errors in Axis are actually logged
(in some cases) at the DEBUG level.  also make sure the request is
hitting your server (check your $TOMCAT_HOME/logs/ directory for most
recent catalina, localhost and access logs).  there was a posting
earlier that sounded like the Axis engine never came up - if that's the
case check the localhost log as that's where the problem will be
logged.

 
in all cases where i got a very
generic error on the client it was a server-side error that had somehow
been "dumbed down" to a generic error, so that's why i suggested
checking the server-side logs.

 
.ron. (tho you can
call me "roy") ;-)


  -
Original Message - 
  From:
  
De Graef Luc 
  To:
  'axis-user@ws.apache.org'
  
  Sent:
Tuesday, December 13, 2005 10:37 PM
  Subject:
RE: Problem with instant deployment
  
 
  Hello, 
  in the message 'Server.UserException /
InvocationTargetException  with a new webs ervice', I described
approximately the same scenario, let's say the same output. I am also
working with Tomcat 5.0.28 but with Axis 1.3 .
   A suggestion from Roy Reynolds was that it
really is a server related issue, and that we need to check the server
logging output. It seems however that I don't have any logging, not
even with a log4j.properties file containing following info : 
      # Set root category priority to INFO
and its only appender to CONSOLE. 
    log4j.rootCategory=INFO, CONSOLE, LOGFILE
  
    #log4j.rootCategory=INFO, CONSOLE, LOGFILE
   
    # Logging detail level, 
    # Must be one of ("trace", "debug", "info",
"warn", "error", or "fatal").
   
    org.apache.commons.logging.simplelog.defaultlog=trace
  
      
    # Set the enterprise logger category to FATAL
and its only appender to CONSOLE. 
    log4j.logger.org.apache.axis.enterprise=FATAL,
CONSOLE 
    log4j.logger.org.apache=INFO, CONSOLE, LOGFILE
  
    # CONSOLE is set to be a ConsoleAppender using
a PatternLayout. 
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
   
    log4j.appender.CONSOLE.Threshold=TRACE 
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  
    log4j.appender.CONSOLE.layout.ConversionPattern=-
%m%n 
    # LOGFILE is set to be a File appender using a
PatternLayout. 
    log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  
    
log4j.appender.LOGFILE.File=axis.log 
    log4j.appender.LOGFILE.Append=true 
    log4j.appender.LOGFILE.Threshold=TRACE 
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
   
    log4j.appender.LOGFILE.layout.ConversionPattern=%-4r
[%t] %-5p %c %x - %m%n 
  
  Do you have some output at server side ?
  
  Regards 
  Luc 
  -Original Message- 
  From: Frank [mailto:[EMAIL PROTECTED]
] 
  Sent: woensdag 14 december 2005 0:51 
  To: axis 
  Subject: Problem with instant deployment 
  
  Been using axis a little bit hear but still
have lots to learn. Need some help here (Using tomcat 5.0.28 Axis 1.2b.
on XP ).  First I had this working with instant deployment before, now
I get the following exception:
  
  Caused by: 
  AxisFault 
   faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  
   faultSubcode: 
   faultString:
java.lang.reflect.InvocationTargetException 
   faultActor: 
   faultNode: 
   faultDetail: 
      {http://xml.apache.org/axis/
  }stackTrace:java.lang.reflect.InvocationTargetException
  
      at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
  
      at
org.apache.axis.message.SOAPFaultBuilder.endElement
(SOAPFaultBuilder.java:128) 
      at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
  
      at
org.apache.xerces.pars

Re: Problem with instant deployment

2005-12-14 Thread Frank




Ron,
    I think your onto something here. Looking at the trace closer I
traced it through the service code.  It appears to have stopped when it
tries to call the other service. Now service 1 calls service 2, service
2 needs the stubs generated from wsdl2java.  I compiled those stubs. 
Now first would not  service 1 fail to start/compile if it could not
find the service 2 stubs?  I have them @ webapps\axis\WEB-INF\classes
and have it un jared as I saw some posts that if you jar it and have it
in the path you might have problems and on other machines that's also
how I have it working .

I can hit that service on the server with
axis/OMS.jws?method=callObjectManager and it appears to be working (did
not pass doc but appears to be running).

Any thoughts?


Thanks,

Frank





Ron Reynolds wrote:

  RE: Problem with instant deployment
  
  
  
  errors in Axis are actually logged
(in some cases) at the DEBUG level.  also make sure the request is
hitting your server (check your $TOMCAT_HOME/logs/ directory for most
recent catalina, localhost and access logs).  there was a posting
earlier that sounded like the Axis engine never came up - if that's the
case check the localhost log as that's where the problem will be logged.
   
  in all cases where i got a very
generic error on the client it was a server-side error that had somehow
been "dumbed down" to a generic error, so that's why i suggested
checking the server-side logs.
   
  .ron. (tho you can call
me "roy") ;-)
  
-
Original Message - 
From:
De Graef Luc 
To:
'axis-user@ws.apache.org'

Sent:
Tuesday, December 13, 2005 10:37 PM
Subject:
RE: Problem with instant deployment


Hello, 
in the message 'Server.UserException /
InvocationTargetException  with a new webs ervice', I described
approximately the same scenario, let's say the same output. I am also
working with Tomcat 5.0.28 but with Axis 1.3 .
 A suggestion from Roy Reynolds was that it
really is a server related issue, and that we need to check the server
logging output. It seems however that I don't have any logging, not
even with a log4j.properties file containing following info : 
    # Set root category priority to INFO and
its only appender to CONSOLE. 
    log4j.rootCategory=INFO, CONSOLE, LOGFILE

    #log4j.rootCategory=INFO, CONSOLE, LOGFILE

    # Logging detail level, 
    # Must be one of ("trace", "debug", "info",
"warn", "error", or "fatal"). 
    org.apache.commons.logging.simplelog.defaultlog=trace

    
    # Set the enterprise logger category to FATAL
and its only appender to CONSOLE. 
    log4j.logger.org.apache.axis.enterprise=FATAL,
CONSOLE 
    log4j.logger.org.apache=INFO, CONSOLE, LOGFILE

    # CONSOLE is set to be a ConsoleAppender using
a PatternLayout. 
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender

    log4j.appender.CONSOLE.Threshold=TRACE 
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

    log4j.appender.CONSOLE.layout.ConversionPattern=-
%m%n 
    # LOGFILE is set to be a File appender using a
PatternLayout. 
    log4j.appender.LOGFILE=org.apache.log4j.FileAppender

    log4j.appender.LOGFILE.File=axis.log 
    log4j.appender.LOGFILE.Append=true 
    log4j.appender.LOGFILE.Threshold=TRACE 
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout

    log4j.appender.LOGFILE.layout.ConversionPattern=%-4r
[%t] %-5p %c %x - %m%n 

Do you have some output at server side ? 
Regards 
Luc 
-Original Message- 
From: Frank [mailto:[EMAIL PROTECTED]]

Sent: woensdag 14 december 2005 0:51 
To: axis 
Subject: Problem with instant deployment 

Been using axis a little bit hear but still have
lots to learn. Need some help here (Using tomcat 5.0.28 Axis 1.2b. on
XP ).  First I had this working with instant deployment before, now I
get the following exception:
Caused by: 
AxisFault 
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 
 faultString:
java.lang.reflect.InvocationTargetException 
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException

    at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)

    at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)

    at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

    at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(U

Re: Problem with instant deployment

2005-12-14 Thread Frank
' is OK.
TLS: ... finding input doc
... found 1
TLS: duplicating input doc

TLS: input doc set to the following:



  
    <_flow-tags_ debug="1134564719">
    SFGPEVU-US-
    
    
    
    
  
  


TLS: Processing request





De Graef Luc wrote:

  
  
  RE: Problem with instant deployment
  Hello,
  
  in the message 'Server.UserException /
InvocationTargetException  with a new webs ervice', I described
approximately the same scenario, let's say the same output. I am also
working with Tomcat 5.0.28 but with Axis 1.3 .
   A suggestion from Roy Reynolds was that it really
is a server related issue, and that we need to check the server logging
output. It seems however that I don't have any logging, not even with a
log4j.properties file containing following info : 
      # Set root category priority to INFO and
its only appender to CONSOLE.
  
    log4j.rootCategory=INFO, CONSOLE, LOGFILE
  
    #log4j.rootCategory=INFO, CONSOLE, LOGFILE
  
    # Logging detail level,
  
    # Must be one of ("trace", "debug", "info",
"warn", "error", or "fatal").
  
    org.apache.commons.logging.simplelog.defaultlog=trace
  
      
    # Set the enterprise logger category to FATAL
and its only appender to CONSOLE.
  
    log4j.logger.org.apache.axis.enterprise=FATAL,
CONSOLE
  
    log4j.logger.org.apache=INFO, CONSOLE, LOGFILE
  
    # CONSOLE is set to be a ConsoleAppender using
a PatternLayout.
  
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  
    log4j.appender.CONSOLE.Threshold=TRACE
  
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  
    log4j.appender.CONSOLE.layout.ConversionPattern=-
%m%n
  
    # LOGFILE is set to be a File appender using a
PatternLayout.
  
    log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  
    log4j.appender.LOGFILE.File=axis.log
  
    log4j.appender.LOGFILE.Append=true
  
    log4j.appender.LOGFILE.Threshold=TRACE
  
    log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
  
    log4j.appender.LOGFILE.layout.ConversionPattern=%-4r
[%t] %-5p %c %x - %m%n
  
  
  Do you have some output at server side ?
  
  Regards
  
  Luc
  
  -Original Message-
  
  From: Frank [mailto:[EMAIL PROTECTED]]
  
  Sent: woensdag 14 december 2005 0:51
  
  To: axis
  
  Subject: Problem with instant deployment
  
  
  Been using axis a little bit hear but still have
lots to learn. Need some help here (Using tomcat 5.0.28 Axis 1.2b. on
XP ).  First I had this working with instant deployment before, now I
get the following exception:
  Caused by:
  
  AxisFault
  
   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  
   faultSubcode: 
  
   faultString:
java.lang.reflect.InvocationTargetException
  
   faultActor: 
  
   faultNode: 
  
   faultDetail: 
  
      {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException
  
      at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
  
      at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
  
      at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
  
      at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  
      at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
  
      at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
  
      at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  
      at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  
      at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  
      at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  
      at
org.apache.xerces.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:424)
  
      at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
  
      at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
  
      at
org.apache.axis.client.Call.invokeEngine(Call.java:2765)
  
      at
org.apache.axis.client.Call.invoke(Call.java:2748)
  
      at
org.apache.axis.client.Call.invoke(Call.java:2424)
  
      at
org.apache.axis.client.Call.invoke(Call.java:2347)
  
      at
org.apache.axis.client.Call.invoke(Call.java:1804)
  
      at
frankpc.axis.TLS_jws.TLSSoapBindingStub.callTrustedLabeler(TLSSoapBindingStub.java:103)
  
      at
csds.service

Problem with instant deployment

2005-12-13 Thread Frank
ent to work I
tried to do the standard/custom wsdd files. Not sure if that screwed
something up or not.  I changed the names of the server-cong.wsdd and
client-config.wsdd so that they are not picked up so I coudl get this
to work again

The serveices are up I  can get to them.
http://frankpc:8080/axis/TLS.jws gets me

There is a Web Service here
Click to see the WSDL

and clicking on the url gets me

xml
version="1.0" encoding="UTF-8" ?> 

- <wsdl:definitions targetNamespace="http://frankpc:8080/axis/TLS.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://frankpc:8080/axis/TLS.jws" xmlns:intf="http://frankpc:8080/axis/TLS.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- 
 

- <wsdl:message name="callTrustedLabelerRequest">


 
<wsdl:part name="requestDoc" type="apachesoap:Document" /> 

  wsdl:message>



- <wsdl:message name="callTrustedLabelerResponse">


 
<wsdl:part name="callTrustedLabelerReturn" type="apachesoap:Document" /> 

  wsdl:message>



- <wsdl:portType name="TLS">


- <wsdl:operation name="callTrustedLabeler" parameterOrder="requestDoc">


 
<wsdl:input message="impl:callTrustedLabelerRequest" name="callTrustedLabelerRequest" /> 


 
<wsdl:output message="impl:callTrustedLabelerResponse" name="callTrustedLabelerResponse" /> 

  wsdl:operation>


  wsdl:portType>



- <wsdl:binding name="TLSSoapBinding" type="impl:TLS">


 
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 


- <wsdl:operation name="callTrustedLabeler">


 
<wsdlsoap:operation soapAction="" /> 


- <wsdl:input name="callTrustedLabelerRequest">


 
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded" /> 

  wsdl:input>



- <wsdl:output name="callTrustedLabelerResponse">


 
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://frankpc:8080/axis/TLS.jws" use="encoded" /> 

  wsdl:output>


  wsdl:operation>


  wsdl:binding>



- <wsdl:service name="TLSService">


- <wsdl:port binding="impl:TLSSoapBinding" name="TLS">


 
<wsdlsoap:address location="http://frankpc:8080/axis/TLS.jws" /> 

  wsdl:port>


  wsdl:service>


  wsdl:definitions>





Thanks,

Frank







AW: new ?wsdl bug in 1.3?

2005-11-04 Thread Eisfeld, Frank
Hi,

This seems to be a code generation problem. You have to clear all '>' in the 
generated files. And don't forget to edit the deploy.wsdd . After editing the 
wsdl is displayed correctly.

Greetings,
Frank

-Ursprüngliche Nachricht-
Von: Parikh,Pratik [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 4. November 2005 04:20
An: axis-user@ws.apache.org
Betreff: RE: new ?wsdl bug in 1.3?



Did you regenerate the code? BTW,I am having the same problem.

Thanks,
Pratik Parikh


-Original Message-
From: Garret Pick [mailto:[EMAIL PROTECTED]

Sent: Thursday, November 03, 2005 6:58 PM
To: axis-user@ws.apache.org
Subject: new ?wsdl bug in 1.3?

Hi,

Does anyone know if this is a new bug in axis 1.3?  I did not have this problem 
with axis 1.2.2

At http://?wsdl, I see the following
error:



Fault - makeTypeElement() was told to create a type 
"{http://xxx>queryStringList", with no containing element AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:

 faultString: makeTypeElement() was told to create a type 
"{http://xxx>queryStringList", with no containing element
 faultActor:

 faultNode:

 faultDetail:

{http://xml.apache.org/axis/}hostname:xxx



Here is the portion of my WSDL where this is defined:




  
 


   


-

What's somewhat odd is that the service seems to be deployed and working.  
However, I also need the published WSDL to work.

Any work-arounds such as an alternate way to define Java type String[]?

thanks,
Garret







__
Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com

CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
 --



This e-mail and any attachment thereto may contain confidential information 
and/or information protected by intellectual property rights for the exclusive 
attention of the intended addressees named above. Any access of third parties 
to this e-mail is unauthorised. Any use of this e-mail by unintended recipients 
such as total or partial copying, distribution, disclosure etc. is prohibited 
and may be unlawful. When addressed to our clients the content of this e-mail 
is subject to the General Terms and Conditions of GL's Group of Companies 
applicable at the date of this e-mail. 

If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at 
the moment of receipt is authentic, correct and its communication free of 
errors, interruption etc.


Need xsi:type in Map complex type

2005-06-22 Thread Frank Baldiga

I  am using a JBuilder Java client
 (Axis 1.2 I believe ) to send a  complex object containing a
HashMap to a WebSphere 6.0 web service. The Map in the SOAP body does not
contain the xsi:type attribute for the key and value. When I use a WebSphere
client it does. With the JBuilder client,  the WebSphere runtime is
passing a corrupted HashMap to the web service. I reported this to WebSphere
support and they insist that it is a JBuilder problem and that the xsi:type
should be included with the key and value.  I am using a Document/Literal
(wrapped) web service.   Is there a way in Axis or JBuilder to tell
it include the xsi:type? 

Here is how I define the HashMap type
in  the WSDL:
-
 
  
     xmlns="http://www.w3.org/2001/XMLSchema"
      xmlns:impl="http://api.dms.tivoli.com"  
     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   
    
     
     
    
   

   
    
     
    
   
  

  
   
  
   
  

        
         
      
         
              
         
              
         
              
         
                                
               

         
              
           
                     
               ..    
                 
         
      
        


Here is the SOAP request:
--

   
      
         
           
0
           
testWsdl1
           
BaseOMADM
           
      
    
           
           

           
   
           
      DEVICE_PASSWORD
           
      testWsdl1
           
   
           
   
           
      DEVICE_USERNAME
           
      testWsdl1
           
   
           
    
           
          
         
      
   


Thank you,
Frank 
 


Axis Fault

2005-06-08 Thread Frank




Anyone have a clue what my problem might be?  I don't even know where
to start
Calling code:
  XSSRPCService xssSer = new XSSRPCServiceLocator();
  XSSRPC xss = xssSer.getXSSRPC();
  sanitizedDoc = xss.sanitize(inputDoc);




java.lang.reflect.InvocationTargetException
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.reflect.InvocationTargetException
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}hostname:kwdev
java.lang.reflect.InvocationTargetException
    at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
    at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
    at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
    at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    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:424)
    at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    at org.apache.axis.client.Call.invoke(Call.java:2748)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at
kwdev.axis.XSSRPC_jws.XSSRPCSoapBindingStub.sanitize(XSSRPCSoapBindingStub.java:103)
    at DBS.startDBS(DBS.java:75)
    at RunDBS.main(RunDBS.java:10)


WSDL
---
xml
version="1.0" encoding="UTF-8" ?> 

- 

- 
 

- 


 
 

  wsdl:message>



- 


 
 

  wsdl:message>



- 


- 


 
 


 
 

  wsdl:operation>


  wsdl:portType>



- 


 
 


- 


 
 


- 


 
 

  wsdl:input>



- 


 
 

  wsdl:output>


  wsdl:operation>


  wsdl:binding>



- 


- 


 
 

  wsdl:port>


  wsdl:service>


  wsdl:definitions>









RE: Axis and Castor - newbie question - Extending org.apache.axis.encoding.ser.castor.Deserializer

2005-05-18 Thread Frank Schmaus
Hi there,
first: I have the same problem. I'd need Axis to use Castor serializer 
with mapping file. But I can tell you, with the given Castor-Serializer 
it's not possible, as I made my may through the source of it. But it 
would be easyly extendable. Currently I'm extending it, giving the 
mapping file within the wsdd of the type mapping. This should work.

Now my question: The DEserializer interface is completly different. 
Instead of having one easy method serialize(...) that is doing all (and 
where just the castor marshaller is called), there are a lot of methods 
that seem to be called element by element. The 
org.apache.axis.encoding.ser.castor.Deserializer does not seem to do 
much different then the normal Axis Deserializer and I didn't find any 
place where to provide the castor mapping. And another drawback: I 
didn't find an easy way to provide the mapping-file parameter. The 
Serializer directly get's the parameters from the wsdd file, but I 
couldn't find something like that in the deserializer interface.

Did anyone work already with this things, or was overriding a 
deserializer? Any ideas?

Cheers,
Frank
-Original Message-
From: David Easley [mailto:[EMAIL PROTECTED]
Sent: 1. mai 2005 19:00
To: axis-user@ws.apache.org
Subject: Axis and Castor - newbie question
I've been experimenting using Axis and Castor along the lines described
in the IBM article:
http://www-106.ibm.com/developerworks/webservices/library/ws-castor/
Everything's working fine, but I have a few questions:
1. I want to test that the WS messages are being validated against my
schema (after all, this is one of the main reasons I'm using Castor
rather than plain old WSDL2Java). My test set-up involves using the
Castor generated code on the client and server side, so it's impossible
to generate invalid XML! What's the simplest way to test this?
2. On the server side, I already have a set of DTOs that I must use
internal to the app. So I'm currently having to translate between the
Castor generated objects and my own DTOs, which is a pain. Ideally, I'd
like Castor to unmarshall/marshall directly to/from my DTOs. I've read
the provided Castor XML Mapping documentation but I can't see how to
integrate my Castor XML mapping file into my Axis+Castor solution. Can
this be done?
3. If the answer to 2. is yes, can the incoming WS request messages and
the outgoing WS response messages still be validated against my schema?
If the answer to 2 & 3 is yes, yipp!
Thanks for any help,
David


Re: jws compile problem

2005-05-18 Thread Frank






Dan O'Neill wrote:
Actually that
should have been my first reply.. don't know why I was focusin on
tomcat
  
The reason i mentioned the placement of the jws is that in your first
email you were just placing the class file into the jwsClasses folder.
Why not put the original TLS.jws into the tomcathome\webapps\axis
folder?
actually that's what I did initially.  but when axis tried to compile
it when I went to that url it failed.
As a work around I tired to place the manually generated class file in
the classes directory, that too failed. I'm Sorry guess I did not make
that clear. 

  
But if you've got it working, well done, and sorry for this curiousity!
  
Dan
  
  On 5/18/05, Frank <[EMAIL PROTECTED]> wrote:
   found the problem classpath seems to not make a
difference, why I don't
know.  Put the classes files in axis/WEB-INF/classes and it find them. 
And this is where in the Axis documentation? LOL


  
The reason I think its tomcats classpath is that you can (I think)
compile the java without a problem normally? 
  
Also If that doesn't solve it try just putting the jws file straight
into the webapps/axis folder and let axis itself look after the
compiling
That was the problem letting axis compile then.  Just doing
a javac on
them worked directly worked, that was the frustrating problem and was
using the same classpath

Thanks for the help


  
Dan
  
  On 5/17/05, Frank <[EMAIL PROTECTED]>
wrote:
  
  Well
I looked at the catalina.bat file.  Seems it does not use the
CLASSPATH environment variable that is set for the system.  I changed
it to  do that and restarted Tomcat but no good.  Same problem.  

Is there a separate variable used for tomcat for it's classpath beyond
that? like TOMCAT_CLASSPATH or something?

Thanks,

Frank


Dan O'Neill wrote:
This
is probably a stupid thing to say but have you checked tomcats
classpath....
  
Dan
  
  On 5/17/05, Frank <[EMAIL PROTECTED]
>
wrote: 
  I
have a problem that I believe to be a classpath problem (see below),
but I have included the path to the localhost directory, even created a
jar of the class files and still  get the error.  I can compile the
file directory just fine.  But if  I put the class file from a normal
javac in the jwsClasses directory the call to produce the WSDL
(http://kw14:8080/axis/TLS.jws?wsdl)
from the browser say's file not
found. 

Line in java code (the directory structure exists and the java code is
compiled): 
import localhost.axis.OMS_jws.*;

Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


AXIS error
Sorry, something seems to have gone wrong... here are
the
details:
Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {


http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 



	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:


 Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;



  
  
  
  
  
-- 
http://www.spreadfirefox.com/?q=affiliates&id=0&t=82"
  >http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/
  > 

  
  
  
  
  
-- 
"I swear, the next bastard that kisses the ground in front of me is
gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian


  
  
  
  
  
-- 
"I swear, the next bastard that kisses the ground in front of me is
gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian





Re: jws compile problem

2005-05-18 Thread Frank






Dan O'Neill wrote:
I know this is kind
of cheating but and again I don't know if it will
solve your problem but try putting all the axis jar files into a
\webapps\ROOT\WEB-INF\lib folder, where  is tomcats home
folder. These automatically get dynamically added to the classpath when
tomcat is started.
found the problem classpath seems to not make a difference, why I don't
know.  Put the classes files in axis/WEB-INF/classes and it find them. 
And this is where in the Axis documentation? LOL

  
The reason I think its tomcats classpath is that you can (I think)
compile the java without a problem normally? 
  
Also If that doesn't solve it try just putting the jws file straight
into the webapps/axis folder and let axis itself look after the
compiling
That was the problem letting axis compile then.  Just doing a javac on
them worked directly worked, that was the frustrating problem and was
using the same classpath

Thanks for the help

  
Dan
  
  On 5/17/05, Frank <[EMAIL PROTECTED]> wrote:
  
Well I looked at the catalina.bat file.  Seems it does not use the
CLASSPATH environment variable that is set for the system.  I changed
it to  do that and restarted Tomcat but no good.  Same problem.  

Is there a separate variable used for tomcat for it's classpath beyond
that? like TOMCAT_CLASSPATH or something?

Thanks,

Frank


Dan O'Neill wrote:
This
is probably a stupid thing to say but have you checked tomcats
classpath
  
Dan
  
  On 5/17/05, Frank <[EMAIL PROTECTED]>
wrote:
  
  I
have a problem that I believe to be a classpath problem (see below),
but I have included the path to the localhost directory, even created a
jar of the class files and still  get the error.  I can compile the
file directory just fine.  But if  I put the class file from a normal
javac in the jwsClasses directory the call to produce the WSDL
(http://kw14:8080/axis/TLS.jws?wsdl)
from the browser say's file not
found. 

Line in java code (the directory structure exists and the java code is
compiled): 
import localhost.axis.OMS_jws.*;

Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


AXIS error
Sorry, something seems to have gone wrong... here are the
details:
Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {

http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 


	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:

 Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;



  
  
  
  
  
-- 
http://www.spreadfirefox.com/?q=affiliates&id=0&t=82"
  >http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/
  >


  
  
  
  
  
-- 
"I swear, the next bastard that kisses the ground in front of me is
gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian





Re: jws compile problem

2005-05-17 Thread Frank




Well I looked at the catalina.bat file.  Seems it does not use the
CLASSPATH environment variable that is set for the system.  I changed
it to  do that and restarted Tomcat but no good.  Same problem.  

Is there a separate variable used for tomcat for it's classpath beyond
that? like TOMCAT_CLASSPATH or something?

Thanks,

Frank

Dan O'Neill wrote:
This
is probably a stupid thing to say but have you checked tomcats
classpath
  
Dan
  
  On 5/17/05, Frank <[EMAIL PROTECTED]> wrote:
  
I have a problem that I believe to be a classpath problem (see below),
but I have included the path to the localhost directory, even created a
jar of the class files and still  get the error.  I can compile the
file directory just fine.  But if  I put the class file from a normal
javac in the jwsClasses directory the call to produce the WSDL
(http://kw14:8080/axis/TLS.jws?wsdl)
from the browser say's file not
found. 

Line in java code (the directory structure exists and the java code is
compiled): 
import localhost.axis.OMS_jws.*;

Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


AXIS error
Sorry, something seems to have gone wrong... here are the
details:
Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {
http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 

	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
 Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;



  
  
  
  
  
-- 
http://www.spreadfirefox.com/?q=affiliates&id=0&t=82">http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/>





axis/jws compile problem

2005-05-17 Thread Frank








I have a problem that I believe to be a classpath problem (see below),
but I have included the path to the localhost directory, even created a
jar of the class files and still  get the error.  I can compile the
file directory just fine.  But if  I put the class file from a normal
javac in the jwsClasses directory the call to produce the WSDL
(http://kw14:8080/axis/TLS.jws?wsdl)
from the browser say's file not
found. 

Line in java code (the directory structure exists and the java code is
compiled): 
import localhost.axis.OMS_jws.*;

Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 
	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39: Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;







jws compile problem

2005-05-17 Thread Frank




I have a problem that I believe to be a classpath problem (see below),
but I have included the path to the localhost directory, even created a
jar of the class files and still  get the error.  I can compile the
file directory just fine.  But if  I put the class file from a normal
javac in the jwsClasses directory the call to produce the WSDL
(http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file not
found. 

Line in java code (the directory structure exists and the java code is
compiled): 
import localhost.axis.OMS_jws.*;

Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 
	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39: Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;







Re: DocumentBuilder from byte/packet

2005-05-13 Thread Frank
No I think that will work just fine.
Thank you.
Frank
Mike Haller wrote:
Any drawbacks on using input streams?
  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  DocumentBuilder db = dbf.newDocumentBuilder();
  {
 String xml = "";
 StringReader reader = new StringReader(xml);
 InputSource source = new InputSource(reader);
 Document doc = db.parse(source);
 System.out.println(doc.getChildNodes().item(0));
  }
  {
 byte[] xml = "".getBytes();
 InputStream inputstream = new ByteArrayInputStream(xml);
 Document doc = db.parse(inputstream);
 System.out.println(doc.getChildNodes().item(0));
  }
Frank schrieb:
Was tring to figure out the best way to take an XML document that I 
have read in from a datagram socket stored in a DatagramPacket(can 
convert to byte or String etc) to be able to parse it using 
DocumentBuilder using a DOM parse. All the methods seem to work off 
of a file or a steam.  any thoughts?

Thanks,
Frank






DocumentBuilder from byte/packet

2005-05-12 Thread Frank
Was tring to figure out the best way to take an XML document that I have 
read in from a datagram socket stored in a DatagramPacket(can convert to 
byte or String etc) to be able to parse it using DocumentBuilder using a 
DOM parse. All the methods seem to work off of a file or a steam.  any 
thoughts?

Thanks,
Frank



Re: Axis and JAX-RPC

2005-05-10 Thread Frank




Anne,
    Thanks!

Frank

Anne Thomas Manes wrote:

  JAX-RPC is simply the programming API. JWSDP and Axis are SOAP
implementations, and JAX-RPC is the API you use to invoke SOAP
requests.

There are lots of other JAX-RPC implementations. Every J2EE V1.4
compliant app service includes an implementation of JAX-RPC (WAS 6,
WebLogic 8, Oracle 10g, JBoss, etc). In addition, Systinet and Cape
Clear support JAX-RPC.

Anne

On 5/10/05, Frank <[EMAIL PROTECTED]> wrote:
  
  
 
 
 Anne Thomas Manes wrote:
 
 JAX-RPC is the standard Java API for SOAP. (JAX-RPC is to SOAP as JDBC
is to DBMS and as JMS is to MOM.) Most SOAP implementations for Java
implement the JAX-RPC API -- including Axis.
 So Axis is sort of a layer of abstraction above using JAX-RPC alone?
 
 
I assume your request for comparison is with Sun's reference
implementation of JAX-RPC, which is distributed as part of Sun's Java
Web Services Developer Pack (JWSDP).
 
 Yea you got it.  That's what i have been looking at. Getting it to work was
a little ugly. 

 
 
I, too, think that Axis is much easier to use than Sun's JWSDP.

I suggest you start with the Axis documentation and the wiki. You can
also find lots of tutorials for Axis using Google.

Anne

On 5/10/05, Frank <[EMAIL PROTECTED]> wrote:
 
 
 I'm still fairly new to Web Services and XML. Still trying to
understand how to create a Web service using Java. It seems you have a
number of options. I was first looking at doing it in JAX-RPC, java code
simple for the most part but the buld.xlm was real fun to get to work
fro even the hello world. Just found this Apache Axis, seems to be
easier. Any one provide any advice etc on this, points to
reviews/comparisons?

Thanks,

Frank


 
 
 


  
  

  





Re: Axis and JAX-RPC

2005-05-10 Thread Frank






Anne Thomas Manes wrote:

  JAX-RPC is the standard Java API for SOAP. (JAX-RPC is to SOAP as JDBC
is to DBMS and as JMS is to MOM.)  Most SOAP implementations for Java
implement the JAX-RPC API -- including Axis.

So Axis is sort of a layer of abstraction above using JAX-RPC alone?

  

I assume your request for comparison is with Sun's reference
implementation of JAX-RPC, which is distributed as part of Sun's Java
Web Services Developer Pack (JWSDP).


Yea you got it.  That's what i have been looking at. Getting it to work
was a little ugly. 

  

I, too, think that Axis is much easier to use than Sun's JWSDP.

I suggest you start with the Axis documentation and the wiki. You can
also find lots of tutorials for Axis using Google.

Anne

On 5/10/05, Frank <[EMAIL PROTECTED]> wrote:
  
  

I'm still fairly new to Web Services and XML.  Still trying to
understand how to create a Web service using Java.  It seems you have a
number of options. I was first looking at doing it in JAX-RPC, java code
simple for the most part but the buld.xlm was real fun to get to work
fro even the hello world.  Just found this Apache Axis,  seems to be
easier.  Any one provide any advice etc on this, points to
reviews/comparisons?

Thanks,

Frank



  
  

  





Axis and JAX-RPC

2005-05-10 Thread Frank

I'm still fairly new to Web Services and XML.  Still trying to 
understand how to create a Web service using Java.  It seems you have a 
number of options. I was first looking at doing it in JAX-RPC, java code 
simple for the most part but the buld.xlm was real fun to get to work 
fro even the hello world.  Just found this Apache Axis,  seems to be 
easier.  Any one provide any advice etc on this, points to 
reviews/comparisons?

Thanks,
Frank