GWT server Side - Axis2 SOAP - get xml from External Server , [ access denied (java.lang.RuntimePermission modifyThreadGroup) ]

231 views
Skip to first unread message

Alp Yilancioglu

unread,
Nov 1, 2012, 5:19:26 PM11/1/12
to google-we...@googlegroups.com
Hi,
i have a  problem,
on Client side i make an RPC call to the server and at server side ,
 in the called function on server side; i am using axis2 to make a soap connection to get data,
 
i am getting the following  Exception:
                   
       java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup);
 
CODE :
SoapContex.outMsgCtx.setEnvelope(SoapContex.envelope);
SoapContex.opClient.addMessageContext(SoapContex.outMsgCtx);
SoapContex.opClient.execute(true);       <---------- after execution of this line:    i am getting the following exception

any suggestions for a work around?

        
 
 

 
 

Alp Yilancioglu

unread,
Nov 2, 2012, 4:43:52 AM11/2/12
to google-we...@googlegroups.com
 this subject is really important for me;

Jens

unread,
Nov 2, 2012, 5:18:36 AM11/2/12
to google-we...@googlegroups.com
If Axis spawns threads internally you can't use it on AppEngine unless you modify Axis to use AppEngines ThreadManager.


JAX-WS is supported for web service clients but not for servers. To write a SOAP server on App Engine you must use javax.xml.soap and JAXB.

-- J.

Alp Yilancioglu

unread,
Nov 2, 2012, 11:12:20 AM11/2/12
to google-we...@googlegroups.com
Thank you for your answers;

i am only allowed to use   javax.xml.soap and JAXB by GAE .. uff


Alp Yilancioglu

unread,
Nov 2, 2012, 12:57:27 PM11/2/12
to google-we...@googlegroups.com

I am really confused ,  i used   javax.xml.soap;  
getting the same exception;

Alp Yilancioglu

unread,
Nov 2, 2012, 2:29:48 PM11/2/12
to google-we...@googlegroups.com
 if i  remove the App Engine i can use axis or other ways
 
the thing is  i dont want to disable it, but i am not event using it,  restrictions are for some purposes i think
 
what do you suggest?  (JENS)

Jens

unread,
Nov 2, 2012, 3:06:39 PM11/2/12
to google-we...@googlegroups.com
If you dont plan to deploy your app to AppEngine then remove AppEngine from your project. If you want to use AppEngine then you should read AppEngine documentation and ask for help on the AppEngine group.

I haven't used AppEngine so far, so I can't help you any more.

Also http://www.google.de/search?q=appengine+soap seems to give a good amount of useful results.

-- J.


Alp Yilancioglu

unread,
Nov 2, 2012, 5:58:40 PM11/2/12
to google-we...@googlegroups.com

Thank you for your answers.

Take care;

Reply all
Reply to author
Forward
0 new messages