Http Error: could not Post file on server
Hi Axis2 User Group, My Axis2 webservice is deployed in Tomcat, this webservice will access oracle to get information. According to the parameter passed in, the query can be long or short. For shorter one, this webservice works ok, but if it takes long time(more than 30 seconds), then I get this error: Http Error: Could not Post file '/axis2/services/Myservice' on server '10.18.12.3'(0) then xmlspy gets a error message: Error sending the soap data. I have set the requesttime out value to 20 miliseconds in axis2.xml, as well as the connectionTimeout value in tomcat. But these don't help to solve the problem. Ever time, it will timeout after 30 seconds. Does anybody can help with this problem? Thanks very much! Chang Xing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis2.xml proxy setting problem
Hi All,I am running axis2 on top of tomcat and using a remote repository. I am working in a web proxy environment i changed the settings in axis2.xml as transportSender name=http class=org.apache.axis2.transport.http.CommonsHTTPTransportSender parameter name=PROTOCOLHTTP/1.1/parameter parameter name=PROXY proxy_host=cache.mrt.ac.lk proxy_port=3128 locked=trueanonymous:anonymous:anonymous/parameter referring to bellow linkhttp://ws.apache.org/axis2/1_0/http-transport.html http://ws.apache.org/axis2/1_0/http-transport.html but still my -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
Axis2 - Bug with Proxy and HTTP/1.1?
Hi Everybody! Recently I have stumbled across a curious behavior of the Axis2 Framework. As I am not sure whether I am doing something wrong or if it is a bug, I try to outline my experience. Perhaps someone has made the same experiences. Basically I have an application, that uses the Axis2 Framework to contact a web service. So it can be seen as kind of a web service client. As I am working behind a companies proxy server, I added my proxy setting to the startup of the program, as usual. This looks something like: java -Dhttp.proxyHost=MyProxyhost -Dhttp.proxyPort=MyProxyPort -Dhttp.nonProxyHosts=MyExcludedHosts gov.nist.registry.xdstest2.XdsTest $* Funny thing, the program finished with the following stacktrace (only an extract): Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at gov.nist.registry.common2.registry.Soap.soapCall(Soap.java:60) at gov.nist.registry.xdstest2.StoredQueryTransaction.runSQ(StoredQueryTransaction.java:99) at gov.nist.registry.xdstest2.StoredQueryTransaction.run(StoredQueryTransaction.java:41) at gov.nist.registry.xdstest2.StepContext.run(StepContext.java:153) at gov.nist.registry.xdstest2.PlanContext.run(PlanContext.java:138) at gov.nist.registry.xdstest2.Xdstest2.runTest(Xdstest2.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1077) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:744) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167) at gov.nist.registry.xdstest2.XdsTest$_run_closure6.doCall(XdsTest.groovy:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:252) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:305) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:990) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:967) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51) at org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740) at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:761) at
Re: axis2.xml proxy setting problem
Hi, This should help http://www.keith-chapman.org/2008/10/how-to-run-axis2-behind-proxy-and.html Thanks, Keith. On Fri, Nov 14, 2008 at 2:20 PM, nafran shiraz [EMAIL PROTECTED] wrote: Hi All,I am running axis2 on top of tomcat and using a remote repository. I am working in a web proxy environment i changed the settings in axis2.xml as transportSender name=http class=org.apache.axis2.transport.http.CommonsHTTPTransportSender parameter name=PROTOCOLHTTP/1.1/parameter parameter name=PROXY proxy_host=cache.mrt.ac.lk proxy_port=3128 locked=trueanonymous:anonymous:anonymous/parameter referring to bellow linkhttp://ws.apache.org/axis2/1_0/http-transport.html http://ws.apache.org/axis2/1_0/http-transport.html but still my -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED] -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Re: Axis2 - Bug with Proxy and HTTP/1.1?
Stefan Its not the Axis2 client reporting Not Implemented. Its either the proxy or the server (Hard to tell which without seeing a wire trace or the logs from those systems). I'm guessing its the proxy. Axis2 is sending the message successfully and its the other system that can't handle HTTP 1.1. Paul On Fri, Nov 14, 2008 at 9:59 AM, StrongSteve [EMAIL PROTECTED] wrote: Hi Everybody! Recently I have stumbled across a curious behavior of the Axis2 Framework. As I am not sure whether I am doing something wrong or if it is a bug, I try to outline my experience. Perhaps someone has made the same experiences. Basically I have an application, that uses the Axis2 Framework to contact a web service. So it can be seen as kind of a web service client. As I am working behind a companies proxy server, I added my proxy setting to the startup of the program, as usual. This looks something like: java -Dhttp.proxyHost=MyProxyhost -Dhttp.proxyPort=MyProxyPort -Dhttp.nonProxyHosts=MyExcludedHosts gov.nist.registry.xdstest2.XdsTest $* Funny thing, the program finished with the following stacktrace (only an extract): Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at gov.nist.registry.common2.registry.Soap.soapCall(Soap.java:60) at gov.nist.registry.xdstest2.StoredQueryTransaction.runSQ(StoredQueryTransaction.java:99) at gov.nist.registry.xdstest2.StoredQueryTransaction.run(StoredQueryTransaction.java:41) at gov.nist.registry.xdstest2.StepContext.run(StepContext.java:153) at gov.nist.registry.xdstest2.PlanContext.run(PlanContext.java:138) at gov.nist.registry.xdstest2.Xdstest2.runTest(Xdstest2.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1077) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:744) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167) at gov.nist.registry.xdstest2.XdsTest$_run_closure6.doCall(XdsTest.groovy:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:252) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:305) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:990) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:967) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51) at
Re: Axis2 - Bug with Proxy and HTTP/1.1?
Hi Paul, Thanks for your quick reply. So it could be, that our proxy server does not support HTTP/1.1 - or to be specific Chunking and returns this error message back to the caller - me. That is indeed a great tip. I will check with our network guys on Monday! Thanks again! Greetings Stefan pzfreo wrote: Stefan Its not the Axis2 client reporting Not Implemented. Its either the proxy or the server (Hard to tell which without seeing a wire trace or the logs from those systems). I'm guessing its the proxy. Axis2 is sending the message successfully and its the other system that can't handle HTTP 1.1. Paul On Fri, Nov 14, 2008 at 9:59 AM, StrongSteve [EMAIL PROTECTED] wrote: Hi Everybody! Recently I have stumbled across a curious behavior of the Axis2 Framework. As I am not sure whether I am doing something wrong or if it is a bug, I try to outline my experience. Perhaps someone has made the same experiences. Basically I have an application, that uses the Axis2 Framework to contact a web service. So it can be seen as kind of a web service client. As I am working behind a companies proxy server, I added my proxy setting to the startup of the program, as usual. This looks something like: java -Dhttp.proxyHost=MyProxyhost -Dhttp.proxyPort=MyProxyPort -Dhttp.nonProxyHosts=MyExcludedHosts gov.nist.registry.xdstest2.XdsTest $* Funny thing, the program finished with the following stacktrace (only an extract): Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at gov.nist.registry.common2.registry.Soap.soapCall(Soap.java:60) at gov.nist.registry.xdstest2.StoredQueryTransaction.runSQ(StoredQueryTransaction.java:99) at gov.nist.registry.xdstest2.StoredQueryTransaction.run(StoredQueryTransaction.java:41) at gov.nist.registry.xdstest2.StepContext.run(StepContext.java:153) at gov.nist.registry.xdstest2.PlanContext.run(PlanContext.java:138) at gov.nist.registry.xdstest2.Xdstest2.runTest(Xdstest2.java:263) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1077) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:744) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:167) at gov.nist.registry.xdstest2.XdsTest$_run_closure6.doCall(XdsTest.groovy:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:95) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:599) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:252) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740) at groovy.lang.Closure.call(Closure.java:292) at groovy.lang.Closure.call(Closure.java:305) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:990) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:967) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: axis2.xml proxy setting problem
I tried that also bit it didn't work, is this something to do with the ports blocking at the university. Thanks, Nafran On Fri, Nov 14, 2008 at 3:38 PM, keith chapman [EMAIL PROTECTED]wrote: Hi, This should help http://www.keith-chapman.org/2008/10/how-to-run-axis2-behind-proxy-and.html Thanks, Keith. On Fri, Nov 14, 2008 at 2:20 PM, nafran shiraz [EMAIL PROTECTED] wrote: Hi All,I am running axis2 on top of tomcat and using a remote repository. I am working in a web proxy environment i changed the settings in axis2.xml as transportSender name=http class=org.apache.axis2.transport.http.CommonsHTTPTransportSender parameter name=PROTOCOLHTTP/1.1/parameter parameter name=PROXY proxy_host=cache.mrt.ac.lk proxy_port=3128 locked=trueanonymous:anonymous:anonymous/parameter referring to bellow linkhttp://ws.apache.org/axis2/1_0/http-transport.html http://ws.apache.org/axis2/1_0/http-transport.html but still my -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED] -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
problem with deploying services
Hi ,i have a requirement of deploying a specific service on a repository than deploying all, currently i am working with a remote repository so is there anyway that i can deploy only a specific service on the server than deploying all in the repo regards Nafran -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
Re: problem with deploying services
Hi , i have a requirement of deploying a specific service on a repository than deploying all, With local repository you can not do this. currently i am working with a remote repository so is there anyway that i can deploy only a specific service on the server than deploying all in the repo yes , add only the services you want to deploy into services.list. Deepal regards Nafran -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with deploying services
no i cant do that because it will be the repository for others also because i am working in a grid computing project.so is there any other way to do this. Nafran. On Fri, Nov 14, 2008 at 7:05 PM, Deepal Jayasinghe [EMAIL PROTECTED]wrote: Hi , i have a requirement of deploying a specific service on a repository than deploying all, With local repository you can not do this. currently i am working with a remote repository so is there anyway that i can deploy only a specific service on the server than deploying all in the repo yes , add only the services you want to deploy into services.list. Deepal regards Nafran -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
Re: problem with deploying services
Only other way is to use an Observer and throw deployment exceptions for the services you do not want to deploy. or hack the deployment so that you can feed your own services.list file ;-) -Deepal no i cant do that because it will be the repository for others also because i am working in a grid computing project.so is there any other way to do this. Nafran. On Fri, Nov 14, 2008 at 7:05 PM, Deepal Jayasinghe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , i have a requirement of deploying a specific service on a repository than deploying all, With local repository you can not do this. currently i am working with a remote repository so is there anyway that i can deploy only a specific service on the server than deploying all in the repo yes , add only the services you want to deploy into services.list. Deepal regards Nafran -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Nafran Shiraz Mobile: 0094-773867571 Home:0094-112717740 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Thank you! http://blogs.deepal.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.security.AccessControlException: access denied (java.io.FilePermission ..../WEB-INF/scriptServices read)
Hi Amila After fixing all the policy related exceptions, now I am getting below exception any idea what could be the reason. ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet AxisServlet: java.lang.ExceptionInInitializerError at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:564) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:96) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:79) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615) at org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxisConfigurator.java:146) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) Thanks Ramesh Amila Suriarachchi [EMAIL PROTECTED] 11/14/2008 12:48 AM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: java.security.AccessControlException: access denied (java.io.FilePermission /WEB-INF/scriptServices read) Try to give filePermission to all the file and see first. Then try to narrow down to the level you want. thanks, Amila. On 11/13/08, Ramesh Vishwanatham [EMAIL PROTECTED] wrote: Hi Amila Thanks for replying my question, I have added following in policy file: grant codeBase file:/xyz/xyz.war/- { permission java.io.FilePermission /xyz.ear/xyz.war/WEB-INF/scriptServices, read; }; and still getting below error: SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to Problem Determination Guide for further information. Permission: ./xyz.ear/xyz.war/WEB-INF/scriptServices : access denied (java.io.FilePermission ./xyz.ear/xyz.war/WEB-INF/scriptServices read) Code: org.apache.axis2.scripting.ScriptRepositoryListener in {file:/xyz/xyz.war/axis247136axis2-scripting-1.3.mar} Stack Trace: java.security.AccessControlException: access denied (java.io.FilePermission ./xyz.ear/xyz.war/WEB-INF/scriptServices read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code)) please let me know what coule be the problem. Regards, Ramesh Amila Suriarachchi [EMAIL PROTECTED] 11/13/2008 05:28 AM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: java.security.AccessControlException: access denied (java.io.FilePermission /WEB-INF/scriptServices read) On Wed, Nov 12, 2008 at 3:24 AM, Ramesh Vishwanatham [EMAIL PROTECTED] wrote: All I have a built simple web service and trying to deploy axis2 1.3 version in WAS6.0 environment running Java 1.4.2 under security manager and getting following exception: Stack Trace: java.security.AccessControlException: access denied (java.io.FilePermission /WEB-INF/scriptServices read) Looks like this problem was reported earlier and may be got fixed in later releases. Resolved: (AXIS2-3816) AccessControlException when running with Java2Security And also I find out following comments regarding this problem: this problem gets solved when i give the Web Application AllPermissions from the policy file but i cant get why this loose permission is required by sandeep khurana on May 20th 2008. We can not use later version 1.4 or 1.4.1 if this is fixed in one of these versions because of jvm version we are using. Please help me by pointing what needs to be specified in the policy file to be able to solve with axis2 1.3 version. At the deployment time Axis2 reads the Axis2.xml and services from the filesystem. So it needs to have File System read permission. Try granting the file read permission in the policy file. thanks, Amila. Thanks in Advance Ramesh Vishwanatham DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ - DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are
JMS Transport in Axis2
Hi, I am attempting to use the JMS transport in Axis2. We are using Tibco queues. I was able to do one way operation (http://www.w3.org/TR/wsdl#_one-way) over JMS. When I tried to do request-response operation, I get client already exists JMS Exception. SEVERE: Failed to create a connection. The JMSException message is as follows: clientId already exists [ERROR] Error preparing to send message to destination javax.jms.InvalidClientIDException: clientId already exists How does the org.apache.axis2.transport.jms.JMSSender work? Can I specify different queue in JMSSender configuration? I tried this but it didn't work: transportSender name=jms class=org.apache.axis2.transport.jms.JMSSender parameter name=default parameter name=java.naming.factory.initialcom.gs.ContextFactory/parameter parameter name=transport.jms.ConnectionFactoryJNDINameQueueFactory/parameter /parameter /transportSender How can I pass reply-to parameter from client side? Thanks and Regards, Shital Joshi Goldman, Sachs Co. Prime Brokerage Technology 917-343-5780 [EMAIL PROTECTED]
Re: JMS Transport in Axis2
Hi Joshi I am attempting to use the JMS transport in Axis2. We are using* Tibco* queues. I was able to do one way operation (_http://www.w3.org/TR/wsdl#_one-way_) over JMS. When I tried to do request-response operation, I get client already exists JMS Exception. SEVERE: Failed to create a connection. The JMSException message is as follows: clientId already exists [ERROR] Error preparing to send message to destination *javax.jms.InvalidClientIDException: clientId already exists* How does the* org.apache.axis2.transport.jms.JMSSender* work? Can I specify different queue in JMSSender configuration? I tried this but it didn't work: transportSender name=jms class=org.apache.axis2.transport.jms.JMSSender parameter name=default parameter name=java.naming.factory.initialcom.gs.ContextFactory/parameter parameter name=transport.jms.ConnectionFactoryJNDINameQueueFactory/parameter /parameter /transportSender We are currently improving the JMS transport to be much more powerful and flexible, including proper support for durable subscriptions, and the good news is that its almost ready.. Would you be interested to work with us to help ensure that your use case is properly handled, as well as to give us feedback that will help us make it better? The discussions have been happening around the Apache Synapse mailing list [1] for now, and you are welcome to join asankha [1] http://markmail.org/message/6ewkmrdzszi2yijy -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com
RE: JMS Transport in Axis2
Hello Asankha, I would be happy to work with your team. Do you have a date in mind for the release which has better JMS Transport? Thanks and Regards, Shital Joshi From: Asankha C. Perera [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 1:08 PM To: axis-user@ws.apache.org Cc: Joshi, Shital Subject: Re: JMS Transport in Axis2 Hi Joshi I am attempting to use the JMS transport in Axis2. We are using Tibco queues. I was able to do one way operation (http://www.w3.org/TR/wsdl#_one-way http://www.w3.org/TR/wsdl#_one-way ) over JMS. When I tried to do request-response operation, I get client already exists JMS Exception. SEVERE: Failed to create a connection. The JMSException message is as follows: clientId already exists [ERROR] Error preparing to send message to destination javax.jms.InvalidClientIDException: clientId already exists How does the org.apache.axis2.transport.jms.JMSSender work? Can I specify different queue in JMSSender configuration? I tried this but it didn't work: transportSender name=jms class=org.apache.axis2.transport.jms.JMSSender parameter name=default parameter name=java.naming.factory.initialcom.gs.ContextFactory/parameter parameter name=transport.jms.ConnectionFactoryJNDINameQueueFactory/parameter /parameter /transportSender We are currently improving the JMS transport to be much more powerful and flexible, including proper support for durable subscriptions, and the good news is that its almost ready.. Would you be interested to work with us to help ensure that your use case is properly handled, as well as to give us feedback that will help us make it better? The discussions have been happening around the Apache Synapse mailing list [1] for now, and you are welcome to join asankha [1] http://markmail.org/message/6ewkmrdzszi2yijy -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com
Re: JMS Transport in Axis2
Hi Shital I would be happy to work with your team. Do you have a date in mind for the release which has better JMS Transport? We are almost code complete.. but would need improved documentation and samples etc to supplement the new features. I would expect the code to be checked into svn by next week, and available with nightly builds. I do not know of any of the developers having access to a Tibco environment, and thus it would be great to get initial feedback from you. By the way, FYI the old transport code used by Axis2 (which was a fork from the code used by Apache Synapse sometime back) is now deprecated and removed from SVN, and the development of the common transports (such as JMS, Mail, etc ) takes place on WS-Commons sub-project.. asankha -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com
RE: JMS Transport in Axis2
Hello Asankha, Do you mean that next release of Axis2 say (Axis2_1_5) will not have code base for JMS Transport and we'll have include ws-commons library to support JMS Transport? I was thinking of extending org.apache.axis2.transport.jms.JMSSender and see if I can implement request-response operation. Do you think I should wait till next week and use your nightly builds? Thanks for your prompt response. Regards, Shital Joshi From: Asankha C. Perera [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 2:13 PM To: axis-user@ws.apache.org Subject: Re: JMS Transport in Axis2 Hi Shital I would be happy to work with your team. Do you have a date in mind for the release which has better JMS Transport? We are almost code complete.. but would need improved documentation and samples etc to supplement the new features. I would expect the code to be checked into svn by next week, and available with nightly builds. I do not know of any of the developers having access to a Tibco environment, and thus it would be great to get initial feedback from you. By the way, FYI the old transport code used by Axis2 (which was a fork from the code used by Apache Synapse sometime back) is now deprecated and removed from SVN, and the development of the common transports (such as JMS, Mail, etc ) takes place on WS-Commons sub-project.. asankha -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com
Re: Standard for publishing custom WSDL/XSD using axis2
Hi, are you asking about how to specify schema location in your WSDL during runtime? I believe absolute HTTP URL such as schemaLocation=http://foo.com/foo.xsd; is best. Relative URL may not work correctly and file paths don't work at all at runtime. Kurt Kavanaugh wrote: I have a number of Document based web services. Separate XSD document imported into my WSDL. All is well. I can use the WSDL in the .NET world, IBM world all the clients work. What I can't figure out, yet. Is where to put the WSDL so that it is picked up via a URL whilest in Axis2. The URI/services/serviceName?wsdl picks uses the JSP file to infer the WSDL, but the generated WSDL knows nothing of the XSD, as could be expected, how could it? Next stop is to set a break point on the incoming in the AxisServlet and see what gives. Note, XSD conformance is a must, with regards the request and reponse Thanks in advance Kurt -- View this message in context: http://www.nabble.com/Standard-for-publishing-custom-WSDL-XSD-using-axis2-tp20486488p20509610.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]
Re: JMS Transport in Axis2
Hi Shital Do you mean that next release of Axis2 say (Axis2_1_5) will not have code base for JMS Transport Yes.. and we'll have include ws-commons library to support JMS Transport? This will be done for you, most probably automatically with the Axis2 release.. but the specifics are yet to be sorted out.. one could argue not to ship the JMS and other transports by default with the Axis2 builds considering the size of the artifacts.. but it would be made very simple for users who want to use these transports, to make use of them. With the new structure, all transport code for Axis2 now comes from ws-commons, so its almost hidden from end users. I was thinking of extending *org.apache.axis2.transport.jms.JMSSender* and see if I can implement request-response operation. Do you think I should wait till next week and use your nightly builds? Yes,.. as a user you should not be worried about this level of the framework code. But you are more than welcome to join the dev lists and contribute to help make things better. asankha -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com