Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7
On Fri, Jan 15, 2010 at 1:55 PM, jcaristi jcari...@whisolutions.com wrote: My Axis2/Spring application functions properly on Jetty 7 with Axis2 1.4.1. When I attempt to upgrade to Axis2 1.5.1, the Jetty context fails to start with the following exceptions. I have searched and found similar issues on Weblogic, but nothing for Jetty. I did try switching Jetty to prefer the parent classloader, but this causes other problems. I am using version 7.0.1.v20091125 of the jetty-maven-plugin. Can someone help? 2010-01-15 11:35:28.406:WARN::FAILED AxisServlet: javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory coul d not be instantiated: java.lang.InstantiationException Do you have a Caused by section in your stacktrace? Anyways, one thing to check is to make sure you have the right stax-api and wstx-asl jars in your classpath. - R
Re: Axis2 1.5.1 Upgrade Problem with Spring and Jetty 7
On Fri, Jan 15, 2010 at 3:12 PM, jcaristi jcari...@whisolutions.com wrote: iksrazal wrote: Do you have a Caused by section in your stacktrace? Anyways, one thing to check is to make sure you have the right stax-api and wstx-asl jars in your classpath. - R There is no caused by section. Also, it looks like these jars are dependencies of only the axis2-spring jar. A search of the Maven dependency:tree for stax and wstx lists only one for each, both under axis2-spring. I checked the WEB-INF lib folder of the generated WAR, and there are no other stax or wstx jars there. Here is the axis2-spring section of the dependency tree: Not sure what the current maven deps are for axis2-spring, but anyways, I can pretty much guarantee those jars have nothing to do with it, but are an integral part to many other parts of axis2. I'd look to see if you have those jars / classes in a classloader with a higher precedence. axis2-web/HappyAxis.jsp Will show your path to the stax jars you are using. If those jars are being used from your WEB-INF/lib then I'm out of ideas. - R
Re: Too many open files
On Tue, Dec 15, 2009 at 12:18 PM, h...@welinux.cl wrote: Hi, I'm running axis 1.4.1 on tomcat 6.0.16. The web applications suddenly crush with Too many open files appearing in catalina.out, after increasing the limits using ulimit and /etc/security/limits .. the amount of open files is still very large, looking forward i found that the user running tomcat has 4000 files in the temp folder of tomcat like this: Try upgrading. Here's the release notes: October 23, 2009 - Apache Axis2/Java Version 1.5.1 Released! The 1.5.1 version fixes some bugs , including most notably a connection starvation issue that would cause a large number of sockets stuck in CLOSE_WAIT or TIME_WAIT. You can verify your problem is CLOSE_WAIT related via netstat -anc | grep CLOSE_WAIT - it probably is. - R
Re: A spring resource xml file, Axis, Tomcat, and Eclipse can be found but can't be found
On Mon, Dec 7, 2009 at 5:55 PM, nhcoder andrewnbenja...@hotmail.com wrote: Hi, Since I need to deploy it on a production machine, I packaged my service into an aar file using the axis2 packaging Eclipse plugin, made absolutely sure the jar file with the Spring xml file was in the aar file, and decided to deploy it to an external Tomcat instance. Now when I hit the service I get the following error: Exception parsing XML document from class path resource [license-beans2.xml]; nested exception is java.io.FileNotFoundException: class path resource [license-beans2.xml] cannot be opened because it does not exist. You probably don't need any of your spring stuff in the aar file - try putting everything spring related in WEB-INF/classes. Try that and let us know what happens. - R
Re: A spring resource xml file, Axis, Tomcat, and Eclipse can be found but can't be found
On Mon, Dec 7, 2009 at 6:27 PM, robert lazarski robertlazar...@gmail.com wrote: On Mon, Dec 7, 2009 at 5:55 PM, nhcoder andrewnbenja...@hotmail.com wrote: Hi, Since I need to deploy it on a production machine, I packaged my service into an aar file using the axis2 packaging Eclipse plugin, made absolutely sure the jar file with the Spring xml file was in the aar file, and decided to deploy it to an external Tomcat instance. Now when I hit the service I get the following error: Exception parsing XML document from class path resource [license-beans2.xml]; nested exception is java.io.FileNotFoundException: class path resource [license-beans2.xml] cannot be opened because it does not exist. You probably don't need any of your spring stuff in the aar file - try putting everything spring related in WEB-INF/classes. Try that and let us know what happens. - R I meant WEB-INF/lib . Also, are you sure license-beans2.xml is related to spring? - R
Re: A spring resource xml file, Axis, Tomcat, and Eclipse can be found but can't be found
On Mon, Dec 7, 2009 at 7:03 PM, nhcoder andrewnbenja...@hotmail.com wrote: I moved all the jars to axis2's WEB-INF/lib and it worked. Thanks. While it works because I only have one service, doesn't that defeat the purpose of keeping the dependencies of different aar's separate from each other since every aar can see what is in that lib directory? Thanks, Andy You can have as many services as you want with one aar and one spring instance. You can have lots of aar's with one spring instance. The only time, imho, that spring inside the aar makes sense is when you want _isolation_ of each spring instance from each other. One of the advanced use cases of an aar is isolation from each other, and spring in the aar can give you that same isolation. I just happen to think its not that common of a requirement - ymmv. - R iksrazal wrote: On Mon, Dec 7, 2009 at 6:27 PM, robert lazarski robertlazar...@gmail.com wrote: On Mon, Dec 7, 2009 at 5:55 PM, nhcoder andrewnbenja...@hotmail.com wrote: Hi, Since I need to deploy it on a production machine, I packaged my service into an aar file using the axis2 packaging Eclipse plugin, made absolutely sure the jar file with the Spring xml file was in the aar file, and decided to deploy it to an external Tomcat instance. Now when I hit the service I get the following error: Exception parsing XML document from class path resource [license-beans2.xml]; nested exception is java.io.FileNotFoundException: class path resource [license-beans2.xml] cannot be opened because it does not exist. You probably don't need any of your spring stuff in the aar file - try putting everything spring related in WEB-INF/classes. Try that and let us know what happens. - R I meant WEB-INF/lib . Also, are you sure license-beans2.xml is related to spring? - R -- View this message in context: http://old.nabble.com/A-spring-resource-xml-file%2C-Axis%2C-Tomcat%2C-and-Eclipse-can-be-found-but-can%27t-be-found-tp26684011p26685040.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Attempted read on closed stream / unable to read second attachement
On Tue, Dec 1, 2009 at 9:57 PM, vasu ts vasu_...@hotmail.com wrote: My WSDL contains some s:extension/ elements and these had some issues when I used the default ADB bindings. When I read the below statement from axis2 documentation I started using XML beans binding. If the below API doesn't work with XMLBeans and MTOM, can someone point me to the correct API?. When I started debugging this issue I see that second attachment stream was being read to a certain extent and then suddenly i see the exception. http://ws.apache.org/axis2/1_0/adb/adb-howto.html ADB is meant to be a 'Simple' databinding framework and was not meant to compile all types of schemas. The following limitations are the most highlighted. Complex Extensions and Restrictions, Simple Extensions and Restrictions are not supported. The most recent docs are here: http://ws.apache.org/axis2/1_5_1/adb/adb-howto.html You could try jaxb. AFAIK its comes very close, if not completely, to the 100% xml schema support that xmlbeans claims. You could then use jaxws / jaxb I suppose to get your mtom support - jaxws supports mtom but I'm not sure if that support is in axis2, though it probably is since IBM uses axis2 in their products and they have jaxws docs for mtom. - R
Re: Axis2 and ApplicationContext
On Wed, Dec 2, 2009 at 12:52 PM, nhcoder andrewnbenja...@hotmail.com wrote: Thanks for replying, though I know the jars are in the right place. This is apparently an issue between Spring and Axis2 working together. The NoClassDefFoundError you have makes me highly suspicious of that. That should never happen if the jars are in the right place and you try to get a reference to that class from the same classloader. Spring and Axis2 working together does just that perfectly fine for plenty of people. Be sure to follow the docs carefully: http://ws.apache.org/axis2/1_5_1/spring.html - R
Re: Axis2 and ApplicationContext
On Tue, Dec 1, 2009 at 5:18 PM, nhcoder andrewnbenja...@hotmail.com wrote: The problem that appears in the log is: [ERROR] org/springframework/context/ApplicationContext java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unk nown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) etc etc First step here I think is to put the spring jars in your WEB-INF/lib, as you would in any other spring app. Then try to get a reference to it as you are doing. From there you can get on to more fancy stuff. Let us know how that goes. - R
Re: Attempted read on closed stream / unable to read second attachement
On Tue, Dec 1, 2009 at 6:51 PM, vasu ts vasu_...@hotmail.com wrote: Hi all, Binding: XML beans Axis2 : 1.4.1 and 1.5.1 My web service returns two attachments when an operation is executed. I am able to read the first attachment but when I try to read the second attachment its throwing Attempted read on closed stream exception. I looked at wireshark's logs and I see all the binary data for the attachments is being transferred correctly from the web service server to the client I looked through the user list archives and also tried several ways of reading the attachments but every time I see the same issue. Below is the sample code stub._getServiceClient().getOptions().setProperty( Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE ); MessageContext messageContext = stub._getServiceClient().getLastOperationContext().getMessageContext( WSDL2Constants.MESSAGE_LABEL_IN ); Attachments attachments = messageContext.getAttachmentMap(); if ( attachments != null ) { String[] contentIds = attachments.getAllContentIDs(); for ( int i = 0; i contentIds.length; i++ ) { DataHandler dataHandler = messageContext.getAttachment( contentIds[i] ); String filePath = m_temp + contentIds[i]; try { FileOutputStream fos = new FileOutputStream( filePath ); dataHandler.writeTo( fos ); fos.flush(); fos.close(); } catch ( IOException ioe ) { ioe.printStackTrace(); } } } any ideas on how I can resolve this issues? ___ Just a quick thought that may be way off: Not sure if messageContext.getAttachmentMap() works with xmlbeans. Might be ADB only. In fact, looking at the docs and from previous experience, I'm pretty sure SWA - you don't mention what you are using - is ADB only. Not sure about the jaxws stuff. Anyways, if you control the client, I'd just send the attachment as a String and accept the 30% bigger payload as unimportant if possible - often its not worth worrying about. Or switch to ADB on the server side. Or implement SWA or whatever for xmlbeans :-) . - R
Re: Attempted read on closed stream / unable to read second attachement
On Tue, Dec 1, 2009 at 7:01 PM, robert lazarski robertlazar...@gmail.com wrote: On Tue, Dec 1, 2009 at 6:51 PM, vasu ts vasu_...@hotmail.com wrote: Hi all, Binding: XML beans Axis2 : 1.4.1 and 1.5.1 My web service returns two attachments when an operation is executed. I am able to read the first attachment but when I try to read the second attachment its throwing Attempted read on closed stream exception. I looked at wireshark's logs and I see all the binary data for the attachments is being transferred correctly from the web service server to the client I looked through the user list archives and also tried several ways of reading the attachments but every time I see the same issue. Below is the sample code stub._getServiceClient().getOptions().setProperty( Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE ); MessageContext messageContext = stub._getServiceClient().getLastOperationContext().getMessageContext( WSDL2Constants.MESSAGE_LABEL_IN ); Attachments attachments = messageContext.getAttachmentMap(); if ( attachments != null ) { String[] contentIds = attachments.getAllContentIDs(); for ( int i = 0; i contentIds.length; i++ ) { DataHandler dataHandler = messageContext.getAttachment( contentIds[i] ); String filePath = m_temp + contentIds[i]; try { FileOutputStream fos = new FileOutputStream( filePath ); dataHandler.writeTo( fos ); fos.flush(); fos.close(); } catch ( IOException ioe ) { ioe.printStackTrace(); } } } any ideas on how I can resolve this issues? ___ Just a quick thought that may be way off: Not sure if messageContext.getAttachmentMap() works with xmlbeans. Might be ADB only. In fact, looking at the docs and from previous experience, I'm pretty sure SWA - you don't mention what you are using - is ADB only. Not sure about the jaxws stuff. Anyways, if you control the client, I'd just send the attachment as a String and accept the 30% bigger payload as unimportant if possible - often its not worth worrying about. Or switch to ADB on the server side. Or implement SWA or whatever for xmlbeans :-) . - R Ah, MTOM. I'm 99% sure its ADB only. - R
Re: hibernate and axis2
On Tue, Oct 6, 2009 at 11:20 AM, TomazM tomaz.majerh...@arnes.si wrote: robert lazarski wrote: On Wed, Sep 30, 2009 at 9:53 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses the TCCL and that won't work directly in an aar without some extra effort. It should be enough to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter So where to put Hibernate persistance.xml in axis2 dir structure per one service? Regards, Tomaz For just one service I'd say WEB-INF/classes , ie, the same location if you weren't using axis2. Axis2 should be able to use any class at that classloader level . See the spring guide for more info as the concepts are similar. - R
Re: hibernate and axis2
On Tue, Sep 29, 2009 at 10:48 PM, Tony Ennis tony.en...@insightbb.com wrote: Ahhh. Slowly the light comes on. So, you're saying a minimal aar file, and then a separately constructed war that gets embedded into an Axis2 directory that's in the classpath. I wasn't aware you could plop a war file in there indiscriminately - I thought they were only for deployed applications like webapps. I will try this first thing tomorrow. Just to be clear, I'm saying I'd do something like this: ./myService.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml ./myWAR ./WEB-INF/lib ./WEB-INF/lib/hibernate3.jar ./WEB-INF/classes ./WEB-INF/classes/persistence.xml ./WEB-INF/classes/com/mycompany/* ./WEB-INF/services ./WEB-INF/services/myService.aar From there, I'd verify that hibernate is working in the war via a non-axis2 class like a servlet etc - from there integrating hibernate into axis2 is a separate and easier problem, ie, just access it the same way your non-axis2 classes do. - R
Re: hibernate and axis2
On Wed, Sep 30, 2009 at 9:53 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses the TCCL and that won't work directly in an aar without some extra effort. It should be enough to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter Andreas Right. With only one end user aar and without the OP showing a need to have a hibernate session isolated to axis2, however, its probably overkill. Its possible to do spring and/or hibernate per aar, I just think it rarely makes sense. Just my 2 brazilian centavos :-) . - R
Re: hibernate and axis2
On Wed, Sep 30, 2009 at 1:41 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I started this morning with the Andreas' solution as it is easiest to implement. I got farther. The web service finds the persistence file and starts mapping the classes. Now I am getting the following exception, which amuses me somehow: snip Regarding Robert's comment, I have no need for a session to isolated to axis2, but that's going to be the effect. The user will lob a text file at my web service, and my web service will make some response. That's the entire activity. Usage volume will be medium-low. I may add more end-points, but I don't know that I'll be adding any more aar files. Kool, glad to hear you're making some progress. - R
Re: hibernate and axis2
On Tue, Sep 29, 2009 at 6:34 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I'm at wit's end. Now the situation is that I can connect to the database using my persistence.xml settings when I run from my IDE (intellij.) Previously, I was using a properties file. So that is a small amount of progress. snip aar file: --- lib --- --- antlr-2.7.6.jar --- --- asm-2.2.jar --- --- asm-attrs-2.2.jar --- --- bsh-2.0b1.jar --- --- c3p0-0.9.1.jar --- --- cglib-nodep-2.2.jar --- --- commons-collections-3.1.jar --- --- commons-logging-1.0.4.jar --- --- dom4j-1.6.1.jar --- --- ehcache-1.2.3.jar --- --- ejb3-persistence.jar --- --- freemarker.jar --- --- hibernate-annotations.jar --- --- hibernate-commons-annotations.jar --- --- hibernate-core.jar --- --- hibernate-entitymanager.jar --- --- hibernate-tools.jar --- --- hibernate3.jar I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses the TCCL and that won't work directly in an aar without some extra effort. ... --- --- this-is-my-jar.jar --- --- --- com --- --- --- mycompany --- --- --- --- mypackage --- --- --- --- --- *.class --- --- --- META-INF --- --- --- --- persistence.xml --- META-INF --- --- services.xml All this can be loaded in your WEB-INF/classes and WEB-INF/lib as well. I'd try getting your db stuff to work in a war , then try to get your Service Class to access it - its much easier that way. The only thing really required in an aar is your services.xml . Here's the first few lines of the exception I get in every case: javax.persistence.PersistenceException: No Persistence provider for EntityManager named Snapshot at As I said I wouldn't try loading this in your aar without a good reason due to classloader issues. - R
Re: aar and hibernate
On Fri, Sep 25, 2009 at 5:41 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I have a web service that performs a simple database lookup. Unfortunately, Persistence.createEntityManagerFactory('xyzzy') fails in all cases. My aar looks like: /com (class files in package format eg com/this/that/x.class) /META-INF services.xml /lib numerous jars I don't know where to put the persistence.xml file. I have tried putting it everywhere. I keep getting the following error: javax.persistence.PersistenceException: No Persistence provider for EntityManager named xyzzy at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34) at com.papajohns.snapshot.webservice.SurveySubmissionWebService.getSurvey(SurveySubmissionWebService.java:63) (etc) Or does that error mean something else? The only thing really required in your aar is a services.xml . Put your classes under WEB-INF/classes and you should have no problems. Hibernate uses the TCCL (Thread context classloader) so you can't load hibernate there without some tricks - for example what the spring support docs show for hibernate. - R
Re: aar and hibernate
On Fri, Sep 25, 2009 at 6:30 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I moved my classes under WEB-INF/classes and the application no longer deploys. I get org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: java.lang.ClassNotFoundException: Class Not found : com.company.snapshot.webservice.MyWebService Are you 100% sure that class com.company.snapshot.webservice.MyWebService is under WEB-INF/classes ? Try logging this in your class to make sure - make it static and reference it if need be so that its loaded and logs: this.getClass().getProtectionDomain().getCodeSource().getLocation()); You could try putting _only_ your MyWebService class in the aar, though that shouldn't be needed. What version of axis2 and servlet container are you using ? - R
Re: aar and hibernate
On Fri, Sep 25, 2009 at 7:17 PM, Tony Ennis tony.en...@insightbb.com wrote: I'm at home now, so no checking for me. Thank God. Am I sure? As sure as I can be. Previously the aar had com at the root. I moved the entire com tree to WEB-INF/classes/... as per your suggestion. I ASSume WEB-INF should be at the root of the aar... Using the latest and greatest Axis2 and Jetspeed. When you say I ASSume WEB-INF should be at the root of the aar , that doesn't seem right. The aar goes in your WEB-INF/services , and the format of the aar should be just: ./myExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml I have no idea about Axis2 compatability with Jetspeed - I'd try tomcat 6 first to see if that's the issue. - R
Re: [Axis2] Deploying Axis2-1.5 on JBoss 5.0.0
On Fri, Sep 11, 2009 at 3:44 AM, Sebastian Schneider schnei...@dvz.fh-aachen.de wrote: Helllo everyone, I would like to use Axis2 on JBoss 5.0.0 but I am struggling. I downloaded the WAR-package (Axis2-1.5) and I put the WAR in my deploy-folder. Unfortunately deploying fails with an exception stating that a new SAX parser cannot be created. From the documentation I understood that all the required libs are included in the WAR-package because the installation description for the WAR-package does not mention the installation of additional libraries. So do I need to add additional libraries to the lib-folder or not? I am kind of confused. I am running JBoss AS on Windows with the default-profile. Here's the stacktrace from the log-file: 2009-09-11 08:26:17,882 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/axis2, vfsUrl=axis2.war 2009-09-11 08:26:18,320 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at JBoss ships its own SAX parser in higher precedence classloader, Remove the xerces jar that comes with axis2 for starters, ie, remove it from your ear / war that you are deploying to JBoss. You probably will have to do that for a few other jars as well. HTH, - R
Re: [Axis2] Deploying Axis2-1.5 on JBoss 5.0.0
On Fri, Sep 11, 2009 at 6:55 AM, robert lazarski robertlazar...@gmail.com wrote: On Fri, Sep 11, 2009 at 3:44 AM, Sebastian Schneider schnei...@dvz.fh-aachen.de wrote: Helllo everyone, I would like to use Axis2 on JBoss 5.0.0 but I am struggling. I downloaded the WAR-package (Axis2-1.5) and I put the WAR in my deploy-folder. Unfortunately deploying fails with an exception stating that a new SAX parser cannot be created. From the documentation I understood that all the required libs are included in the WAR-package because the installation description for the WAR-package does not mention the installation of additional libraries. So do I need to add additional libraries to the lib-folder or not? I am kind of confused. I am running JBoss AS on Windows with the default-profile. Here's the stacktrace from the log-file: 2009-09-11 08:26:17,882 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/axis2, vfsUrl=axis2.war 2009-09-11 08:26:18,320 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at JBoss ships its own SAX parser in higher precedence classloader, Remove the xerces jar that comes with axis2 for starters, ie, remove it from your ear / war that you are deploying to JBoss. You probably will have to do that for a few other jars as well. HTH, - R Eh, it may not be the xerces jar that ships a sax parser - I can't remember which jar it is at the moment as I haven't had my coffee yet :-) - but hopefully you get my point. - R
Re: too many files open
On Wed, Sep 9, 2009 at 6:11 PM, Alan Aguia aag...@yahoo.com wrote: Hi, Im having some problems using axis2 0.94, jboss 4.0.2. After calling serveral times the web service the system tell me that I have to many files open. I tried a lsof -p in my system and this is what I get java 2 jboss 571u REG 253,0 8437 15908886 /home/jboss/.axis2/axis2.xml Um, axis2 0.94 ? That's pre-beta code from 4 years ago. That error from my experience is really a tcp/ip CLOSE_WAIT issue. While several jira's claimed that too many files open was fixed over the years, I suspect it was just really fixed here in the last few weeks: https://issues.apache.org/jira/browse/AXIS2-4288 I'd pull from svn head, what will be 1.6 I believe, and try that. Going from .94 to svn head will no doubt be painful. You could try the latest 1.5 and see if too many files open was really fixed as some jira's claimed, but I myself would shoot for svn head. ymmv. Someone else may be able to comment more accurately. - R
Re: More than 1 Spring .aar in Axis2
On Fri, Aug 28, 2009 at 5:46 PM, sarcottsarc...@gmail.com wrote: Does any one know if a patch for this issue was made available? thanks, sarcott imho there is no problem - it works as designed. More than 1 Spring .aar in Axis2 is supported and documented since 1.0. Is there a particular need that the current support doesn't cover? If not, open a jira and even better, submit patches. - R iksrazal wrote: On Sun, May 31, 2009 at 4:18 PM, Andreas Veithen andreas.veit...@gmail.com wrote: If what you are saying is true, then the Spring support in Axis2 has a serious flaw and needs to be fixed... Andreas Patches are welcome. - R -- View this message in context: http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p25196714.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Axis2 and Java 5 Enum
On Tue, Jul 21, 2009 at 1:32 PM, Matt Schmidtmschmid...@gmail.com wrote: The problem with that is my service does not use the enums directly. It uses objects that access the enums, and I do not have the ability to change the interaction between the service objects and the enumerations. Any other suggestions? Yes, use Jibx2Wsdl from jibx instead of java2wsdl. jibx seems to support enums: http://jibx.sourceforge.net/tutorial/binding-advanced.html A somewhat dated article here shows how to use Jibx2Wsdl - try googling for something with the latest release. http://www.infoq.com/articles/sosnoski-code-first - R
Re: SimpleHTTPServer and spring
2009/7/20 Håkon Sagehaug hakon.sageh...@bccs.uib.no: I use tomcat as my container. So I need help in how I can supplay the SimpleHTTPServer with my spring context. Any tips cheers, Håkon I'd create my own ApplicationContext in this case. Here's a previous email on this list that explained how: http://mail-archives.apache.org/mod_mbox/ws-axis-user/200904.mbox/%3cf87675ee0904021235v393e8792u3f05b64b11f90...@mail.gmail.com%3e - R -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company)
Re: SimpleHTTPServer and spring
2009/7/20 Håkon Sagehaug hakon.sageh...@bccs.uib.no: Hi This is as far as I can see configuring the source code where so it pick up spring, my question was is there a way to give and load spring through SimpleHTTPServer so I don't need to change the implementation of the service. Ideally for me the service should be a aar loaded through the ConfigurationContext that I supply to the SimpleHTTPServer. Is this possible? We're talking about the same thing I believe. What I showed you has nothing to do with Axis2, its independent of that. Therefore you can load spring anyway you want, and get your bean references via ApplicationContextHolder anyplace and anytime. In other words, once you configure spring any one of the gazillion ways to do it, ApplicationContextHolder then gives you access to spring. What the spring / axis2 integration does is different as it inits spring bean references in axis2 services. Alternatively, look in the unit test code of the axis2 source distro, which IIRC and the last time I looked, uses SimpleHTTPServer. I wrote the spring unit tests there years ago. - R
Re: Session Managment using .net client..
On Mon, Jun 22, 2009 at 9:29 PM, Deepal Jayasinghe dee...@opensource.lkwrote: The only way you can get session working with .Net is using transport session, that is by using cookies.In addition to that .Net does not send the cookies as JSESSION_ID you need to do a an additional step in the service client. Try setting following property and see; http://wso2.org/library/3464 Thanks, Deepal Several years ago I implemented a custom design for .net session handling, which exchanged a UUID since both java and .net support them. On the Java side I used ehcache to maintain the state. Its pretty simple really. You can see the code here (article is in portuguese - just search on UUID for the code. The var names and code comments are in english) : http://braziloutsource.com/wss2.html HTH, Robert
Re: SAXParseException on Linux
On Mon, Jun 22, 2009 at 1:15 PM, callagc4 cathal.callag...@fineos.comwrote: Hi, We have been running our web services for quite some time now using Axis2 on a Windows OS. Recently we attempted to run the services on a Linux OS and have been receiving a very generic error. An exception is being thrown during the creation of an XML Schema object. I have been unable to setup debugging for xerces correctly and as a result i am none the wiser as to why this exception is being thrown. Has anyone seen any problems like this on a Linux OS, which run fine on Windows? snip 'commontypes:FineosMoney' to a(n) 'type definition' component. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) Try running dos2unix on your schemas - you may be getting bit by Windows type line returns. HTH, - R
Re: axis.war issue with jboss4.2.2
On Fri, Jun 5, 2009 at 2:04 PM, Axis PC pc.a...@gmail.com wrote: All, I know this issue has been discussed earlier in a lot of forums...but I couldnt find a definitive answer. How can I get over this issue? One of the users had suggested commenting out the JAXWSDeployer...which i cannot, because I need to use it. Here is the error: 12:55:29,028 INFO [STDOUT] [INFO] Deploying Exception Occured with java.io.FileNotFoundException: C:\work\jboss-4.2.2.GA\server\default\.\tmp\deploy\tmp25140java_first_jaxws-1.1-exp.war\WEB-INF (Access is denied) Well, you probably won't get that error on linux :-) . Or at least there you have lots of well understoold OS ways to get around it. - R
Re: More than 1 Spring .aar in Axis2
On Sun, May 31, 2009 at 4:18 PM, Andreas Veithen andreas.veit...@gmail.com wrote: If what you are saying is true, then the Spring support in Axis2 has a serious flaw and needs to be fixed... Andreas Patches are welcome. - R
Re: More than 1 Spring .aar in Axis2
On Fri, May 29, 2009 at 10:25 AM, sarcott sarc...@gmail.com wrote: I tried this approach of making copies of the ApplicationContextHolder for every .AAR file and left the spring.jar and axis2-spring-1.4.1.jar in WEB-INF. I am still having the application context problem. The only way I was able to make the multiple aar files work was by moving the jar files in to the individual aar files. Has anyone had success with mutilple applicationContextHolder? The spring.jar is 2.81 mb and we will be duplicating it in all the .aar files . Is there any other way to avoid this and still have the applicationContext work. thanks, Sarcott Please read the manual carefully - when you say The only way I was able to make the multiple aar files work was by moving the jar files in to the individual aar files , that's the only way it can work. It doesn't make sense - and its not supported - to have a completely separate spring instance in each aar by using the same jar copy of spring in WEB-INF. So yes, you do need multiple copies of the spring jar in each war - that's the price you need to pay for it to work. BTW, you may not need the full 2.8 mb spring jar - they ship smaller jars supporting each feature set - ymmv. Best regards, Robert
Re: SOAPMonitor applet not found
On Wed, May 6, 2009 at 6:17 PM, Jack Sprat rexclaim...@yahoo.com wrote: I have the SOAPMonitor configured in my web.xml and can access the URL in my web service. But I get an exception that the applet cannot be found: Exception: java.lang.ClassNotFoundException: org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class I've imported the SOAPMonitorApplet class from the soapmonitor-1.4.1.jar file included with the Axis2 distribution into the web app.root. What am I missing? Thanks, T Carefully reading the docs, you'll find: http://ws.apache.org/axis2/1_4/soapmonitor-module.html Starting with axis2 1.4, the applets code is in the org.apache.axis2.soapmonitor.applet package. Therefore the 'org' directory created by the unpacking of soapmonitor-1.4.jar should be placed in CATALINA_HOME/webapps/axis2/ as shown in the above example. Note the 'org' directory part of the docs. HTH, - R
Re: sending large log files
On Sun, May 3, 2009 at 10:12 AM, Alex Beston alex.bes...@gmail.com wrote: Hi axis users I have a project that needs to send a large log file every 24 hrs - is axis2 the right technology for me? If you are sending to / from a linux like OS I'd do it over scp, or ftp if not. You don't say how big the log file is, but anyways, axis2 would be the relatively hard way to do it. - R
Re: [axis2] | Problem running axis2 client
On Mon, Apr 27, 2009 at 11:36 AM, Rajneesh Kumar rajneesh.ku...@otssolutions.com wrote: Hi Robert, Thanks for suggestion… Now its running. But not processing correctly. Please see the code snap below: if (result == null) { System.out.println(Weather didn't initialize!); // I am getting this message means result object is not initialized. return; } Do mean the result is null ? Look at the logs from your servlet container for clues - particularly Exceptions. - R
Re: comparison of different databinding
On Wed, Apr 22, 2009 at 3:29 PM, Li, Zhenge zhenge...@cgi.com wrote: Hi Sudhir, I ran into below links a while ago. Some charts in: http://wso2.org/library/588 Comments by Mark D. Hansen, Author of SOA Using Java Web Services. http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=51t=004657 -richard Both links are helpful but I think missing the benefits of each, plus a few options are missing. My rough rule of thumb for my projects are: 1) If you have been given a WSDL to use and don't have existing code to send over the wire - use xmlbeans or jaxb since they have close to if not complete 100% xml schema spec support. Some frameworks like JIBX are improving but not at 100% yet. I prefer xmlbeans because it has a validate() method for it Objects, which is great for debugging. xmlbeans gets a bad rap for being slower than the other options, but often in my case only negligibly so. 2) If you don't have an WSDL yet and you want to send pre-existing objects - like hibernate BO's for example - the JIBX tools to create an xml schema and wsdl from code is about the best out there at the moment. 3) If you have neither an WSDL or pre-existing code, and are committed to using only axis2 or perhaps the Spring WS framework, adb is a reasonable choice. 4) If performance is the top concern, I'd say JIBX is a good choice. 5) If JSR standards are important, use JAX-WS and JAXB. All of those options are available in Axis2. - R From: Sudhir Mongia [mailto:sudhir.mon...@gmail.com] Sent: April 22, 2009 2:31 PM To: axis-user@ws.apache.org Subject: comparison of different databinding Hi, We have very complex wsdl and I was looking into the data binding approaches in AXIS2 and trying to find out which one suits my project. Then I just thought of writing here if we have any comparative study chart/table ready with us, which lists pros/cons and applicably each in different scenarios. Please share if anyone has done this execise. Thnx, Sudhir Mongia
Re: How to run Multiple Spring with in AAR in single Axis Container
On Mon, Apr 20, 2009 at 5:37 PM, Kris82 kit...@gmail.com wrote: I tried this, I moved the jars and still it does do any good. Andreas Veithen-2 wrote: You need to carefully follow the instructions in the section Spring Inside an AAR. In particular, you need to make sure that the axis2-spring-*.jar is _not_ located in WEB-INF/lib, but inside the AAR(s). Andreas Are you following this guide, particularly in the Spring Inside an AAR section? http://ws.apache.org/axis2/1_4_1/spring.html If so, you should be able to get spring loaded and isolated per AAR. Keep in mind that the spring distro libs as well as the axis2-spring* libs must be in the lib dir of the AAR. If you are still stuck, post your error or current aar contents and maybe we can help. - R
Re: How to monitor SOAP messages in the Client without changing the server?
On Tue, Apr 14, 2009 at 11:25 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi all, Can any one please let me know how can I display SOAP request and response messages in a SOAP AXIS2 Client GUI application? Umm, the soap monitor perhaps? http://ws.apache.org/axis2/1_4_1/soapmonitor-module.html There's also tcpmon: https://tcpmon.dev.java.net/ - R
Re: How to monitor SOAP messages in the Client without changing the server?
On Wed, Apr 15, 2009 at 9:44 AM, robert lazarski robertlazar...@gmail.com wrote: On Tue, Apr 14, 2009 at 11:25 PM, Joe Smithian joe.smith...@gmail.com wrote: Hi all, Can any one please let me know how can I display SOAP request and response messages in a SOAP AXIS2 Client GUI application? Umm, the soap monitor perhaps? http://ws.apache.org/axis2/1_4_1/soapmonitor-module.html There's also tcpmon: https://tcpmon.dev.java.net/ - R Oops, I'm just waking up and I just noticed you can't use either of those. Maybe try the Logging Module and get the info you need from there. http://ws.apache.org/axis2/1_4/modules.html - R
Re: Axis2 service and spring problem, can't find Spring's ApplicationContext.
On Thu, Apr 2, 2009 at 12:01 PM, Azazel Se azazel...@hotmail.com wrote: Thanks Sagara. I actually tried that one first but I didn't know which of the suppliers was the correct one so I tried both. In my mail I pasted the exception from SpringAppContextAwareObjectSupplier twice by accident. When using SpringServletContextObjectSupplier I got a No bean named 'MyServ' exception, but when I added: bean id=MyServ class=xyz.MyServ /bean to the context.xml file the error went away. So now it deploys and runs without errors, I also got the test string back in my ws-client. But later when I tried using the context I get from ApplicationContextHolder.getContext() I found that it has value null??? Anyone know why? ApplicationContextHolder.getContext() isn't needed when using SpringServletContextObjectSupplier. If spring and axis2 are working together, you are done. You have to configure Spring to use ApplicationContextHolder, otherwise it will return null values. - R
Re: Axis2 service and spring problem, can't find Spring's ApplicationContext.
On Thu, Apr 2, 2009 at 1:48 PM, Azazel Se azazel...@hotmail.com wrote: From: robertlazar...@gmail.com ApplicationContextHolder.getContext() isn't needed when using SpringServletContextObjectSupplier. If spring and axis2 are working together, you are done. You have to configure Spring to use ApplicationContextHolder, otherwise it will return null values. - R From: sagara.gunathu...@gmail.com To: axis-user@ws.apache.org Here, how you try to use context .and can you provide error trace you got ? i cant get any clue with supplied details . . ApplicationContext ctx = ApplicationContextHolder.getContext(); I don't think you need to have this line to access SpringContext explicitly , because MyServ is already a Spring manged bean. if you want to access any other bean inside MyServ use Spring injection instead of access through ApplicationContextHolder. Hi, thanks for the replies. I have an application which I didn't make which uses spring, it has an API which hides the details and preferably I don't add any more stuff to it. The goal is to just use a few of the methods and get returns as normal and not interact directly with spring. I have never used Spring before so my knowledge about the innerworkings is small but if I get the API to work I shouldn't need to either. The springappl needs the context at initiating. I have tested it in a jsp file and it works, but I want to move it to a web service. In the jsp file I had the same context stuff added to the web.xml and this is in the jsp file: MyApplWithSpring ap = new MyApplWithSpring(WebApplicationContextUtils.getWebApplicationContext(getServletContext())); This worked and I could use some of its methods afterwards. So I thought it would work in the web service as well if I used ApplicationContextHolder.getContext() and used new MyApplWithSpring(ApplicationContextHolder.getContext()). If possible how do I configure spring to use the ApplicationContextHolder so that it isn't null? Or is there any other(/better) way I can do this? -Az. So the springappl you didn't write requires an ApplicationContext reference, even though you are successfully using SpringServletContextObjectSupplier that doesn't really require an ApplicationContext reference? If so, I'll show you how to do it. - R
Re: Axis2 service and spring problem, can't find Spring's ApplicationContext.
On Thu, Apr 2, 2009 at 4:05 PM, Azazel Se azazel...@hotmail.com wrote: Date: Thu, 2 Apr 2009 15:01:48 -0300 Subject: Re: Axis2 service and spring problem, can't find Spring's ApplicationContext. From: robertlazar...@gmail.com To: axis-user@ws.apache.org On Thu, Apr 2, 2009 at 1:48 PM, Azazel Se azazel...@hotmail.com wrote: From: robertlazar...@gmail.com ApplicationContextHolder.getContext() isn't needed when using SpringServletContextObjectSupplier. If spring and axis2 are working together, you are done. You have to configure Spring to use ApplicationContextHolder, otherwise it will return null values. - R From: sagara.gunathu...@gmail.com To: axis-user@ws.apache.org Here, how you try to use context .and can you provide error trace you got ? i cant get any clue with supplied details . . ApplicationContext ctx = ApplicationContextHolder.getContext(); I don't think you need to have this line to access SpringContext explicitly , because MyServ is already a Spring manged bean. if you want to access any other bean inside MyServ use Spring injection instead of access through ApplicationContextHolder. Hi, thanks for the replies. I have an application which I didn't make which uses spring, it has an API which hides the details and preferably I don't add any more stuff to it. The goal is to just use a few of the methods and get returns as normal and not interact directly with spring. I have never used Spring before so my knowledge about the innerworkings is small but if I get the API to work I shouldn't need to either. The springappl needs the context at initiating. I have tested it in a jsp file and it works, but I want to move it to a web service. In the jsp file I had the same context stuff added to the web.xml and this is in the jsp file: MyApplWithSpring ap = new MyApplWithSpring(WebApplicationContextUtils.getWebApplicationContext(getServletContext())); This worked and I could use some of its methods afterwards. So I thought it would work in the web service as well if I used ApplicationContextHolder.getContext() and used new MyApplWithSpring(ApplicationContextHolder.getContext()). If possible how do I configure spring to use the ApplicationContextHolder so that it isn't null? Or is there any other(/better) way I can do this? -Az. So the springappl you didn't write requires an ApplicationContext reference, even though you are successfully using SpringServletContextObjectSupplier that doesn't really require an ApplicationContext reference? If so, I'll show you how to do it. - R At the bottom are the first few lines of the code that works in eclipse. The problems arise when wanting to deploy to axis2 and tomcat. The application I am making a small wrapper for is very big and complex and the context.xml imports several other xml files. The goal of the web service is to receive a string from the client, use the application to do some stuff with a file and the string as input, then return the results to the client. The application uses spring, hibernate etc. -Az. //Create Platform. ApplicationContext context = new RavenAwareClassPathXmlApplicationContext(context.xml); TavernaBaseProfile profile = new TavernaBaseProfile(context); //Get workflow parser, load workflow. WorkflowParser parser = profile.getWorkflowParser(); URL workflowURL = new URL(http://foo.com/workflow.xml;); Dataflow workflow = parser.createDataflow(workflowURL); Apart from this code, is spring and axis2 running together in your web service? I thought you said it was. I think I know what your are asking for, but without knowing what TavernaBaseProfile is doing, I'd be concerned that it creates two separate Spring worlds in your app - you probably don't want that. Anyways, with that caveat, if you just need ApplicationContext to pass into TavernaBaseProfile , I would do the following: Keep axis2 and spring as is, since its working. The idea behind the axis2 ApplicationContextHolder is a known way to get an ApplicationContext, and can be used outside axis2. So I think you should create your own. Its easy, and it seems far less confusing, at least to me, to use your own ApplicationContextHolder outside of axis2 when using SpringServletContextObjectSupplier. So you'd need this xml in your Spring config: !-- Use this trick to get access to Spring beans in junit and other places that are not spring aware -- bean id=applicationContext class=mypackage.spring.ApplicationContextHolder / And this class in your app: package mypackage.spring; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; /** Implementation of a Spring interface who is configured in Spring's * applicationContext.xml or some other Spring type of way. This class * and the spring bean
Re: Adding Axis2 service to existing web application.
On Wed, Apr 1, 2009 at 6:13 PM, Azazel Se azazel...@hotmail.com wrote: java.lang.ClassNotFoundException: javax.wsdl.xml.WSDLLocator You need that class, the wsdl4j jar that was released with axis2 should contain one. Try putting that jar in WEB-INF/lib . - R
Re: Spring application made available as a web service through Axis2
On Tue, Mar 31, 2009 at 4:40 PM, Joey S. joey...@hotmail.com wrote: It works as wanted, but as mentioned I want it available as a web service. Considering all the problems with Spring and Axis2 together what is the easiest way to make a web service out off it? I have used quite some time trying the different stuff from the tutorial, but cannot get it to work. -Joey You mean the spring / axis2 tutorial at the axis2 site? If you could be more specific than but cannot get it to work maybe we can help. If you already have spring up, getting it plugged into axis2 isn't much harder. - R
Re: Spring application made available as a web service through Axis2
On Tue, Mar 31, 2009 at 5:30 PM, Azazel Se azazel...@hotmail.com wrote: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [--springappl---] for bean with name 'appl.rted.Wpi' defined in ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl Um, maybe put net.de.impl.WpiImpl in WEB_INF/classes or if its in a jar, put the jar in WEB_INF/lib ? - R
Re: Spring application made available as a web service through Axis2
- Show quoted text - On Tue, Mar 31, 2009 at 5:50 PM, Azazel Se azazel...@hotmail.com wrote: Hi again. Everything which has something to do with the spring application, including the apllication, are in jars and placed in the WEB-INF/lib folder. The context xml files are filled with bean id and properties which are used by the springapplication. The only thing I need from it I get through the 'main' api class. I'm completely new to spring so the idea was to hide it behind a thin wrapper. -Joey. The error you get, ClassNotFoundException: net.de.impl.WpiImpl , is clearly saying that class is not in your classloader somehow. I'd check thoroughly that its where you think it is. If you're still stuck, and the app is running but axis2 / spring are not, try putting this in net.de.impl.WpiImpl: this.getClass().getProtectionDomain().getCodeSource().getLocation()); And instantiate it somehow and log its output. A servlet with load-on-startup is one common way, your app may have another. If the missing class is actually a Service class, or you want to see the entire classloader layout, this link may show you its location: http://localhost:8080/penguin/axis2-web/HappyAxis.jsp - R
Re: Spring application made available as a web service through Axis2
On Tue, Mar 31, 2009 at 6:43 PM, robert lazarski robertlazar...@gmail.com wrote: - Show quoted text - And instantiate it somehow and log its output. A servlet with load-on-startup is one common way, your app may have another. If the missing class is actually a Service class, or you want to see the entire classloader layout, this link may show you its location: http://localhost:8080/penguin/axis2-web/HappyAxis.jsp - R On your system that could be: http://localhost:8080/axis2/axis2-web/HappyAxis.jsp - R
Re: Help with wsdl2java
On Mon, Mar 30, 2009 at 1:18 PM, Frank Vyncke frank.vyn...@esko.com 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 I'd try validating the wsdl with an outside tool like Eclipse WTP, so you can determine whether its really a valid wsdl or not. Please excuse if you've already done that. - R
Re: org.apache.xmlbeans does not exist error
On Thu, Feb 26, 2009 at 11:34 PM, Claire Loto l...@taosolutions.biz wrote: Hi, I used wsdl2java tool to generate classes for my axis2 implementation.I used xmlbeans for the databinding. However, I am getting a lot of compilation errors such as below : javac C:\project\vanilla\src\net\brokerhub\xml\bhml\BHml.java (16:49)package org.apache.xmlbeans does not exist Perhaps trying this example, which used xmlbeans, will help? http://ws.apache.org/axis2/tools/1_4_1/CodegenToolReference.html#example - R
Re: axis2java Vs jax-ws
On Thu, Feb 26, 2009 at 7:19 PM, Jason Fister jasonfis...@gmail.com wrote: Hello folks, We need to write and host a webservice which will act as both a server as well as a client to a 3rd party webservice. let me make it more clear: My webservice will receive requests from applications with in our company, process the requests, call a webservice hosted by a third party outside our company, receive and process the response and finally respond to the client. we are in the process of evaluating different soap frameworks. the first 2 that I came across were axis2java and jax-ws v2.1.5. i am not even sure if the 2 are competing, comparable products. can someone pls enlighten me on the differences? is one more stable than the other? is one more popular than the other? how about features? performance? I would greatly appreciate any help in this regard Jason I know almost nothing about jax-ws, but I do know axis2 implements this standard. You can find more info here: http://ws.apache.org/axis2/1_4_1/jaxws-guide.html As for features, this doc is slightly dated (the jax-ws support is prime time now for example), but anyways it may also be helpful in showing the state of various webservice stacks: http://wiki.apache.org/ws/StackComparison - R
Re: Problem in Hibernate Axis2 Integration !! Help Required
On Wed, Feb 18, 2009 at 8:40 AM, gade anudeep anudeep11...@yahoo.com wrote: When i checked tomcat logs..i think its falling error while its creating session(hibernate) from service.Please guide me in this.. [ERROR] Could not initialize class org.hibernate.impl.SessionFactoryImpl java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.impl.SessionFactoryImpl at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043) You need to add all the hibernate jars and dependencies to you WEB-INF/lib dir. - R
Re: Problem in Hibernate Axis2 Integration !! Help Required
On Wed, Feb 18, 2009 at 11:17 AM, gade anudeep anudeep11...@yahoo.com wrote: [INFO] Configured SessionFactory: null Is some problem here ?? Yeah, create a hibernate session .-) . Google is you friend here. This should suffice: http://www.kodejava.org/examples/245.html - R
Re: Problem in Hibernate Axis2 Integration !! Help Required
On Tue, Feb 17, 2009 at 3:09 PM, gade anudeep anudeep11...@yahoo.com wrote: at ch.elca.des.testwebservice.TestStub.insert(TestStub.java:183) at ch.elca.des.testwebservice.TicketWSClient.GenerateName(TicketWSClient.java:29) You have some type of exception in that code - seemingly something you wrote - and need to debug it. Maybe add some logging? - R
Re: Deploying axis2 in tomcat 6
On Fri, Feb 6, 2009 at 11:20 AM, rabelenda rabele...@gmail.com wrote: [ERROR] java.lang.RuntimeException: java.io.FileNotFoundException: loading repository from classpath java.lang.RuntimeException: java.io.FileNotFoundException snip [INFO] Module validation failed: The system is attempting to engage a module that is not available: addressing [INFO] org.apache.axis2.deployment.DeploymentException: The system is attempting to engage a module that is not available: addressing You seem to be missing the WEB-INF/modules dir and the mandatory addressing.mar file. - R
Re: More than 1 Spring .aar in Axis2
On Wed, Jan 21, 2009 at 1:18 AM, Amila Suriarachchi amilasuriarach...@gmail.com wrote: I think the problem is with the org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder public class ApplicationContextHolder implements ApplicationContextAware { private static ApplicationContext appCtx; public ApplicationContextHolder() { } /** Spring supplied interface method for injecting app context. */ public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { appCtx = applicationContext; } /** Access to spring wired beans. */ public static ApplicationContext getContext() { return appCtx; } } this class always keep the latest Application context which is used by the object supplier. You may have to put the axis2-spring- .jar also you your aar/lib folder instead of keeping it in WEB-INF/lib. thanks, Amila. Absolutely true, the docs mention this. Robert
Re: More than 1 Spring .aar in Axis2
On Wed, Jan 21, 2009 at 8:52 AM, Paul French paul.fre...@kirona.com wrote: How about taking a copy of this one class and putting that in your service .aar file. I think that might work since each service will have its own classloader and so own copy of the ApplicationContextHolder. You could leave the spring libraries in WEB-INF/lib then? FYI, you can't do spring in the aar and still have any spring related jars - springframework, axis2 or anything else - in WEB-INF. I tested this alot when I wrote the code and it doesn't work any other way. - R
Re: More than 1 Spring .aar in Axis2
On Tue, Jan 20, 2009 at 9:31 PM, ERaj illaya_r...@yahoo.com wrote: I have copied the lib jars to aar/lib still it overwrites the first aar. Can you please explain little more? Are you using SpringAppContextAwareObjectSupplier ? iksrazal wrote: The idea in the 'multiple spring instances case is to take advantage of the fact that each AAR has its own classloader, and therefore each spring instance with the proper init is in a completly seperate classloader per AAR. Using AXIS2_HOME/lib I think is what you really want to avoid, as that indicates a web app level classloader, ie, one spring instance will step on another. HTH, Robert On Fri, Feb 15, 2008 at 2:50 PM, Sunesh Kumra sunesh.ku...@ericssonservices.co.uk wrote: Hello, I followed the example http://ws.apache.org/axis2/1_1/spring.html and got a Axis2 service (not deployed in Servlet Container) using Spring to work. I have not packaged spring.jar in the .aar but have included it in AXIS2_HOME/lib and it all works fine. However, the moment I deploy another .aar file into the Axis2, the previous .aar stops working and the new one works fine. The error returned is: soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringNo bean named 'amountChargingServiceSkeleton' is defined/faultstring detail / /soapenv:Fault /soapenv:Body Part of applicationContext.xml is shown below: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans !-- Configure spring to give a hook to axis2 without a ServletContext -- bean id=applicationContext class=org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder / !-- Wiring the AmountChargingServiceSkeleton with the Request Handler's reference -- bean id=amountChargingServiceSkeleton class=test.AmountChargingServiceSkeleton /bean // removed other parts of the file Part of services.xml is shown below: ?xml version=1.0 encoding=UTF-8? !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) -- serviceGroup service name=AmountChargingServiceSpringInit class=test.SpringInit descriptionThis web service initializes Spring./description parameter name=ServiceClass test.SpringInit/parameter parameter name=ServiceTCCLcomposite/parameter parameter name=load-on-startuptrue/parameter operation name=startUp messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ /operation /service service name=AmountChargingService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=test.AmountChargingServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceClasstest.AmountChargingServiceSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseamountChargingServiceSkeleton/parameter parameter name=ServiceTCCL locked=falsecomposite/parameter operation name=chargeAmount mep=http://www.w3.org/ns/wsdl/in-out; // removed other parts of the file Has anyone got multiple .aar files which all include Spring to work in Axis2 ? Cheers, Sunesh Ericsson Services Limited Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2 8SG Registered Number in England and Wales: 3709800 This communication is confidential and intended solely for the addressee(s). Any unauthorised review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. Ericsson Services Limited does not enter into contracts or contractual obligations via electronic mail, unless otherwise agreed in writing between the parties concerned. E-mail including attachments is susceptible to data corruption, interruption, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: SERVICE_ONJECT_SUPPLIER not specified
On Mon, Jan 5, 2009 at 11:43 AM, rabelenda rabele...@gmail.com wrote: I have changed serviceObjectSupplier with ServiceObjectSupplier in the services.xml file and I get a different error. When loading tomcat I get [INFO] org.apache.axis2.deployment.DeploymentException: The following error occu rred during schema generation: null. I have tested setting all logging properties of tomcat to ALL and I don't get any more explanation, any ideas? In the services.xml file, I must put serviceObjectSupplier or ServiceObjectSupplier ? -- Please post the entire stacktrace. You probably have some other errors that are closer to the problem. You need to enable either commons-logging or log4j in your war file. For example. you should have a log4j.properties in WEB-INF/classes . The axis2 distro has an example. HTH, Robert
Re: SERVICE_ONJECT_SUPPLIER not specified
On Fri, Jan 2, 2009 at 4:13 PM, rabelenda rabele...@gmail.com wrote: Hi, I have developed a webService using axis2 and spring. When I request de wsdl file of the webservice I get the right wsdl file, but when I want to use a defined operation of the webservice (using a java client or a browser) I get the following exception: [CODE]org.apache.axis2.AxisFault: The SERVICE_OBJECT_SUPPLIER parameter is not specified. You most likely have a bean name / service class mismatch. I'd look for typos. Here's the problem code from modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java : Parameter implInfoParam = service.getParameter(Constants.SERVICE_CLASS); if (implInfoParam != null) { final Class implClass = Loader.loadClass( classLoader, ((String) implInfoParam.getValue()).trim()); return org.apache.axis2.java.security.AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws InstantiationException, IllegalAccessException { return implClass.newInstance(); } } ); } else { throw new AxisFault( Messages.getMessage(paramIsNotSpecified, SERVICE_OBJECT_SUPPLIER)); } HTH, Robert
Re: SERVICE_ONJECT_SUPPLIER not specified
On Fri, Jan 2, 2009 at 5:26 PM, rabelenda rabele...@gmail.com wrote: [CODE]org.apache.axis2.AxisFault: The SERVICE_OBJECT_SUPPLIER parameter is not specified. You most likely have a bean name / service class mismatch. I'd look for typos. Here's the problem code from modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java I have search for any mistake and I didn't find anything. I tested chenging the SpringBeanName parameter in the services.xml file to an invalid one and the application gives me the same error. But if a put it in the correct way, it still gives me the error. I think that the problem isn't a mapping between bean and service because if a put an invalid class name on the bean the server (tomcat) gives me an error when deploying saying that the class doesn't exists. I don't kow if is this what you were thinking that could be wrong, thanks for the fast reply :-). Perhaps its actually not finding the ServiceObjectSupplier . Make sure the name is correct there. Put axis2 / spring in debug and make sure that spring is loading correctly. You'll see warnings in the logs if axis2 can't find a bean name, ie, spring isn't getting loaded, before the exception. HTH, Robert
Re: axis2, cxf, spring or Metro
On Thu, Dec 18, 2008 at 12:44 AM, Shehan Simen ssi...@itree.com.au wrote: Hi Keith, Thanx for the reply. Could you please tell me axis2 tutorial which describe how to write a wsdl2java web service using jaxb binding? If I use jaxb data binding, that means I am using jax-ws, right? http://ws.apache.org/axis2/tools/1_4_1/CodegenToolReference.html It doesn't seem to be documented there, but anyways, use -d jaxbri for jaxb. As for Spring and jaxws - someone who knows jaxws will have to comment. AFAICT jaxws doesn't use an axis2 services.xml file nor the typical MessageRecievers and therefore I'm not what state spring and jaxws is in for axis2. Anyways, see the axis2 spring guide because setting up a static reference to get your spring beans is simple - see this post from a few days ago if interested: http://marc.info/?l=axis-userm=122943466610253w=2 HTH, Robert
Re: Axis2 module + Spring
On Tue, Dec 16, 2008 at 1:08 PM, Paul French paul.fre...@kirona.com wrote: Thanks for the reply. Its not what I am after though. We have AXIS2 as part of our web application. We have web services which are defined as beans in the Spring application context loaded as part of the web application. We also want our modules defined as beans from the same application context. For example our logging module requires a datasource. This datasource is already defined in Spring for the web application. I suppose I am trying to avoid having to setup things twice in 2 different places. Well that's why I mentioned the Classloader reference issue, in case you needed it, and you do. IIRC both Modules and AAR's have their own classloader. Axis2Service is used to supply the Classloader reference in the AAR case. I'm not sure how to get the equivalent in Module.init() as I see no examples in the source, or even if you did it'd work correctly with the Classloader stuff in AbstractMessageReceiver. Maybe someone like Deepal can comment further. - R
Re: Axis2 module + Spring
On Tue, Dec 16, 2008 at 7:52 AM, Paul French paul.fre...@kirona.com wrote: Hello All, There is support to supply a Spring managed bean as a service using the ServiceObjectSupplier parameter in the services.xml. However is there similar support for modules? For example I want to log all Soap messages into a database from a module. I would like to obtain a fully configured module handler from Spring. Is this possible? Thanks Paul Getting spring setup sort of anyplace, anytime like axis2 does is pretty simple, and you could use this ApplicationContextHolder class that comes with the distro. The only thing I'm not sure about with concerning modules is getting a handle to a Classloader reference, since you need either a servlet container or the Classloader from Axis2Service when used to integrate Axis2 services. A module though is totally different and you may not really need to integrate with axis2, just run spring inside of it. In that case, I'd try something like(not tested): public class MyModule implements Module { // initialize the module public void init(ConfigurationContext configContext, AxisModule module) throws AxisFault { ClassLoader classLoader = getClass().getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {applicationContext.xml}, false); appCtx.setClassLoader(classLoader); appCtx.refresh(); } define this bean as shown in the docs: !-- Configure spring to give a hook to axis2 without a ServletContext -- bean id=applicationContext class=org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder / Then every time you need a bean reference: ApplicationContext aCtx = ApplicationContextHolder.getContext(); MyObject = (MyObject) aCtx.getBean(myBean); HTH, Robert
Re: Axis2-Spring not able to use original wsdl
Its always worked for me, though I haven't tried useOrignalwsdl specifically in the last few releases. Have you tried it and its not working? If not, it would be helpful to try a spring config with useOrignalwsdl and a config without, and compare the logs in debug mode. HTH, Robert On Mon, Nov 17, 2008 at 9:06 AM, Ravichandra [EMAIL PROTECTED] wrote: Hi I am developing a web service in axis2. I am using Spring to inject the service class. Is it possible to use the original wsdl and load context using spring. Please let me know. my services.xml is as follows: serviceGroup service name=PortfolioSearch messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=suggestible.search.PortfolioSuggestServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanNameportfolioSearchImpl/parameter parameter name=useOrignalwsdltrue/parameter parameter name=modifyUserWSDLPortAddressfalse/parameter operation name=suggestPortfolio mep=http://www.w3.org/ns/wsdl/in-out; namespace=http://suggestible.search/PortfolioSearch/; actionMappinghttp://suggestible.search/PortfolioSearch/suggestPortfolio/actionMapping outputActionMappinghttp://suggestible.search/PortfolioSearch/PortfolioSearch/suggestPortfolioResponse/outputActionMapping /operation /service /serviceGroup - Thanks Ravichandra -- View this message in context: http://www.nabble.com/Axis2-Spring-not-able-to-use-original-wsdl-tp20538235p20538235.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2-Spring not able to use original wsdl
Are you using Axis2 1.4.1 ? If so, please file a jira explaining the issue: https://issues.apache.org/jira/browse/AXIS2 - R On Mon, Nov 17, 2008 at 10:27 AM, Ravichandra [EMAIL PROTECTED] wrote: Hi Thanks for your reply. I tried it with spring config and with out spring config, with spring config, it generates new wsdl. And with out spring config, it thorws wsaw:Action = null error. iksrazal wrote: Its always worked for me, though I haven't tried useOrignalwsdl specifically in the last few releases. Have you tried it and its not working? If not, it would be helpful to try a spring config with useOrignalwsdl and a config without, and compare the logs in debug mode. HTH, Robert On Mon, Nov 17, 2008 at 9:06 AM, Ravichandra [EMAIL PROTECTED] wrote: Hi I am developing a web service in axis2. I am using Spring to inject the service class. Is it possible to use the original wsdl and load context using spring. Please let me know. my services.xml is as follows: serviceGroup service name=PortfolioSearch messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=suggestible.search.PortfolioSuggestServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanNameportfolioSearchImpl/parameter parameter name=useOrignalwsdltrue/parameter parameter name=modifyUserWSDLPortAddressfalse/parameter operation name=suggestPortfolio mep=http://www.w3.org/ns/wsdl/in-out; namespace=http://suggestible.search/PortfolioSearch/; actionMappinghttp://suggestible.search/PortfolioSearch/suggestPortfolio/actionMapping outputActionMappinghttp://suggestible.search/PortfolioSearch/PortfolioSearch/suggestPortfolioResponse/outputActionMapping /operation /service /serviceGroup - Thanks Ravichandra -- View this message in context: http://www.nabble.com/Axis2-Spring-not-able-to-use-original-wsdl-tp20538235p20538235.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Thanks Ravichandra -- View this message in context: http://www.nabble.com/Axis2-Spring-not-able-to-use-original-wsdl-tp20538235p20539391.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: soapmonitor - where to place applet classes
I've never seen internal jvm errors like this before - particularly applet related ones. What browser / OS are you using? Maybe try using a later jvm may help. I'd try switching browsers too. HTH, Robert 2008/10/27 lqg629 [EMAIL PROTECTED]: Hi, I am running tomcat5.5 and axis2-1.4.My intention is using soapmonitor .but when I visit httP://localhost:8080/axis2/SOAPMonitor,the console display follow trace: Java Plug-in 1.5.0 使用 JRE 版本 1.5.0 Java HotSpot(TM) Client VM 用户主目录 = C:\Documents and Settings\lyn c: 清除控制台窗口 f: 终结在结束队列上的对象 g: 垃圾收集 h: 显示此帮助消息 l: 转储类载入程序列表 m: 打印内存使用 o: 触发日志记录 p: 重新载入代理配置 q: 隐藏控制台 r: 重新载入策略配置 s: 转储系统和部署属性 t: 转储线程列表 v: 转储线程堆栈 x: 清除类载入程序高速缓存 0-5: 设置跟踪级别为n java.lang.NullPointerException at javax.swing.border.EmptyBorder.init(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(Unknown Source) at java.awt.Container.layout(Unknown Source) at java.awt.Container.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at sun.plugin.util.GrayBoxPainter.freezePainting(Unknown Source) at sun.plugin.AppletViewer.showAppletStatus(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception in thread thread applet-org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class java.lang.NullPointerException at javax.swing.border.EmptyBorder.init(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at
Re: Question on SOAPMonitor
This most often happens due to port issues. IIRC its 5401. Make sure nothing else is using the port. You can also try changing the port in web.xml. HTH, Robert On Fri, Sep 5, 2008 at 8:39 AM, Martin Wunderlich [EMAIL PROTECTED] wrote: Hi there, I am trying to use the Axis2 SOAPMonitor to take a close look at the SOAP messages to and from my existing web service. I installed the the SOAPMonitor on Tomcat as per the instructions and it works fine when I go to http://localhost:8080/axis2/SOAPMonitor. However, if I want to use the monitor on my own web service (e.g. on http://localhost:8080/MyWebService/SOAPMonitor), the applet doesn't start. I have added the servlet configuration of my service's web.xml and also included the classes in the service's root directory. The request fails with the following msg: message Servlet SOAPMonitorService is not available description The requested resource (Servlet SOAPMonitorService is not available) is not available. Am I incorrectly assuming that I could use the Axis2 SoapMonitor to monitor any SOAP web service that I am running? Cheers, Martin -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on SOAPMonitor
I just looked at the docs and its port 5001. I'm a linux guy so I suppose you'd open up a unix shell in a modern mac and type: netstat -anp | grep 5001 HTH, Robert On Fri, Sep 5, 2008 at 12:34 PM, Martin Wunderlich [EMAIL PROTECTED] wrote: Hi Robert, Thanks a lot for the quick reply. Any idea on how can I check on Mac OS which ports are active? Cheers, Martin Original-Nachricht Datum: Fri, 5 Sep 2008 10:11:27 -0300 Von: robert lazarski [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: Question on SOAPMonitor This most often happens due to port issues. IIRC its 5401. Make sure nothing else is using the port. You can also try changing the port in web.xml. HTH, Robert On Fri, Sep 5, 2008 at 8:39 AM, Martin Wunderlich [EMAIL PROTECTED] wrote: Hi there, I am trying to use the Axis2 SOAPMonitor to take a close look at the SOAP messages to and from my existing web service. I installed the the SOAPMonitor on Tomcat as per the instructions and it works fine when I go to http://localhost:8080/axis2/SOAPMonitor. However, if I want to use the monitor on my own web service (e.g. on http://localhost:8080/MyWebService/SOAPMonitor), the applet doesn't start. I have added the servlet configuration of my service's web.xml and also included the classes in the service's root directory. The request fails with the following msg: message Servlet SOAPMonitorService is not available description The requested resource (Servlet SOAPMonitorService is not available) is not available. Am I incorrectly assuming that I could use the Axis2 SoapMonitor to monitor any SOAP web service that I am running? Cheers, Martin -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on SOAPMonitor
Try looking at the axis2 logs ... there may be an exception. If nothing jumps out, try putting axis2 in debug via the logging propertes under WEB-INF/classes . Then look for clues. If you still are stuck, post the logs around the soap monitor servlet setup and I'll try to help. - R On Fri, Sep 5, 2008 at 2:32 PM, Martin Wunderlich [EMAIL PROTECTED] wrote: Thanks a lot! So, it is port 5001 alright (in web.xml), but there is nothing using that port, even though the SoapMonitor is running. Strange...it must be something else then. Cheers, Martin Original-Nachricht Datum: Fri, 5 Sep 2008 12:52:20 -0300 Von: robert lazarski [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: Question on SOAPMonitor I just looked at the docs and its port 5001. I'm a linux guy so I suppose you'd open up a unix shell in a modern mac and type: netstat -anp | grep 5001 HTH, Robert On Fri, Sep 5, 2008 at 12:34 PM, Martin Wunderlich [EMAIL PROTECTED] wrote: Hi Robert, Thanks a lot for the quick reply. Any idea on how can I check on Mac OS which ports are active? Cheers, Martin Original-Nachricht Datum: Fri, 5 Sep 2008 10:11:27 -0300 Von: robert lazarski [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: Question on SOAPMonitor This most often happens due to port issues. IIRC its 5401. Make sure nothing else is using the port. You can also try changing the port in web.xml. HTH, Robert On Fri, Sep 5, 2008 at 8:39 AM, Martin Wunderlich [EMAIL PROTECTED] wrote: Hi there, I am trying to use the Axis2 SOAPMonitor to take a close look at the SOAP messages to and from my existing web service. I installed the the SOAPMonitor on Tomcat as per the instructions and it works fine when I go to http://localhost:8080/axis2/SOAPMonitor. However, if I want to use the monitor on my own web service (e.g. on http://localhost:8080/MyWebService/SOAPMonitor), the applet doesn't start. I have added the servlet configuration of my service's web.xml and also included the classes in the service's root directory. The request fails with the following msg: message Servlet SOAPMonitorService is not available description The requested resource (Servlet SOAPMonitorService is not available) is not available. Am I incorrectly assuming that I could use the Axis2 SoapMonitor to monitor any SOAP web service that I am running? Cheers, Martin -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 and Spring 2.5
axis2 1.4 doesn't have jars from the spring framswork in the release. One of the axis2 jars has a reference to a few spring interfaces - whose signature has been constant since spring 1.0 . Anyways, just put what springframwork jars you need in WEB-INF/lib . I'd be suprised if there is a problem. HTH, Robert On Thu, Aug 21, 2008 at 7:02 AM, Jens Goldhammer [EMAIL PROTECTED] wrote: Hello, I have a axis2 web service which have to use Spring 2.5. How can I avoid that these jars are conflicting with the one which are delivered with Axis2? Thanks, Jens -- View this message in context: http://www.nabble.com/Axis2-and-Spring-2.5-tp19085761p19085761.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: spring Axis2 integration question
Putting all jars in WEB-INF/lib is easiest and recommended in most cases. - R On Tue, Aug 12, 2008 at 2:21 PM, scabbage [EMAIL PROTECTED] wrote: I've been struggling to understand how spring and Axis2 will work together. I have read the tutorial at http://ws.apache.org/axis2/1_4/spring.html#21. But still couldn't understand what it's talking about. As I'm new to webservice and Axis2, I hope you could kindly provide some pointers so that could use my Spring services in Axis2. So basically I have a standard hibernate+dao+Spring app packaged as a jar file. The tutorial was unclear about where I should put this jar file. It should be one of services, pojo or modules, am I right? As this is not a simple pojo, I assume I should put it in one of the other two folders. And then the tutorial goes ahead talking about with/without a ServletContext, which I'm a bit lost. What does it mean by with a ServletContext? Can someone please explain how I could deploy this jar in Axis2? Thanks. -- View this message in context: http://www.nabble.com/spring-Axis2-integration-question-tp18948823p18948823.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: spring Axis2 integration question
Also, use the with a ServletContext options for use with WEB-INF/lib . - R On Tue, Aug 12, 2008 at 3:23 PM, robert lazarski [EMAIL PROTECTED] wrote: Putting all jars in WEB-INF/lib is easiest and recommended in most cases. - R On Tue, Aug 12, 2008 at 2:21 PM, scabbage [EMAIL PROTECTED] wrote: I've been struggling to understand how spring and Axis2 will work together. I have read the tutorial at http://ws.apache.org/axis2/1_4/spring.html#21. But still couldn't understand what it's talking about. As I'm new to webservice and Axis2, I hope you could kindly provide some pointers so that could use my Spring services in Axis2. So basically I have a standard hibernate+dao+Spring app packaged as a jar file. The tutorial was unclear about where I should put this jar file. It should be one of services, pojo or modules, am I right? As this is not a simple pojo, I assume I should put it in one of the other two folders. And then the tutorial goes ahead talking about with/without a ServletContext, which I'm a bit lost. What does it mean by with a ServletContext? Can someone please explain how I could deploy this jar in Axis2? Thanks. -- View this message in context: http://www.nabble.com/spring-Axis2-integration-question-tp18948823p18948823.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant target
http://ws.apache.org/axis2/tools/1_4/CodegenToolReference.html#ant HTH, Robert On Thu, Jul 24, 2008 at 11:07 AM, Felipe Coutinho [EMAIL PROTECTED] wrote: Hello, I'm looking for an ant task to generate the aar for the Axis2. I want to generate the aar without the Service Archive Wizard - Eclipse Plug-in. Can you help me? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More than 1 Spring .aar in Axis2
Having spring jars in AXIS2_HOME/lib when looking for AAR classloader seperation makes no sense, right ? Please refer to the latest docs: http://ws.apache.org/axis2/1_4/spring.html HTH, Robert On Fri, Jul 11, 2008 at 12:22 PM, neerja malik [EMAIL PROTECTED] wrote: Hey, I am stuck with same issue. I am trying to deploy 2 spring enabled aars in Axis2 but its overriding the application context of second one. Please lemme know if you found solution to the problem. thanks, Neerja Sunesh Kumra wrote: Hello, I followed the example http://ws.apache.org/axis2/1_1/spring.html and got a Axis2 service (not deployed in Servlet Container) using Spring to work. I have not packaged spring.jar in the .aar but have included it in AXIS2_HOME/lib and it all works fine. However, the moment I deploy another .aar file into the Axis2, the previous .aar stops working and the new one works fine. The error returned is: soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringNo bean named 'amountChargingServiceSkeleton' is defined/faultstring detail / /soapenv:Fault /soapenv:Body Part of applicationContext.xml is shown below: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans !-- Configure spring to give a hook to axis2 without a ServletContext -- bean id=applicationContext class=org.apache.axis2.extensions.spring.receivers.ApplicationContextHo lder / !-- Wiring the AmountChargingServiceSkeleton with the Request Handler's reference -- bean id=amountChargingServiceSkeleton class=test.AmountChargingServiceSkeleton /bean // removed other parts of the file Part of services.xml is shown below: ?xml version=1.0 encoding=UTF-8? !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) -- serviceGroup service name=AmountChargingServiceSpringInit class=test.SpringInit descriptionThis web service initializes Spring./description parameter name=ServiceClass test.SpringInit/parameter parameter name=ServiceTCCLcomposite/parameter parameter name=load-on-startuptrue/parameter operation name=startUp messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ /operation /service service name=AmountChargingService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=test.AmountChargingServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceClasstest.AmountChargingServiceSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringAppCon textAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseamountChargingServiceSkeleton/parameter parameter name=ServiceTCCL locked=falsecomposite/parameter operation name=chargeAmount mep=http://www.w3.org/ns/wsdl/in-out; // removed other parts of the file Has anyone got multiple .aar files which all include Spring to work in Axis2 ? Cheers, Sunesh Ericsson Services Limited Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2 8SG Registered Number in England and Wales: 3709800 This communication is confidential and intended solely for the addressee(s). Any unauthorised review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. Ericsson Services Limited does not enter into contracts or contractual obligations via electronic mail, unless otherwise agreed in writing between the parties concerned. E-mail including attachments is susceptible to data corruption, interruption, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- View this message in context: http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p18406336.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Spring service bean not initialized in the skeleton class.
The way you describe your service, you would need some web.xml entries to load spring, ie, axis2 expects spring to be configured when using SpringServletContextObjectSupplier. By putting spring in debug, you should see it initializing correctly - in which case axis2 should be able to find it. If you can start spring, but axis2 can't find it - try looking at the servlet container logs. If you still have problems after all that, let us know. HTH, Robert On Mon, Jun 2, 2008 at 9:54 AM, Dwipin C [EMAIL PROTECTED] wrote: Hi, I am in the process of integrating Axis2 with Spring2.5. Scenario - I have created the aar with the xsds, services.xml, the wsdl file. The rest of my classes are present under the WEB-INF/classes folder and the dependant jars in the WEB-INF/lib of the axis2 app. I've updated the services.xml to have the serviceObjectSupplier as org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier and SpringBeanName set as the skeleton class. When I call this web-service, I get a NullpointerException from this skeleton class because the service (which is supposed to be injected by Spring) class was not initialised. I am not sure if I've missed out something here; Any help or pointers would be of great help. Thanks, Dwipin Chandran ForwardSourceID:NT00014DF2 ForwardSourceID:NT00014E02 =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring service bean not initialized in the skeleton class.
To have the skeleton and the spring service bean get linked, you need to manually tweak your services.xml . Try that, and if you still have problems, paste your services.xml . Robert On Mon, Jun 2, 2008 at 10:29 AM, Dwipin C [EMAIL PROTECTED] wrote: Hi Robert, I have the required web.xml entries - listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param From the spring logs, I can see the beans being initialised. Its just that axis skeleton and the spring service bean did not get linked. I couldnt find anything in the server log too. Thanks and Regards, Dwipin Chandran Tata Consultancy Services Discoverer Bldg, 4th Floor International Technology Park Ltd, Whitefield Road Bangalore - 560066,Karnataka India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing robert lazarski [EMAIL PROTECTED] 06/02/2008 06:34 PM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: Spring service bean not initialized in the skeleton class. The way you describe your service, you would need some web.xml entries to load spring, ie, axis2 expects spring to be configured when using SpringServletContextObjectSupplier. By putting spring in debug, you should see it initializing correctly - in which case axis2 should be able to find it. If you can start spring, but axis2 can't find it - try looking at the servlet container logs. If you still have problems after all that, let us know. HTH, Robert On Mon, Jun 2, 2008 at 9:54 AM, Dwipin C [EMAIL PROTECTED] wrote: Hi, I am in the process of integrating Axis2 with Spring2.5. Scenario - I have created the aar with the xsds, services.xml, the wsdl file. The rest of my classes are present under the WEB-INF/classes folder and the dependant jars in the WEB-INF/lib of the axis2 app. I've updated the services.xml to have the serviceObjectSupplier as org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier and SpringBeanName set as the skeleton class. When I call this web-service, I get a NullpointerException from this skeleton class because the service (which is supposed to be injected by Spring) class was not initialised. I am not sure if I've missed out something here; Any help or pointers would be of great help. Thanks, Dwipin Chandran ForwardSourceID:NT00014DF2 ForwardSourceID:NT00014E02 =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT00014E1A =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring service bean not initialized in the skeleton class.
Dwipin, I see no obvious problem. I'm afraid you're going to have to put all your axis2, spring, and userspace classes in debug and check the logs. Sure you don't have a name mismatch and that you really are using this services.xml ? Try double checking that your applicationContext.xml and services.xml are matching correctly. Robert On Mon, Jun 2, 2008 at 10:44 AM, Dwipin C [EMAIL PROTECTED] wrote: This the services.xml I am using - ?xml version=1.0 encoding=UTF-8? !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT) -- serviceGroup service name=ACLAndAuthService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=services.ACLAndAuthServiceMessageReceiverInOut/ /messageReceivers parameter name=serviceObjectSupplier locked=false org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier /parameter parameter name=SpringBeanName locked=false aclService /parameter parameter name=ServiceClass services.ACLAndAuthServiceSkeleton /parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter operation name=authenticate mep=http://www.w3.org/ns/wsdl/in-out; namespace=http://foundation.com; actionMappingurn:authenticate/actionMapping outputActionMapping urn:authenticateResponse /outputActionMapping faultActionMapping faultName=AuthenticationException urn:authenticateAuthenticationException /faultActionMapping /operation operation name=retrieveAcl mep=http://www.w3.org/ns/wsdl/in-out; namespace=http://foundation.com; actionMappingurn:retrieveAcl/actionMapping outputActionMapping urn:retrieveAclResponse /outputActionMapping faultActionMapping faultName=AclRetrievalException urn:retrieveAclAclRetrievalException /faultActionMapping /operation /service /serviceGroup Dwipin Chandran Tata Consultancy Services Discoverer Bldg, 4th Floor International Technology Park Ltd, Whitefield Road Bangalore - 560066,Karnataka India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing robert lazarski [EMAIL PROTECTED] 06/02/2008 07:03 PM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: Spring service bean not initialized in the skeleton class. To have the skeleton and the spring service bean get linked, you need to manually tweak your services.xml . Try that, and if you still have problems, paste your services.xml . Robert On Mon, Jun 2, 2008 at 10:29 AM, Dwipin C [EMAIL PROTECTED] wrote: Hi Robert, I have the required web.xml entries - listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value /context-param From the spring logs, I can see the beans being initialised. Its just that axis skeleton and the spring service bean did not get linked. I couldnt find anything in the server log too. Thanks and Regards, Dwipin Chandran Tata Consultancy Services Discoverer Bldg, 4th Floor International Technology Park Ltd, Whitefield Road Bangalore - 560066,Karnataka India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing robert lazarski [EMAIL PROTECTED] 06/02/2008 06:34 PM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: Spring service bean not initialized in the skeleton class. The way you describe your service, you would need some web.xml entries to load spring, ie, axis2 expects spring to be configured when using SpringServletContextObjectSupplier. By putting spring in debug, you should see it initializing correctly - in which case axis2 should be able to find it. If you can start spring, but axis2 can't find it - try looking at the servlet container logs. If you still have problems after all that, let us know. HTH, Robert On Mon, Jun 2
Re: soapmonitor - where to place applet classes
Hi Daniel, You are using the 1.3 docs, and there was a package name change for 1.4: http://ws.apache.org/axis2/1_4/soapmonitor-module.html Starting with axis2 1.4, the applets code is in the org.apache.axis2.soapmonitor.applet package. Therefore the 'org' directory created by the unpacking of soapmonitor-1.4.jar should be placed in CATALINA_HOME/webapps/axis2/ as shown in the above example. Note the new 'org' directory part of the docs. HTH, Robert On Wed, May 28, 2008 at 12:43 PM, Daniel Germanus [EMAIL PROTECTED] wrote: Hi, I'm running tomcat 6.0.14 and axis2 1.4. my intention is using soapmonitor but - as i'm somehow new to this scenario - there are problems: the soapmonitor applet doesn't start, java console says there's a ClassNotFound exception on the SOAPMonitorApplet.class file. During setup, I sticked strict to http://ws.apache.org/axis2/1_3/soapmonitor-module.html and put the applet class as mentioned there to CATALINA_HOME/webapps/axis2/ I double-checked axis2.xml and web.xml as well... I guess there's a missing reference or incorrect system environment variable set? thanks for any help, Daniel P.S. that's the console trace: Java Plug-in 1.6.0_06 Laden: Klasse org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class nicht gefunden java.lang.ClassNotFoundException: org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis with Spring
See the axis2 spring tutorial, as it shows you how to do this. Robert On Mon, May 19, 2008 at 11:25 AM, Krystian Szczesny [EMAIL PROTECTED] wrote: Hi, I'm wondering, if it is possible to get a hold on Spring ApplicationContext in my WebService? I've got a WAR file with multiple AAR files and I don't want to start a separate context for each of them. I've got one already started which is managing my application [activemq, some beans] and I want to get access to it in my webservices. I need access to some connection pools that are managed by my spring configuration, and as you may know it, I don't really want to have separate connection pool for each AAR file. So... again, is there any way I can access spring applicationcontect in my webservice, that is in AAR? Best regards, -- Krystian Szczesny This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis with Spring
You don't need to configure Axis2 to have Spring Inside an AAR and have a seperate context. for each war. Rather, if I understand correctly, you need to implement _your own_ class that implements ApplicationContextAware. By having that a static class that implements that inerface, you can get arefence to ApplicationContext anywhere, anytime. Google on that interface or see the org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder.java class for an example implementation and the spring tutorial for the xml that uses it. HTH, Robert On Mon, May 19, 2008 at 12:18 PM, Krystian Szczesny [EMAIL PROTECTED] wrote: Hi Paul, I've seen this project already, might use it in future, but at the moment I can't repackage my project. I've got several AAR files and it needs to stay this way. That's why I am asking, if there is a way to get already existing application context within an AAR file. From Axis2 docs I can see that the only way to get it, is to load the web service in spring, so I would have a separate context for each AAR file, right? Best regards, Krystian -Original Message- From: Paul Fremantle [mailto:[EMAIL PROTECTED] Sent: 19 May 2008 15:55 To: axis-user@ws.apache.org Subject: Re: Axis with Spring You also might like to look at WSF/Spring, which is an open source project that embeds Axis2 into Spring. http://wso2.org/projects/wsf/spring Paul On Mon, May 19, 2008 at 3:27 PM, robert lazarski [EMAIL PROTECTED] wrote: See the axis2 spring tutorial, as it shows you how to do this. Robert On Mon, May 19, 2008 at 11:25 AM, Krystian Szczesny [EMAIL PROTECTED] wrote: Hi, I'm wondering, if it is possible to get a hold on Spring ApplicationContext in my WebService? I've got a WAR file with multiple AAR files and I don't want to start a separate context for each of them. I've got one already started which is managing my application [activemq, some beans] and I want to get access to it in my webservices. I need access to some connection pools that are managed by my spring configuration, and as you may know it, I don't really want to have separate connection pool for each AAR file. So... again, is there any way I can access spring applicationcontect in my webservice, that is in AAR? Best regards, -- Krystian Szczesny This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Choosing a path
I wrote some of the docs you are referring to, so allow me to respond ;-). First of all, in web services the xml is typically not validated, due to performance reasons. However, since you mention xmlbeans, you're in luck as all the generated classes have a validate() method. So you can actually validate any xmlbeans bound xml before sending it over the wire. YMMV for other databinding API's. I think the WSDL2Java bat and sh files may have solved the ClassNotFoundException problem with xmlbeans, though the WSDL2Java ant task may expose you to a few unique problems with xmlbeans nuances. As for your Axiom questions - others may be able to comment better - what you seem to be getting at is not using xmlbeans via wsdl2java, but rather the wsdl2java -none option. Maybe trying that may clarify things for you. HTH, Robert On Wed, May 7, 2008 at 2:54 PM, Kurt Kavanaugh [EMAIL PROTECTED] wrote: I have been doing some reading… and more reading… J So many choices. But all start with business requirements. In a nutshell. I like the Axiom model and the ability to write code vs generated code. On the other hand I want XSD conformance. We also need to have a fairly rich XML model so we want to use a document vs RPC model. In addition I/we don't just want to have a single graph/XML/Tree like Object we need to be able to have arrays of graph like objects. To me this seems to be the promise, to richly describe via XML and XSD a service interaction. Not RPC simple type in and simple type out, at least for our purposes. Questions: The Axiom model of server side implementation does not seem to be able to be generated from the WSDL2Java, Am I missing something? Can I be pointed to examples that illustrate non-trivial XSD compliance using the Axiom server side implementation? Where is the XML validated? Handler Chain? Servlet, Skelton, Or is the validity of interaction the responsibility of the Client and WSDL? I used WSDL2Java xmlBeans option and have a working service with the *.class Schema types. How are these used? Should I decompile and take a peek under the hood? Are they used for XSD comfornance? Also the documentation says the files are needed at compile time. I am not finding that to be true. Excerpt * An important detail is that an XMLBean class file is also generated by WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by the above ant task and will be needed to compile the generated sources. A frequent problem is users get an error such as: ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder. Make sure the generated binary files are on the classpath * The classes are used at runtime correct? So this would be a runtime ClassNotFoundException. The reference to the schemaorg_* String when creating the type isn't checked at compile time. Finally since the promise of webservices is to *not* have to use Axis or any other implementation specific stack, but the XML XSD, and WSDL elements, are there client examples for invoking Axis created services from .NET, 1.4 JRE, etc…clients which in theory bind to the WSDL. I know each of these technologies has it's own WSDL2language tools but it would be good to have a library of non Axis clients for compatibility testing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic Axis/Axiom usage question
Axiom is a good starting way to get to know Axis2, and in fact is involved in many of the low level parts parts of Axis2. However, if its Java Collections you want, you may consider using one of the higher level databinding API's like adb, xmlbeans, jibx, jaxb etc. Those type of API's can give you Java Collections, and when used in Axis2 code generation, hook into Axiom anyways though at a level you generally don't need to worry about unless there's a bug. When using those with Axis2 you need an xml schema and WSDL, hand generated or via reverse engineering existing code. One way of looking at things is the xml payload sent over the wire is in Arrays suitable for any language, and not just for Java Collections. With databinding, the xml payload is obstenably the same while the code level implemetation varies widely. HTH, Robert On Tue, May 6, 2008 at 5:59 PM, Parham, Clinton [EMAIL PROTECTED] wrote: Hello. I'm getting my feet wet with Axis Axiom and something is just not clicking for me. Let's say I have a web service method that accepts and returns OMElements. The web service receives some data and builds a java.util.Collection of results objects that I need to send back as an XML payload in the response. What is the correct (most efficient memory-wise) way to do this? Do I merely use factory.createOMElement / element.addAttribute to recreate the Collection objects in XML? Or, do I use something more elaborate like somehow wrapping the Collection with OMSourcedElementImpl and using OMDataSource? Some guidance and pointers to a similar example would be appreciated. Thank you, Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic Axis/Axiom usage question
Well watch out for the premature optimization trap. Measure, don't guess. If you have a schema and pre-existing objects, I myself would be looking into sending the objects over the wire as is. JIBX in particular is pretty good at pre-existing objects and Collections. Anyways, what Axiom / Stax does that's special is that you don't have to build the tree. Its been a while since I worked with it, but if you are determined to go with Axiom and are concerned about performance, one thing to try might be creating a custom DataSource that implements OMDataSource that streams the output. To go that way, I'd grep thru the unit tests from the latest source for OMDataSource for examples and pay attention to not building the tree in particular if possible. HTH, Robert On Tue, May 6, 2008 at 10:14 PM, Parham, Clinton [EMAIL PROTECTED] wrote: Robert: thanks for your input and I will keep your suggestions about data binding in mind. That aside, how would I do this the more manual way using OMElement? I have a specific schema to adhere to and already have a Java object model in place that I have to work with. To keep things simple, assume each object in the Collection becomes an XML element in the response payload. I want to be sure that I leverage the strengths of AXIOM/StAX and minimize memory usage. -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 6:59 PM To: axis-user@ws.apache.org Subject: Re: Basic Axis/Axiom usage question Axiom is a good starting way to get to know Axis2, and in fact is involved in many of the low level parts parts of Axis2. However, if its Java Collections you want, you may consider using one of the higher level databinding API's like adb, xmlbeans, jibx, jaxb etc. Those type of API's can give you Java Collections, and when used in Axis2 code generation, hook into Axiom anyways though at a level you generally don't need to worry about unless there's a bug. When using those with Axis2 you need an xml schema and WSDL, hand generated or via reverse engineering existing code. One way of looking at things is the xml payload sent over the wire is in Arrays suitable for any language, and not just for Java Collections. With databinding, the xml payload is obstenably the same while the code level implemetation varies widely. HTH, Robert On Tue, May 6, 2008 at 5:59 PM, Parham, Clinton [EMAIL PROTECTED] wrote: Hello. I'm getting my feet wet with Axis Axiom and something is just not clicking for me. Let's say I have a web service method that accepts and returns OMElements. The web service receives some data and builds a java.util.Collection of results objects that I need to send back as an XML payload in the response. What is the correct (most efficient memory-wise) way to do this? Do I merely use factory.createOMElement / element.addAttribute to recreate the Collection objects in XML? Or, do I use something more elaborate like somehow wrapping the Collection with OMSourcedElementImpl and using OMDataSource? Some guidance and pointers to a similar example would be appreciated. Thank you, Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] FlexBuilder and Axis2 wsdl file import...
Its not an axis2 issue, but anyways, I just read the flex jira link and there's a fix for at least their wsdl import issue. See the comment about adding a complex type to the wsdl so their tool works. After making that tweak, I'd try validating any wsdl you try with their import tool. HTH, Robert On Mon, May 5, 2008 at 3:11 PM, Michael Bauer [EMAIL PROTECTED] wrote: All: I throw myself on the mercy of the group. I have a WS deployed in Axis2 under Jboss 4.2.2. Everything works fine on the server side. But, on the client, I get complier errors galore when I import the WSDL. The problem is, from my understanding, with how FlexBuilder 3 interprets the WSDL service, but I cannot for the life of me understand what it is I need to change to make it work. The JIRA link to the bug is https://bugs.adobe.com/jira/browse/FB-11860. My WSDL is pasted in there at the bottom. I can also send it, but I held off b/c usually the mail server complains about the message size when I have tried in the past. I just want to understand what they want me to do. I am on a time-crunch here, and I am desperate. Michael Bauer [EMAIL PROTECTED] http://www.codechimp.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
Well you seem to have a lot of problems! Let me try and help you with the spring stuff... The error you point to is an advanced use case, and while I'm confident it works because I tested it, I suggest you try something simpler. The link you point to, while old, never the less tries to init spring without the help of a servlet container via axis2 lifecycle stuff. What is far easier is configuring spring as most apps do - outside even of axis2 - via web.xml . http://ws.apache.org/axis2/1_4/spring.html Try the With a ServletContext example . (the sublinks are broken in the 1.4 spring docs, argh! ). HTH, Robert On Fri, May 2, 2008 at 10:15 AM, Michael Bauer [EMAIL PROTECTED] wrote: I am getting really desperate for help here. Its possible that my emails are not making it to the group, but I hope someone can get me pointed in the right direction. I am trying to deploy a WS in Axis2 that was created using wsdl2java.sh. I took the generated files, extended the Skeleton, and modified the services.xml to grab the Impl class from Spring. The end-goal is to have a web service that I can import using FlexBuilder 3's WS import function. When I kicked off the process, however, FlexBuilder complained that the WSDL 2.0 file produced was not a valid WSDL. Further digging showed that FlexBuilder doesn't seem to support WSDL 2.0, so I tried to follow the recommendation of the WSDL 1.1 page and set the useOriginalwsdl to false (it was set to true). However, doing so leaves a nasty stack trace: 08:58:43,038 ERROR [STDERR] org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: null 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:110) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:179) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) ... Whats interesting is further below in the stack trace: ... 08:58:43,081 ERROR [STDERR] Caused by: org.apache.axis2.AxisFault: Axis2 Can't find Spring's ApplicationContext 08:58:43,081 ERROR [STDERR] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 08:58:43,081 ERROR [STDERR] at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:63) 08:58:43,081 ERROR [STDERR] ... 159 more Through some research on Google, I found an article suggesting this was a coding problem in Axis2: http://www.mail-archive.com/[EMAIL PROTECTED]/msg23055.html It says its been resolved, but I just updated my maven2 POMs to pull Axis2 1.4 (was using Axis2 1.3), and I still get the same problem. I even removed all the 1.3 generated files and re-generated them all using Axis2 1.4 version of wsdl2java.sh. I am not quite sure I understand the bug report fully, nor how to fix it. I could really use some assistance here. Michael Bauer [EMAIL PROTECTED] http://www.codechimp.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml/reason /error On May 2, 2008, at 9:50 AM, robert lazarski wrote: Well you seem to have a lot of problems! Let me try and help you with the spring stuff... The error you point to is an advanced use case, and while I'm confident it works because I tested it, I suggest you try something simpler. The link you point to, while old, never the less tries to init spring without the help of a servlet container via axis2 lifecycle stuff. What is far easier is configuring spring as most apps do - outside even of axis2 - via web.xml . http://ws.apache.org/axis2/1_4/spring.html Try the With a ServletContext example . (the sublinks are broken in the 1.4 spring docs, argh! ). HTH, Robert On Fri, May 2, 2008 at 10:15 AM, Michael Bauer [EMAIL PROTECTED] wrote: I am getting really desperate for help here. Its possible that my emails are not making it to the group, but I hope someone can get me pointed in the right direction. I am trying to deploy a WS in Axis2 that was created using wsdl2java.sh. I took the generated files, extended the Skeleton, and modified the services.xml to grab the Impl class from Spring. The end-goal is to have a web service that I can import using FlexBuilder 3's WS import function. When I kicked off the process, however, FlexBuilder complained that the WSDL 2.0 file produced was not a valid WSDL. Further digging showed that FlexBuilder doesn't seem to support WSDL 2.0, so I tried to follow the recommendation of the WSDL 1.1 page and set the useOriginalwsdl to false (it was set to true). However, doing so leaves a nasty stack trace: 08:58:43,038 ERROR [STDERR] org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: null 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:110) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:179) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) 08:58:43,039 ERROR [STDERR] at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) ... Whats interesting is further below in the stack trace: ... 08:58:43,081 ERROR [STDERR] Caused by: org.apache.axis2.AxisFault: Axis2 Can't find Spring's ApplicationContext 08:58:43,081 ERROR [STDERR] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 08:58:43,081 ERROR [STDERR] at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:63) 08:58:43,081 ERROR [STDERR] ... 159 more Through some research on Google, I found an article suggesting this was a coding problem in Axis2: http://www.mail-archive.com/[EMAIL PROTECTED]/msg23055.html It says its been resolved, but I just updated my maven2 POMs to pull Axis2 1.4 (was using Axis2 1.3), and I still get the same problem. I even removed all the 1.3 generated files and re-generated them all using Axis2 1.4 version of wsdl2java.sh. I am not quite sure I understand the bug report fully, nor how to fix it. I could really use some assistance here. Michael Bauer [EMAIL PROTECTED] http://www.codechimp.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Michael Bauer [EMAIL PROTECTED] http://www.codechimp.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
Also, I just noticed you are using SpringAppContextAwareObjectSupplier. When connecting axis2 via a spring instance loaded from the servlet container, use SpringServletContextObjectSupplier . Try that and let us know if you still have problems. On Fri, May 2, 2008 at 12:09 PM, robert lazarski [EMAIL PROTECTED] wrote: Read the springframework docs. Axis2 is not responsible for loading spring, and services.xml is an axis2 file. All services.xml does is connect axis2 to an already loaded spring. The easiest way to load spring, as shown in http://ws.apache.org/axis2/1_4/spring.html , is to put in the web.xml a few things like... listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml /param-value /context-param Please read the docs, both from springframwork.org and axis2, to get working config so axis2 can load. HTH, Robert On Fri, May 2, 2008 at 11:56 AM, Michael Bauer [EMAIL PROTECTED] wrote: This is exactly what I am using, although the Spring Axis2 directives go in the services.xml, not in web.xml. Here is what I have in both files: web.xml ?xml version=1.0? web-app xmlns=http://java.sun.com/xml/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 context-param param-namecontextConfigLocation/param-name param-value classpath:applicationContext.xml classpath:messageProviderContext.xml classpath:userManagerServiceContext.xml classpath:bindpointManagerServiceContext.xml /param-value /context-param !-- Listener for Spring IOC -- listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener !-- Http Flex Session attribute and binding listener support -- listener listener-classflex.messaging.HttpFlexSession/listener-class /listener !-- Axis2 Servlet -- servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping !-- BlazeDS/Flex MessageBroker Servlet -- servlet servlet-nameMessageBrokerServlet/servlet-name display-nameMessageBrokerServlet/display-name servlet-classflex.messaging.MessageBrokerServlet/servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping /web-app services.xml ?xml version=1.0 encoding=UTF-8? serviceGroup service name=BindpointService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=com.bindpoint.server.providers.BindpointServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanNamebindpointService/parameter !-- parameter name=ServiceClasscom.bindpoint.server.providers.BindpointServiceImpl/parameter -- parameter name=useOriginalwsdlfalse/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter operation name=opLogin mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp://www.bindpoint.com/bp_server/opLogin/actionMapping outputActionMappinghttp://providers.server.bindpoint.com/BindpointService/opLoginResponse/outputActionMapping /operation operation name=opCloseSession mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp://www.bindpoint.com/bp_server/opCloseSession/actionMapping outputActionMappinghttp://providers.server.bindpoint.com/BindpointService/opCloseSessionResponse/outputActionMapping /operation operation name=opSendMessage mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp://www.bindpoint.com/bp_server/opSendMessage/actionMapping outputActionMappinghttp://providers.server.bindpoint.com/BindpointService/opSendMessageResponse/outputActionMapping /operation operation name=opGetPendingMessages mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp
Re: Please help: Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
I'm the wrong person to help on POJO issues. However, you have full control of the types by writing your own WSDL and XML schema via the contract first style of development. Alternatively, use java2wsdl and code first which may give you better results for your needs. HTH, Robert On Fri, May 2, 2008 at 12:14 PM, Michael Bauer [EMAIL PROTECTED] wrote: Disregard the last email. It was my lack of reading the fine-print that caught me there. I am still having another issue, however. The entire reason I went through the process of defining the service by the WSDL was because when I deployed the POJO it made all the types anyType. This was corrected when I deployed using generated Java from the WSDL I created, however, it reverts back to anyTypes for everything when I turn the useOriginalwsdl to false. I have a suspicion this is related to why the POJO also showed the same behavior. Is there a way to get WSDL 1.1 without Axis2 making everything anyType? On May 2, 2008, at 11:09 AM, robert lazarski wrote: Read the springframework docs. Axis2 is not responsible for loading spring, and services.xml is an axis2 file. All services.xml does is connect axis2 to an already loaded spring. The easiest way to load spring, as shown in http://ws.apache.org/axis2/1_4/spring.html , is to put in the web.xml a few things like... listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml /param-value /context-param Please read the docs, both from springframwork.org and axis2, to get working config so axis2 can load. HTH, Robert On Fri, May 2, 2008 at 11:56 AM, Michael Bauer [EMAIL PROTECTED] wrote: This is exactly what I am using, although the Spring Axis2 directives go in the services.xml, not in web.xml. Here is what I have in both files: web.xml ?xml version=1.0? web-app xmlns=http://java.sun.com/xml/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 context-param param-namecontextConfigLocation/param-name param-value classpath:applicationContext.xml classpath:messageProviderContext.xml classpath:userManagerServiceContext.xml classpath:bindpointManagerServiceContext.xml /param-value /context-param !-- Listener for Spring IOC -- listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener !-- Http Flex Session attribute and binding listener support -- listener listener-classflex.messaging.HttpFlexSession/listener-class /listener !-- Axis2 Servlet -- servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping !-- BlazeDS/Flex MessageBroker Servlet -- servlet servlet-nameMessageBrokerServlet/servlet-name display-nameMessageBrokerServlet/display-name servlet-classflex.messaging.MessageBrokerServlet/servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping /web-app services.xml ?xml version=1.0 encoding=UTF-8? serviceGroup service name=BindpointService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=com.bindpoint.server.providers.BindpointServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanNamebindpointService/parameter !-- parameter name=ServiceClasscom.bindpoint.server.providers.BindpointServiceImpl/parameter -- parameter name=useOriginalwsdlfalse/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter operation name=opLogin mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp://www.bindpoint.com/bp_server/opLogin/actionMapping outputActionMappinghttp://providers.server.bindpoint.com/BindpointService/opLoginResponse/outputActionMapping /operation operation name=opCloseSession mep=http://www.w3.org/ns/wsdl/in-out; actionMappinghttp://www.bindpoint.com
Re: The WS Crazy Train!
I haven't read this book, but I remember when it came out. Hope it helps. http://www.agileskills2.org/DWSAA Robert On Tue, Apr 29, 2008 at 8:51 AM, [EMAIL PROTECTED] wrote: Brennan, As someone who's only a few (intensive) months further along the WS path than Scott seems to be, that is a beautiful summary. Very much in agreement with what I've found (but presented with the perspective, I think, of a lot more experience). Very helpful to have things summarized like that! Thank you. - Steve p.s. Have you considered writing the book that Scott is looking for? :-) I certainly spent a lot of time looking for one and didn't find it. __ Steve Gruverman, Programmer IntelliCare, Inc. | A Medco Health Solutions Company 500 Southborough Drive | South Portland ME 04106 Brennan Spies [EMAIL PROTECTED] wrote on 04/29/2008 02:00:01 AM: Scott, That's a tall order. There's lots to say about this space, and it won't be contained in one web page. Can't help you with the Xanax, but I can give you the brief tour of WS in Java. Here goes... 1. At the high level, your first decision is SOAP vs. REST. REST implies POX (plain old XML)--though it's not necessarily the case, that's the way the majority of RESTful services are developed. SOAP is just a message format, but all of the WS-* standards (and there's a lot of them) and WSDL (at least until v.2.0) revolve entirely around using SOAP; hence the perceived complexity because there's more to learn. REST has less structure, so it can be simpler when developing simple web services; however, if you have other requirements, such as security or policy, going with REST could be more difficult and error-prone than SOAP. It's over-simplifying a bit, but the distinction can be summed up as go with the standards in SOAP or roll your own with REST. Taking a look at some of the more popular web services from Google, Amazon, etc. may give you a better feeling for this. 2. Your second decision is going to be which Web Services stack to use. In Java, the major ones are Apache Axis 2.0, Apache CXF, Spring Web Services, and the JAX-WS reference implementation (on java.net). You'll have to match their features against your requirements to see which one fits you best. There's a fair amount of overlap in features (and even in the 3rd party libs they use), but there are significant differences as well. I'd recommend not using Axis 1.0 at this stage, since it is about 4-5 times slower than the newer stacks under load. 3. JAXB is simply a framework for XML-Java binding, one among many: JiBX, XML Beans, Castor, ADB, etc. Which one you use may be decided by which one(s) the stack in #2 you choose supports (you'll choose JAXB, for example, if you use Sun's JAX-WS reference implementation), but all except JAX-WS RI support more than one binding framework. 4. XML Schema is the standard way of defining XML types in SOAP/WSDL, but there are others. In WSDL 1.2 and 2.0, for example, you can( http://www.w3.org/TR/wsdl20-altschemalangs/) use Relax NG, but-- practically speaking--XML Schema rules the roost here. 5. Most WS frameworks (from #2) support two basic styles of development: top-down (write WSDL, generate Java--WSDL2Java, for instance) and bottom-up (generate WSDL and other artifacts from your Java code). I prefer the first, but bottom up may be simpler if you are just starting out, esp. if you already have code that you are adding a web service to. JSR-181 (JAX-WS) is particularly nice for this approach, since you just add annotations to your existing code. 6. If you must buy a book, don't buy anything that's been published more than a year ago. The landscape has changed a lot in the last year or two. One of my favorites, J2EE Web Services by Richard Monson-Haefel, is already out-of-date. Well, that's it for the nickel tour. The brush strokes are pretty broad here, but I hope I've given you a better idea. Brennan - Original Message - From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, April 28, 2008 4:37 PM Subject: The WS Crazy Train! Can someone either provide me a URL for xanax or a site that explains the interplay between SOAP/JAXB/WSDL/Schema/blah, blah, yada. yada? I am trying to figure out what is actually necessary to produce consume web services in Java and I am hearing that many of these technologies are optional! In fact, today it was decided that WSDL2Java produced too many artifacts and that writing web services could be much simpler. How do RESTful web services play into this mix, and what are the pros/cons to the permutations of ws stacks? I would gladly throw down my AMEX if someone can recommend a good book/resource that might clear this confusion.
Re: axis2 with spring, ibatis
I've never used ibatis, but presumably you'd load its config files via the classpath like you do with hibernate. Hint: load the resources in an exploded AAR as its easier. There's some tips on loading hibernate files in the spring tutorial and a good place to start would be trying the same thing with ibatis. HTH, Robert On Tue, Apr 15, 2008 at 2:39 PM, Henry Lu [EMAIL PROTECTED] wrote: Are there anyones who are using axis2 with spring and ibatis to access a database? Could some one show me how to do this in the service (not client) with an aar file? I don't know how to initialize/load the ibatis map file. -Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
On Tue, Mar 25, 2008 at 1:00 PM, Mauro Molinari [EMAIL PROTECTED] wrote: Lou Amodeo ha scritto: Thank Deepal. I found your article very helpful. I didn't see any discussion regarding exception processing. If I have a class that throws somethnig like CustomerNotFoundException (extends Exception) is that supported?Thanks Again! In Axis2 1.3 it is not supported. You might have a look at: https://issues.apache.org/jira/browse/AXIS2-3239 One other option: take a look at Jibx2Wsdl as it supports axis2. http://www.infoq.com/articles/sosnoski-code-first Works particularly well with hibernate, which I hope to doc someday. HTH, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to return Object[] from axis2
Hmm, you mention axis2 but the exception below is axis 1.x ? Robert On Thu, Mar 20, 2008 at 4:47 AM, Chinmoy Chakraborty [EMAIL PROTECTED] wrote: Thanks a lot Deepal for your reply. I have a made a test service that returns an object array. I can see the correct SOAP through the SOAPMonitor (that Axis2 is returning) but in axis 1.4 client I am getting following exception: 23938 ERROR [http8080-Processor23] org.apache.axis.client.Call - Exception: org.xml.sax.SAXException: Found character data inside an array element while deserializing at org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502) at org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) . How can resolve above issue? Chinmoy On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe [EMAIL PROTECTED] wrote: Yes Axis2 support Object arrays. The error may be due to some issue in your code , however we can help you to fix that if you can send us the code or create a JIRA attaching test code. Thank you! Deepal Hi All, I am using hitting Axis2 with axis 1.4 client. I have a service which returns Object[]. With axis 1.4 in both ends it worked well. But in axis2 it gives Nullpointer exception when the service tried to return Object[] (object array). Does axis2 support object array as return type? If yes then how can I make it work with old axis1.4 client? its necessary to support old axis1.4 because lots of our customers are using axis1.4 client and we need to make it backward compatible. Chinmoy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to return Object[] from axis2
Ahh, you have an axis2 service with an axis 1.x client. I'm not sure if axis 1.x supports object arrays so someone else will have to comment, sorry. Robert On Thu, Mar 20, 2008 at 9:05 AM, robert lazarski [EMAIL PROTECTED] wrote: Hmm, you mention axis2 but the exception below is axis 1.x ? Robert On Thu, Mar 20, 2008 at 4:47 AM, Chinmoy Chakraborty [EMAIL PROTECTED] wrote: Thanks a lot Deepal for your reply. I have a made a test service that returns an object array. I can see the correct SOAP through the SOAPMonitor (that Axis2 is returning) but in axis 1.4 client I am getting following exception: 23938 ERROR [http8080-Processor23] org.apache.axis.client.Call - Exception: org.xml.sax.SAXException: Found character data inside an array element while deserializing at org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502) at org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at org.apache.axis.client.Call.invoke(Call.java:2467) at org.apache.axis.client.Call.invoke(Call.java:2366) . How can resolve above issue? Chinmoy On Wed, Mar 19, 2008 at 7:43 PM, Deepal jayasinghe [EMAIL PROTECTED] wrote: Yes Axis2 support Object arrays. The error may be due to some issue in your code , however we can help you to fix that if you can send us the code or create a JIRA attaching test code. Thank you! Deepal Hi All, I am using hitting Axis2 with axis 1.4 client. I have a service which returns Object[]. With axis 1.4 in both ends it worked well. But in axis2 it gives Nullpointer exception when the service tried to return Object[] (object array). Does axis2 support object array as return type? If yes then how can I make it work with old axis1.4 client? its necessary to support old axis1.4 because lots of our customers are using axis1.4 client and we need to make it backward compatible. Chinmoy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 and ejbs
http://ws.apache.org/axis2/1_3/ejb-provider.html There's also nothing stopping you from wrapping EJB calls inside a web service - I've done that several times. HTH, Robert On Wed, Mar 12, 2008 at 5:01 PM, Laxma [EMAIL PROTECTED] wrote: Hi, Can session ejbs be called from axis2 web services? If so how do you bundle the ejb jar file with the service aar file ? Any help and info is appreciated. thanks laxma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 and ejbs
On Thu, Mar 13, 2008 at 11:22 AM, Laxma [EMAIL PROTECTED] wrote: Robert, Can the ejbs be packaged into the serviceA.aar file. In a word, no. Go with the tutorial example or the traditional ear route and wrap your ejb methods inside the web service. HTH, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error deploying Axis2 application into Spring
Its unusual to get stax errors in pure tomcat - usually its related weblogic / websphere / jboss having their own implementation in a higher priority classloader. The happy axis2 page (axis2-web/index.jsp I think) shows the location of where each jar was loaded from, and that may give you a clue. This error appears not to be spring related, however. HTH, Robert On Thu, Feb 14, 2008 at 2:09 PM, Moley Harey [EMAIL PROTECTED] wrote: Hi, I have developed an Axis 2 interface for a POJO-based J2EE application implemented using Spring. When I deploy the application I get the following error message in Tomcat log file: === Caused by: java.lang.IllegalStateException: No valid ObjectCreator found. at org.apache.axiom.om.util .StAXUtils$Pool.init(StAXUtils.java:64) at org.apache.axiom.om.util.StAXUtils.clinit(StAXUtils.java:88) === Could this be related to the way the application is deployed or maybe is a problem of the version of the Axiom/Stax jar files I am using? Thanks in advance -- ~~~ Para atras, solo para tomar impulso! http://chromewaves.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More than 1 Spring .aar in Axis2
The idea in the 'multiple spring instances case is to take advantage of the fact that each AAR has its own classloader, and therefore each spring instance with the proper init is in a completly seperate classloader per AAR. Using AXIS2_HOME/lib I think is what you really want to avoid, as that indicates a web app level classloader, ie, one spring instance will step on another. HTH, Robert On Fri, Feb 15, 2008 at 2:50 PM, Sunesh Kumra [EMAIL PROTECTED] wrote: Hello, I followed the example http://ws.apache.org/axis2/1_1/spring.html and got a Axis2 service (not deployed in Servlet Container) using Spring to work. I have not packaged spring.jar in the .aar but have included it in AXIS2_HOME/lib and it all works fine. However, the moment I deploy another .aar file into the Axis2, the previous .aar stops working and the new one works fine. The error returned is: soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringNo bean named 'amountChargingServiceSkeleton' is defined/faultstring detail / /soapenv:Fault /soapenv:Body Part of applicationContext.xml is shown below: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans !-- Configure spring to give a hook to axis2 without a ServletContext -- bean id=applicationContext class=org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder / !-- Wiring the AmountChargingServiceSkeleton with the Request Handler's reference -- bean id=amountChargingServiceSkeleton class=test.AmountChargingServiceSkeleton /bean // removed other parts of the file Part of services.xml is shown below: ?xml version=1.0 encoding=UTF-8? !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) -- serviceGroup service name=AmountChargingServiceSpringInit class=test.SpringInit descriptionThis web service initializes Spring./description parameter name=ServiceClass test.SpringInit/parameter parameter name=ServiceTCCLcomposite/parameter parameter name=load-on-startuptrue/parameter operation name=startUp messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ /operation /service service name=AmountChargingService messageReceivers messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=test.AmountChargingServiceMessageReceiverInOut/ /messageReceivers parameter name=ServiceClasstest.AmountChargingServiceSkeleton/parameter parameter name=useOriginalwsdltrue/parameter parameter name=modifyUserWSDLPortAddresstrue/parameter parameter name=ServiceObjectSupplier locked=falseorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter parameter name=SpringBeanName locked=falseamountChargingServiceSkeleton/parameter parameter name=ServiceTCCL locked=falsecomposite/parameter operation name=chargeAmount mep=http://www.w3.org/ns/wsdl/in-out; // removed other parts of the file Has anyone got multiple .aar files which all include Spring to work in Axis2 ? Cheers, Sunesh Ericsson Services Limited Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2 8SG Registered Number in England and Wales: 3709800 This communication is confidential and intended solely for the addressee(s). Any unauthorised review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. Ericsson Services Limited does not enter into contracts or contractual obligations via electronic mail, unless otherwise agreed in writing between the parties concerned. E-mail including attachments is susceptible to data corruption, interruption, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Spring Aware Service
On Feb 11, 2008 6:00 PM, John Cabral [EMAIL PROTECTED] wrote: snip org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:473) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:184) ... 40 more Caused by: java.lang.ClassNotFoundException: simpletest.SpringInitializer In the simplest case, figure out a way to get simpletest.SpringInitializer as: WEB-INF/classes/simpletest/SpringInitializer.class HTH, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] SimpleHTTPServer as transport listener causes too many connections to stay in TIME_WAIT state
Me == clueless . Just some general advice though. Have you thought about submitting patches to fix the NIO issues? I notice that someone from the synapse team (IIRC), three weeks ago, asked you to submit a test case for your failure in one of the jira's you posted. As I've said before Michele, you easily have some of the most complex and long going use cases for axis2 as a non-committer. Your involvement via patches certainly have a better chance of getting developer attention. In respect to this issue, I can at least try to be a bit helpful: 1) Have you tried running your code on anything else besides OSX to see if these socket issues are OS related? I've run into several socket and nio issues specific to linux for example. 2) Have you tried running http 1.0 instead of 1.1 ? 3) SimpleHTTPServer has never been meant for production use, so stop trying to use it like that. Fixing the nio issues seem to me to be the better path. My understanding of TIME_WAIT, via an old usenet post of mine, was best explained to me this way: After the connection is closed, there might still be some stray packets that were delayed and could still arrive. The TIME_WAIT status retains a record of a recent connection, so that the system can recognize these as delay packets. Are these connections going from CLOSE_WAIT to TIME_WAIT? Can you do a 'netstat -anp' and show the transition states? What issue do you have with TIME_WAIT exactly? Anyways, since SimpleHTTPServer is deep involved into the several hundred unit / integration tests, I don't see major changes happening at this point. 4) Obviously try the latest axis2 nightlies and post questions to the http commons / reactor list. Its possible the latest snapshot of reactor fixes your issue and can be promoted to the upcomming axis2 1.4 . HTH, Robert On Jan 31, 2008 7:48 PM, Michele Mazzucco [EMAIL PROTECTED] wrote: Hello again, I've tried to write a TransportListener which uses Jetty as http server -- but I had no success: when requests come I get the following error ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:wsa=http://www.w3.org/2005/08/addressing;soapenv:Headerwsa:Actionhttp://www.w3.org/2005/08/addressing/soap/fault/wsa:Action/soapenv:Headersoapenv:Bodysoapenv:Faultfaultcodesoapenv:Server/faultcodefaultstringjava.lang.NullPointerException/faultstringdetailExceptionorg.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:182) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at ncl.qosp.modules.manager.RouterDispatcher.isFault(RouterDispatcher.java:230) at ncl.qosp.modules.manager.RouterDispatcher.invoke(RouterDispatcher.java:267) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) ... 16 more I'm attaching my implementation. Any help is appreciated, Michele On Thu, 2008-01-31 at 19:47 +, Michele Mazzucco wrote: Hello everybody, I'm facing a serious problem with too many connections left in TIME_WAIT state, causing my system to hang.
Re: Spring not loading classpath resources not found in AAR
On Jan 15, 2008 2:06 PM, Gladwell, Ricado [EMAIL PROTECTED] wrote: Hi All, For some reason, I get a DeploymentException when attempting to load classpath resources in my Spring application context XML. snip Caused by: org.apache.axis2.AxisFault: Error creating bean with name 'aolProxyRegistrationService' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'welcomeEmailVelocityTemplate'; nested exception is java.lang.IllegalArgumentException: Could not retrieve File for class path resource [welcomeEmail.vm]: class path resource [welcomeEmail.vm] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/D:/Program Files/Apache Software Foundation/Tomcat 5.5/work/Catalina/localhost/axis2/axis25019RSPProxyServer-0.1-SNAPSHOT.a ar!/welcomeEmail.vm The error Failed to convert property value of type [java.lang.String] to required type [java.io.File] for property 'welcomeEmailVelocityTemplate'; looks like a spring error and not an axis2 error. Its often the case that some type of stream or url is preferred for files in a servlet container, and perhaps even more so for reading files inside a aar. I'd take a look at this interface and and choose an implementing class that gets some type of stream going ala getResourceAsStream() : http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/core/io/Resource.html The same type of problem is common for hibernate file mappings and some type of resource handling is a known solution. HTH, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [U] Problems with Axis2/Spring inside EAR vs Exploded directory
The docs seem to cover this case: http://ws.apache.org/axis2/1_3/app_server.html Give that a try and you still have problems let us know. HTH, Robert On Jan 13, 2008 12:58 AM, Higdon, Aaron C Mr CONT USAAC [EMAIL PROTECTED] wrote: UNCLASSIFIED I have been developing several web services using Axis2 v1.3 and Spring v2.0.6 onto Weblogic 9.2. During initial development I was deploying the application as an exploded EAR directory and things seemed to work fine. The final builds were done as an actual EAR file and would not deploy (though the same EAR file could be exploded and deploy fine). Here is the snippet of the exception: Caused by: org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectS upplier.getServiceObject(SpringServletContextObjectSupplier.java:86) ... 55 more Caused by: java.lang.NullPointerException at org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectS upplier.getServiceObject(SpringServletContextObjectSupplier.java:58) This appears to be a result of the SpringServletContextObjectSupplier.getServiceObject attempting to get the axisConfiguration (axisService.getAxisConfiguration()) and getting a null. This happens since the AxisService parent is the AxisServiceGroup but the axisServiceGroup's parent is null and I cannot find where it is ever set differently. The exploded application behaves differently since inside WarBasedAxisConfigurator.loadServices the services are not loaded by the loadServicesFromUrl method (as the EAR deployment is). Anybody been able to deploy their web services inside an EAR? My service class are in a jar in WEB-INF/lib of the EAR's WAR, an AAR is in the WEB-INF/services that contains only the service.xml and service.wsdl, services.list has the AAR listed in the WEB-INF/services dir, the web.xml is loading Spring via the ContextLoaderListener, the services.xml using SpringServletContextObjectSupplier Any help/suggestions would be greatly appreciated. UNCLASSIFIED - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]