Re: AW: I give up (let's change the subject line, but try to be constructive)
Or - if possible - to this list. Or in a JIRA-doc issue (don't know if that exists), so someone is able to create some documentation for it? Kind regards, B. de Bruin Christian Seiler wrote: I really hate to do that :-) but *ME TOO* Christian Seiler InteRes GmbH Rheinstrasse 44-46 64283 Darmstadt Phone +496151 30740 18 Fax +496151 30740 11 -Ursprüngliche Nachricht- Von: Paul Grillo [mailto:[EMAIL PROTECTED] Gesendet: Montag, 31. Oktober 2005 19:40 An: axis-user@ws.apache.org Betreff: RE: I give up (let's change the subject line, but try to be constructive) If you found a way to use classes generated by XMLBeans in Axis Client/Server, I would certainly be interested in and very much appreciate anything you could send me. And anything needed to ensure the client generated stubs work as well. -Original Message- From: Nathaniel G. Auvil [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 12:57 PM To: axis-user@ws.apache.org Subject: RE: I give up (let's change the subject line, but try to be constructive) We are using XMLBeans with Axis. I found a serializer and deserializer on a website some time ago. I can email them to you if you would like. I had to add a custom ant task to modify the server-config.wsdd to change to the XMLBeans serializer but it was no big deal. --- Paul Grillo <[EMAIL PROTECTED]> wrote: Let me be more specific about the 2 areas that have troubled me since I was second in line of kicking off this long thread. I provide this as input and food for thought. As I mentioned previously, I have no axe to grind. I'm fairly well aware of tradeoffs with open source and no open source. We spend tons of money on oracle and bea support, such as it is. There are no guarantees of help when you need it whether you pay for it or not. I also would never blame or take Axis or any product like that to task for the fact that WS_Profile and SOAP is a pain. It is a pain - but it has strong advantages. REST, for example, is a good solution for some problems. REST assured, however, that it could not possibly solve the problem I had to solve which was to communicate with a .NET vendor and swap SOAP messages of which certain elements were signed and encrypted and depended on ws-addressing etc. AXIS 1.2/WSS4J solved this problem for me very nicely, and I thank them. I guess I would say I'm not giving up, I may (hope to) return. But I've got to solve a few of my own issues. Okay, the 2 areas I would like to zero in on 1) AXIS 1 or AXIS2? 2 different projects? any Migration? Have I been left to solve it for myself? The move from Axis 1 to Axis 2 and the way it feels is a little disconcerting. It seems to me (and has been pointed out) that most energy is going into Axis2. Fine, but most deployments have and are running in Axis 1. What bothers me is the feeling that I get that Axis2 is the replacement, and yet there doesn't seem to be any easy migration. If you look at the migration blurb in Axis 2, it spends time telling me why Axis2 is better, but not how to migrate. It almost leaves me with this feeling that I made a mistake going with Axis 1. I ask myself are these the same developes? Axis 1 and 2? Are they competing? So I'm left with the feeling that I'm getting little help on Axis 1 because the efforts are toward Axis 2. And when I read Axis 2 doc, all I'm hearing is it is so much better than Axis 1. It's tough to swallow since I'm sitting on at least one deployment of Axis 1. Am I now being told that I made a mistake? support is dwindling? move to Axis 2? Make all the appropriate changes? This plays into the overall uneasiness. You look for a commitment from the producers/developers to the users. Migration tools for version to version. Make sure users have not been left hanging. Believe me it makes you think twice when you choose any technology, open source or not. I've been through this sort of thing with products that I've spent a lot of money on. I've worked with open source projects that were absolutely committed to the users from version to version with respect to backwards compatibility. 2) Please let me decide what technology I use for serialization/deserialization, not the Web Services Framework. I am in "total" agreement with Guy's # 3 suggestion attached below. Then next issue is Serialization independence. I really need serialization independence. It cannot be chosen or generated for me by the actual Web Services Framework I chooose, but should use mine. My job within my company is to provide basic services to a number of development teams, each of which provide solutions in a totally different domain. I provide them with interfaces that enable our back office services in any number of ways. These groups don't even really know if or what network is involved. In the context of Web Services, these groups only interface will be related to the generated WSDL/XSD Objects.
Re: Deployment problem with Axis 1.2.1/Tomcat 5.5.9/ JDK 1.5
Unfortunately that did not do the trick, still have the same error :-/ Developer Developer wrote: I got similar error, I solved it by copying all the jar files from axis/lib to tomcat shared lib ( i.e ../shared/lib). On 10/10/05, *Bolke de Bruin* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I did some further digging (thanks for the pointers), but still I am facing the same problem. The Service class does get accessed (I have a static part which logs things), but still I have 2 errors (and no service). I did some searching on the net but could not find anything except that my "typemappings/beanmappings" might be incorrect. Mind you these mappings are copied straight from a tomcat 5.027 installation and do work there. I attached the two errors, maybe someone has seen them before? Kind regards, Bolke Larry Meadors wrote: > Look in your logs, and see if you have an earlier > "ExceptionInInitializerError" somewhere. > > I have seen those cause later "NoClassDefFoundError" exceptions to be thrown. > > Larry > > > On 10/8/05, Bolke de Bruin <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: >> Hi, >> >> I am having trouble getting a service deployed on a system with above >> specifications. "HappyAxis" says everything is find except for one >> optional library (which I am not using). >> >> The service bails out with "java.lang.NoClassDefFoundError ". Of course I >> tried digging a little further into this (I needed to add some output to >> the axis libs - I could not find out which class failed to load). Weird >> thing is that if fails loading my 'main service'-class. I confirmed it >> is in one of the jars in the lib dir. Other classes of the same jar, do >> actually load. So I am a bit lost on this: >> >> = >> Trying to load: nl.aub.ticketservice.response.BookedSeating >> Trying to load: org.apache.axis.handlers.http.URLMapper >> Trying to load: org.apache.axis.handlers.http.HTTPAuthHandler >> Trying to load: org.apache.axis.handlers.SimpleSessionHandler >> - Hibernate 3.0.5 >> - hibernate.properties not found >> - using CGLIB reflection optimizer >> - using JDK 1.4 java.sql.Timestamp handling >> - configuring from resource: /hibernate.cfg.xml >> - Configuration resource: /hibernate.cfg.xml >> - Mapping resource: Client.hbm.xml >> Trying to load: nl.aub.ticketservice.Service >> - Exception: >> java.lang.NoClassDefFoundError >> = >> >> ('Trying to load' is extra output - all the nl.* classes are in the same >> jar) >> >> Regarding the libraries this is a basic install of tomcat 5.5 no >> extra's. All libraries are the lib dir of the application. I did not put >> any (extra) libraries in common/lib. >> >> I also attached the happyaxis output. Maybe someone is able to give me >> some directions where to look for this error? >> >> Thanks in advance & Kind regards, >> >> B. de Bruin >> >> >> Axis Happiness Page >> Examining webapp configuration >> >> Needed Components >> Found SAAJ API (javax.xml.soap.SOAPMessage) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\saaj.jar >> Found JAX-RPC API (javax.xml.rpc.Service) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\jaxrpc.jar >> Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\axis.jar >> Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource ) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\commons-discovery-0.2.jar >> Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.5\bin\commons- logging-api.jar >> Found Log4j (org.apache.log4j.Layout) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\log4j-1.2.9.jar >> Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl ) at C:\Program Files\Apache Software Foundation\Tomcat 5
Re: Deployment problem with Axis 1.2.1/Tomcat 5.5.9/ JDK 1.5
I did some further digging (thanks for the pointers), but still I am facing the same problem. The Service class does get accessed (I have a static part which logs things), but still I have 2 errors (and no service). I did some searching on the net but could not find anything except that my "typemappings/beanmappings" might be incorrect. Mind you these mappings are copied straight from a tomcat 5.027 installation and do work there. I attached the two errors, maybe someone has seen them before? Kind regards, Bolke Larry Meadors wrote: Look in your logs, and see if you have an earlier "ExceptionInInitializerError" somewhere. I have seen those cause later "NoClassDefFoundError" exceptions to be thrown. Larry On 10/8/05, Bolke de Bruin <[EMAIL PROTECTED]> wrote: Hi, I am having trouble getting a service deployed on a system with above specifications. "HappyAxis" says everything is find except for one optional library (which I am not using). The service bails out with "java.lang.NoClassDefFoundError". Of course I tried digging a little further into this (I needed to add some output to the axis libs - I could not find out which class failed to load). Weird thing is that if fails loading my 'main service'-class. I confirmed it is in one of the jars in the lib dir. Other classes of the same jar, do actually load. So I am a bit lost on this: = Trying to load: nl.aub.ticketservice.response.BookedSeating Trying to load: org.apache.axis.handlers.http.URLMapper Trying to load: org.apache.axis.handlers.http.HTTPAuthHandler Trying to load: org.apache.axis.handlers.SimpleSessionHandler - Hibernate 3.0.5 - hibernate.properties not found - using CGLIB reflection optimizer - using JDK 1.4 java.sql.Timestamp handling - configuring from resource: /hibernate.cfg.xml - Configuration resource: /hibernate.cfg.xml - Mapping resource: Client.hbm.xml Trying to load: nl.aub.ticketservice.Service - Exception: java.lang.NoClassDefFoundError = ('Trying to load' is extra output - all the nl.* classes are in the same jar) Regarding the libraries this is a basic install of tomcat 5.5 no extra's. All libraries are the lib dir of the application. I did not put any (extra) libraries in common/lib. I also attached the happyaxis output. Maybe someone is able to give me some directions where to look for this error? Thanks in advance & Kind regards, B. de Bruin Axis Happiness Page Examining webapp configuration Needed Components Found SAAJ API (javax.xml.soap.SOAPMessage) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\saaj.jar Found JAX-RPC API (javax.xml.rpc.Service) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\jaxrpc.jar Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\axis.jar Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\commons-discovery-0.2.jar Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.5\bin\commons-logging-api.jar Found Log4j (org.apache.log4j.Layout) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\log4j-1.2.9.jar Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\wsdl4j-1.5.1.jar Found JAXP implementation (javax.xml.parsers.SAXParserFactory) at an unknown location Found Activation API (javax.activation.DataHandler) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\activation.jar Optional Components Found Mail API (javax.mail.internet.MimeMessage) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\mail.jar Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar XML Security is not supported See http://xml.apache.org/security/ Found Java Secure Socket Extension (javax.net.ssl.SSLSocketFactory) at an unknown location The core axis libraries are present. 1 optional axis library is missing Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib jaxrpc.jar and saaj.jar are two such libraries. Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient Examining Application Server Servlet version 2.4 XML Parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl XML ParserLocation an unknown location Exami
Deployment problem with Axis 1.2.1/Tomcat 5.5.9/ JDK 1.5
Hi, I am having trouble getting a service deployed on a system with above specifications. "HappyAxis" says everything is find except for one optional library (which I am not using). The service bails out with "java.lang.NoClassDefFoundError". Of course I tried digging a little further into this (I needed to add some output to the axis libs - I could not find out which class failed to load). Weird thing is that if fails loading my 'main service'-class. I confirmed it is in one of the jars in the lib dir. Other classes of the same jar, do actually load. So I am a bit lost on this: = Trying to load: nl.aub.ticketservice.response.BookedSeating Trying to load: org.apache.axis.handlers.http.URLMapper Trying to load: org.apache.axis.handlers.http.HTTPAuthHandler Trying to load: org.apache.axis.handlers.SimpleSessionHandler - Hibernate 3.0.5 - hibernate.properties not found - using CGLIB reflection optimizer - using JDK 1.4 java.sql.Timestamp handling - configuring from resource: /hibernate.cfg.xml - Configuration resource: /hibernate.cfg.xml - Mapping resource: Client.hbm.xml Trying to load: nl.aub.ticketservice.Service - Exception: java.lang.NoClassDefFoundError = ('Trying to load' is extra output - all the nl.* classes are in the same jar) Regarding the libraries this is a basic install of tomcat 5.5 no extra's. All libraries are the lib dir of the application. I did not put any (extra) libraries in common/lib. I also attached the happyaxis output. Maybe someone is able to give me some directions where to look for this error? Thanks in advance & Kind regards, B. de Bruin Axis Happiness Page Examining webapp configuration Needed Components Found SAAJ API (javax.xml.soap.SOAPMessage) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\saaj.jar Found JAX-RPC API (javax.xml.rpc.Service) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\jaxrpc.jar Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\axis.jar Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\commons-discovery-0.2.jar Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.5\bin\commons-logging-api.jar Found Log4j (org.apache.log4j.Layout) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\log4j-1.2.9.jar Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\wsdl4j-1.5.1.jar Found JAXP implementation (javax.xml.parsers.SAXParserFactory) at an unknown location Found Activation API (javax.activation.DataHandler) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\activation.jar Optional Components Found Mail API (javax.mail.internet.MimeMessage) at C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\mail.jar Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar XML Security is not supported See http://xml.apache.org/security/ Found Java Secure Socket Extension (javax.net.ssl.SSLSocketFactory) at an unknown location The core axis libraries are present. 1 optional axis library is missing Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib jaxrpc.jar and saaj.jar are two such libraries. Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient Examining Application Server Servlet version 2.4 XML Parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl XML ParserLocation an unknown location Examining System Properties java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path=C:\Program Files\Java\jre1.5.0_04\bin java.vm.version=1.5.0_04-b05 shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar java.vm.vendor=Sun Microsystems Inc. java.vendor.url=http://java.sun.com/ path.separator=; java.vm.name=Java HotSpot(TM) Client VM tomcat.util.buf.StringCache.byte.enabled=true file.encoding.pkg=sun.io user.country=NL sun.os.patch.level=Service Pack 2 java.vm.specification.name=Java Virtual Machine Specification user.dir=C:\WINDOWS\system32 java.runtime.version=1.5.0_04-b05 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed os.arch=x86 java.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp
AXIS passes NullPointer when bean has datetime/calendar field which is nilled by invocation
Hello, Along the lines of my previous question (see:http://marc.theaimsgroup.com/?l=axis-user&m=112397969001363&w=2) is this one. My service (axis 1.2.1 - doc/lit) has two methods (for simplicity): public boolean authenticate(ClientLoginRequest) public EventListResponse[] eventList(EventListRequest) ClientLoginRequest has two fields (of course with corresponding getters/setters): String name String password EventListRequest als has two fields (again with corresponding getters and setters) String location Calendar startDate Now if I invoke an authenticate request with the fields set to null, I receive a bean with nulled fields. However if I invoke an eventList request with startDate (!) set null, I receive a nullpointer. Is this expected behaviour? Am I doing something which I am not supposed to do or is this a bug? Kind regards, Bolke