This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Prohibited Package Name Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Prohibited Package Name Error" Watch "Prohibited Package Name Error" New topic
Author

Prohibited Package Name Error

Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
I am able to succesfully deploy webservice. However when I run and click invoke button I am getting error

An error occurred for port: {http://Test.getEmailP
ackage/}MyWebServiceSoapHttpPort: java.lang.SecurityException: Prohibited package name: java.lang.runtime.

What could be the reason, I tried renaming the package name!

Any help is highly appreciated.

Thanks


Never take anything for granted because you never know when you will lose it
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42030
    
  64
What are you trying to do with "java.lang.runtime"? You can't define new classes or packages in the java.lang hierachy. Or are you using the java.lang.Runtime class? In that case, fix the capitalization.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: Prohibited Package Name Error