axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lindsay Hayes <lha...@cronustech.com>
Subject Re: Security Exception on Deployment
Date Tue, 25 Nov 2008 15:00:11 GMT
No,  I get this error with services I have written and the included 
example services.

keith chapman wrote:
> Does any of your service classes contain a package called 
> java.lang.annotation?
>
> Thanks.
> Keith.
>
> On Tue, Nov 25, 2008 at 4:02 AM, Lindsay Hayes <lhayes@cronustech.com 
> <mailto:lhayes@cronustech.com>> wrote:
>
>     I have installed axis 1.4.1. <http://1.4.1.>  I have deployed the
>     was file without any problems.  When viewing the example services
>     they are listed as faulty services.  Here is a stack trace from
>     the fault service.
>
>     Error: org.apache.axis2.deployment.DeploymentException: Processing
>     Operations Modules Error in schema generating Prohibited package
>     name: java.lang.annotation; nested exception is:
>     java.lang.SecurityException: Prohibited package name:
>     java.lang.annotation; nested exception is:
>     org.apache.axis2.deployment.DeploymentException: Error in schema
>     generating Prohibited package name: java.lang.annotation; nested
>     exception is: java.lang.SecurityException: Prohibited package
>     name: java.lang.annotation at
>     org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:329)
>     at
>     org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:91)
>     at
>     org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:167)
>     at
>     org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
>     at
>     org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
>     at
>     org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
>     at
>     org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
>     at
>     org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88)
>     at
>     org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:252)
>     at
>     org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
>     at
>     org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:373)
>     at
>     org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317)
>     at
>     org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>     at
>     org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>     at
>     org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>     at
>     org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
>     at
>     org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>     at
>     org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>     at
>     org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>     at
>     org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>     at
>     org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>     at
>     org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>     at
>     org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>     at
>     org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>     at
>     org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>     at
>     org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>     at
>     org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>     at
>     org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>     at
>     org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>     at
>     org.apache.catalina.core.StandardService.start(StandardService.java:448)
>     at
>     org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:324) at
>     org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at
>     org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>     Caused by: org.apache.axis2.deployment.DeploymentException: Error
>     in schema generating Prohibited package name:
>     java.lang.annotation; nested exception is:
>     java.lang.SecurityException: Prohibited package name:
>     java.lang.annotation at
>     org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:304)
>     ... 37 more Caused by: java.lang.SecurityException: Prohibited
>     package name: java.lang.annotation at
>     java.lang.ClassLoader.defineClass(ClassLoader.java:524) at
>     java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at
>     java.net.URLClassLoader.access$100(URLClassLoader.java:55) at
>     java.net.URLClassLoader$1.run(URLClassLoader.java:194) at
>     java.security.AccessController.doPrivileged(Native Method) at
>     java.net.URLClassLoader.findClass(URLClassLoader.java:187) at
>     java.lang.ClassLoader.loadClass(ClassLoader.java:289) at
>     java.lang.ClassLoader.loadClass(ClassLoader.java:282) at
>     java.lang.ClassLoader.loadClass(ClassLoader.java:235) at
>     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1346)
>     at
>     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>     at java.lang.Class.forName0(Native Method) at
>     java.lang.Class.forName(Class.java:141) at
>     org.codehaus.jam.internal.TigerDelegate.isTigerReflectionAvailable(TigerDelegate.java:118)
>     at
>     org.codehaus.jam.internal.reflect.ReflectTigerDelegate.create(ReflectTigerDelegate.java:66)
>     at
>     org.codehaus.jam.internal.reflect.ReflectClassBuilder.initDelegate(ReflectClassBuilder.java:148)
>     at
>     org.codehaus.jam.internal.reflect.ReflectClassBuilder.init(ReflectClassBuilder.java:56)
>     at
>     org.codehaus.jam.provider.CompositeJamClassBuilder.init(CompositeJamClassBuilder.java:45)
>     at
>     org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:178)
>     at
>     org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
>     at
>     org.codehaus.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
>     at
>     org.apache.ws.java2wsdl.SchemaGenerator.generateSchema(SchemaGenerator.java:134)
>     at
>     org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:281)
>     at
>     org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:294)
>     ... 37 more
>
>     I am running sun jre 1.4.2_13-b06 on tomcat 5.5.  From the stack
>     trace I see there is a problem loading java.lang.annotation, which
>     is part of jre 1.5.  From the system requirements for axis jre 1.4
>     and above are supported.  Why is there a reference to something in
>     jre 1.5 when this should work with jre 1.4?  How can I get this to
>     work within my enviornment?
>
>     Thanks
>
>
>
>
> -- 
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org


-- 
Lindsay Hayes
Technical Associate
Technical Services

Cronus Technologies Inc. (CTI)
250 - 2nd Ave. S. Saskatoon, SK Canada S7K 1K9
Phone: (306) 652-5798 Ext 114 or (306) 378-3323
Toll Free: 1-877-655-5798 Ext. 114
Fax: 1-306-652-5799
lhayes@cronustech.com

http://www.cfactor.net

******************************************************************************
This e-mail and any accompanying documents are subject to copyright and may contain information
that is privileged or confidential. Any use, disclosure, retention, copying or action taken
in reliance on the contents of this email and any accompanying documents by anyone other than
an intended recipient is strictly prohibited. If you are not an intended recipient, please
delete the e-mail and any attachments and notify us immediately.




Mime
View raw message