You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Reinhard Hnat <hn...@logotronic.co.at> on 2011/06/16 09:27:25 UTC

Deploy Problem

I wrote a Webapplication using eclipse to be deployed with apache 
tomcat6. Within the eclipse IDE everything works well. As soon as i want 
to deploy the WAR-file to the server using the manager i get the message: _
Servlet ClickServlet is not available

Opposite to this the example applications and the_*__*sample "Hello, 
World" Application work without problems. I do not know where to search 
for the problem. Any hints are appreciated.

Best regards
Reinhard
_


_

Re: Deploy Problem [SEC=UNCLASSIFIED]

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 6/16/2011 6:19 AM, Pid wrote:
> On 16/06/2011 08:46, Reinhard Hnat wrote:
>> Is it this what you mean with 'stacktrace'?
> 
> Yes.
> 
> The AccessControlException indicates that you have the Java Security
> Manager enabled, at a guess you're probably running a repackaged version
> of Tomcat on Linux - where the packager has configured the Security
> Manager to be switched on.
> 
> Look in "/etc/default/tomcat6" for a way to change this.

... or give your webapp the proper permissions to run under a
SecurityManager.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk36GgcACgkQ9CaO5/Lv0PBH4QCffOtCFgrewLckZlVyMrF73jlS
HyQAniDwq0Doh6gDtN7mjnE9naVcT7sm
=3U0R
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy Problem [SEC=UNCLASSIFIED]

Posted by Pid <pi...@pidster.com>.
On 16/06/2011 08:46, Reinhard Hnat wrote:
> Is it this what you mean with 'stacktrace'?

Yes.

The AccessControlException indicates that you have the Java Security
Manager enabled, at a guess you're probably running a repackaged version
of Tomcat on Linux - where the packager has configured the Security
Manager to be switched on.

Look in "/etc/default/tomcat6" for a way to change this.


p



> 16.06.2011 09:04:08 org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet ClickServlet as unavailable
> 16.06.2011 09:04:08 org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /GealogWeb threw load() exception
> javax.servlet.UnavailableException:
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission click.mode read)
>     at org.apache.click.ClickServlet.init(ClickServlet.java:222)
>     at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
>     at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
>     at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> 
>     at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
> 
>     at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1166)
> 
>     at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
>     at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> 
>     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4367)
>     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> 
>     at
> org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
>     at
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
> 
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
>     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>     at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
>     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
> 
>     at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
> 
>     at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
>     at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
>     at
> org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
> 
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
>     at
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
>     at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> 
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
> 
>     at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
> 
>     at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
> 
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
> 
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> 
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>     at java.lang.Thread.run(Thread.java:636)
> 
> Regards
> Reinhard
> 
> 16.06.2011 09:04:08 org.apache.catalina.core.ApplicationContext log
> INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
> 16.06.2011 09:04:10 org.apache.catalina.core.StandardWrapperValve invoke
> INFO: Servlet ClickServlet is currently unavailable
> 16.06.2011 09:22:51 org.apache.catalina.core.StandardWrapperValve invoke
> INFO: Servlet ClickServlet is currently unavailable
> Am 2011-06-16 09:31, schrieb Fraser, James:
>> UNCLASSIFIED
>>
>> Hi,
>>
>> I'd say you have a problem with you deployment descriptor (web.xml).
>>
>> Do you have a stacktrace you can share?
>>
>> -----Original Message-----
>> From: Reinhard Hnat [mailto:hnat@logotronic.co.at]
>> Sent: Thursday, 16 June 2011 4:57 PM
>> To: users@tomcat.apache.org
>> Subject: Deploy Problem
>>
>> I wrote a Webapplication using eclipse to be deployed with apache
>> tomcat6. Within the eclipse IDE everything works well. As soon as i want
>> to deploy the WAR-file to the server using the manager i get the
>> message: _ Servlet ClickServlet is not available
>>
>> Opposite to this the example applications and the_*__*sample "Hello,
>> World" Application work without problems. I do not know where to search
>> for the problem. Any hints are appreciated.
>>
>> Best regards
>> Reinhard
>> _
>>
>>
>> _
>>
>> IMPORTANT: This email remains the property of the Department of Defence
>> and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
>> If you have received this email in error, you are requested to contact
>> the sender and delete the email.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 



Re: Deploy Problem [SEC=UNCLASSIFIED]

Posted by Reinhard Hnat <hn...@logotronic.co.at>.
Is it this what you mean with 'stacktrace'?

16.06.2011 09:04:08 org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet ClickServlet as unavailable
16.06.2011 09:04:08 org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /GealogWeb threw load() exception
javax.servlet.UnavailableException: 
java.security.AccessControlException: access denied 
(java.util.PropertyPermission click.mode read)
     at org.apache.click.ClickServlet.init(ClickServlet.java:222)
     at javax.servlet.GenericServlet.init(GenericServlet.java:212)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
     at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
     at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
     at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
     at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1166)
     at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
     at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
     at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4367)
     at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
     at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
     at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
     at java.security.AccessController.doPrivileged(Native Method)
     at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
     at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
     at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
     at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
     at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
     at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
     at 
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
     at 
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
     at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
     at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
     at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
     at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
     at java.security.AccessController.doPrivileged(Native Method)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
     at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Thread.java:636)

Regards
Reinhard

16.06.2011 09:04:08 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
16.06.2011 09:04:10 org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet ClickServlet is currently unavailable
16.06.2011 09:22:51 org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet ClickServlet is currently unavailable
Am 2011-06-16 09:31, schrieb Fraser, James:
> UNCLASSIFIED
>
> Hi,
>
> I'd say you have a problem with you deployment descriptor (web.xml).
>
> Do you have a stacktrace you can share?
>
> -----Original Message-----
> From: Reinhard Hnat [mailto:hnat@logotronic.co.at]
> Sent: Thursday, 16 June 2011 4:57 PM
> To: users@tomcat.apache.org
> Subject: Deploy Problem
>
> I wrote a Webapplication using eclipse to be deployed with apache
> tomcat6. Within the eclipse IDE everything works well. As soon as i want
> to deploy the WAR-file to the server using the manager i get the
> message: _ Servlet ClickServlet is not available
>
> Opposite to this the example applications and the_*__*sample "Hello,
> World" Application work without problems. I do not know where to search
> for the problem. Any hints are appreciated.
>
> Best regards
> Reinhard
> _
>
>
> _
>
> IMPORTANT: This email remains the property of the Department of Defence
> and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
> If you have received this email in error, you are requested to contact
> the sender and delete the email.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Deploy Problem [SEC=UNCLASSIFIED]

Posted by "Fraser, James" <Ja...@dsto.defence.gov.au>.
UNCLASSIFIED

Hi,

I'd say you have a problem with you deployment descriptor (web.xml).

Do you have a stacktrace you can share? 

-----Original Message-----
From: Reinhard Hnat [mailto:hnat@logotronic.co.at]
Sent: Thursday, 16 June 2011 4:57 PM
To: users@tomcat.apache.org
Subject: Deploy Problem

I wrote a Webapplication using eclipse to be deployed with apache
tomcat6. Within the eclipse IDE everything works well. As soon as i want
to deploy the WAR-file to the server using the manager i get the
message: _ Servlet ClickServlet is not available

Opposite to this the example applications and the_*__*sample "Hello,
World" Application work without problems. I do not know where to search
for the problem. Any hints are appreciated.

Best regards
Reinhard
_


_

IMPORTANT: This email remains the property of the Department of Defence
and is subject to the jurisdiction of section 70 of the Crimes Act 1914.
If you have received this email in error, you are requested to contact
the sender and delete the email.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org