incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fábio C. Ríspoli <frisp...@gmail.com>
Subject RES: Problems running ADF Faces in Tomcat with security manager enabled
Date Tue, 09 May 2006 00:47:10 GMT
Adam,

Follows the error I got:

2006-05-08 19:50:26,213 [TP-Processor2] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[*****.com.br].[/].[jsp] -
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /login.jsp(6,62) Could not add one or
more tag libraries.
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:39)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405
)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
	at
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:21
1)
	at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:19
6)
	at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
63)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
03)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	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:585)
	at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:245)
	at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:50)
	at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:156)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:152)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:463)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:398)
	at
org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatc
her.java:66)
	at
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(Applica
tionDispatcher.java:81)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:293)
	at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
	at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:13
0)
	at
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:159)
	at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
	at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
	at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
	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:585)
	at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:245)
	at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:50)
	at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:156)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:152)
	at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfF
acesFilterImpl.java:279)
	at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFac
esFilterImpl.java:248)
	at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFil
terImpl.java:172)
	at
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:80)
	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:585)
	at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21
7)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:197)
	at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:50)
	at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:156)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:152)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:204)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
	at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
	at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
	at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java
:876)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
	at java.lang.Thread.run(Thread.java:595)

I don't know the permission my host administrator assigned to ADF libraries.
I will try to find. At the same time, I will pass your suggestion to him.

Thanks.

Fábio C. Rispoli
 
 


-----Mensagem original-----
De: Adam Winer [mailto:awiner@gmail.com] 
Enviada em: segunda-feira, 8 de maio de 2006 14:17
Para: adffaces-user@incubator.apache.org
Assunto: Re: Problems running ADF Faces in Tomcat with security manager
enabled


Fábio,

Could you pass on the error you're seeing?

This is probably what Ed Burns noted for EE 5 security;  he worked around it
there with this:

grant codeBase
"file:${com.sun.aas.installRoot}/domains/domain1/applications/j2ee-modules/a
df-faces-demo/WEB-INF/lib/adf-faces-api-SNAPSHOT.jar"
{
      permission java.net.NetPermission "specifyStreamHandler"; };

I'm sure you'll need slightly different syntax, but hopefully this will be
of help.

-- Adam


On 5/8/06, Fábio C.  Ríspoli <frispoli@gmail.com> wrote:
> Hi,
>
> Does someone know how to configure Tomcat security permissions to run 
> ADF Faces? My application will run on a shared environment and it will 
> not be possible to give all permissions to the lib directory as a 
> whole.
>
> I even tried to test it in my own Tomcat and gave adf-faces jar files 
> all permissions, but it didn't work either.
>
> Thanks in advance.
>
> Fábio C. Rispoli
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 
> 05/05/2006
>
>
>

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006
 


Mime
View raw message