You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by "Fábio C. Ríspoli" <fr...@gmail.com> on 2006/05/08 16:52:07 UTC

Problems running ADF Faces in Tomcat with security manager enabled

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
 

Re: Too many components

Posted by Adam Winer <aw...@gmail.com>.
Mark,

In general, this list is reserved for questions about the Apache
ADF drop, and shouldn't be used for questions about Oracle products.

Your specific problem seems to be an OC4J issue, not an ADF Faces
issue.  I suspect that if you switch from <jsp:directive.include>
to <jsp:include> (and switch your fragments to full JSPs) that
you'll avoid the problem.

-- Adam



On 5/17/06, Mark Millman <ma...@mizar.com> wrote:
> The following describes a problem I am having using Oracle ADF as
> shipped with the JDevStudio final release 10.1.3.0.4.  I've posted the
> problem to the Oracle JDeveloper Forum and got an immediate show of
> interest from Oracle but nothing since then in terms of a clue as to
> whether this is a solvable problem or not.  From the feed back I've
> received on the Oracle Forum it seems that I am not the only one having
> this problem.
>
> In a nutshell, my page has finally gotten so complex that the stack
> overflows and the application just aborts. I can remove a couple of
> components and the page works fine. It doesn't seem to matter which
> components I remove; when I navigate to the page the following appears
> in my Embedded OC4J Server log.
>
> Debugger connection to debuggee process has been lost.
> Process exited.
> Debugger disconnected from local process.
>
> The _MyPage_jspx.java file is over 500K and the class file is about
> 110K. If I remove some components and get the total _MyPage_jspx.java
> file under 500K then the page works again.
>
> The page includes a lot of application controls and a number of tables
> that are used to display and edit attribute data. Most of these tables
> include nested tables inside of their detailStamps. Rows in a table of
> streets have tables of sites. This is where things start to fail.
>
> Sometimes (but not always) I get a message that tells me that could not
> find the StackOverflowError class so I have tried adding a -Xss1024k
> option to my Java options but this didn't help; neither did -Xss2048k.
>
> I am confident that the problem is not caused by the code itself as I
> can remove any panelGroup or panelForm set on the page and it works. I
> put any back and it fails. It is just too many components. Everything
> compiles fine but JDeveloper just disconnects from the application when
> the page is opened.
>
> The following is some simple JSP code that demonstrates the problem.
>
> Include-0.jspf
>
> <af:panelBox text="Bottom include file has 3 panelForms" >
>   <af:panelHorizontal>
>     <af:panelForm rows="1" maxColumns="1">
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       </af:panelForm>
>     <af:panelForm rows="1" maxColumns="1">
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       </af:panelForm>
>     <af:panelForm rows="1" maxColumns="1">
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       <af:inputText label="Lorem ipsum" rows="3" wrap="true"
> readOnly="true"
>                     value="Proin orci. Suspendisse cursus lobortis
> magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
> ultrices, tortor leo aliquet turpis." />
>       </af:panelForm>
>   </af:panelHorizontal>
> </af:panelBox>
>
>
> I included this in another jspf file
>
> Include-1.jspf
>
> <af:panelBox text="Include-1.jspf includes Include-0.jspf 5 times.">
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" /> </af:panelBox>
>
>
> I include that in another jspf
>
> Include-2.jspf
>
> <af:panelBox text="Include-2.jspf includes Include-1.jspf 5 times.">
>   <jsp:directive.include file="/Include-1.jspf" />
>   <jsp:directive.include file="/Include-1.jspf" />
>   <jsp:directive.include file="/Include-1.jspf" />
>   <jsp:directive.include file="/Include-1.jspf" />
>   <jsp:directive.include file="/Include-1.jspf" /> </af:panelBox>
>
>
> And that is referenced by my jspx page.
>
> TooManyComponents.jspx
>
> <?xml version='1.0' encoding='windows-1252'?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
>           xmlns:af="http://xmlns.oracle.com/adf/faces"
> xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
>   <jsp:text>
>     <![CDATA[ ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ]]>
>   </jsp:text>
>   <jsp:directive.page contentType="text/html;charset=windows-1252"/>
>   <f:view>
>     <afh:script source="/jscript/view_tools.js"/>
>     <af:document rendered="false">
>       <af:form id="notloggedin">
>         <af:panelPage title="This never happens but it mirrors my
> problem layour">
>           <jsp:directive.include file="header.jspf"/>
>           <af:commandMenuItem text="You are not logged in.  Please click
> this message to be re-directed to the Login Page" action="login"/>
>         </af:panelPage>
>       </af:form>
>     </af:document>
>     <af:document rendered="true">
>       <af:form id="loggedin">
>         <af:panelPage title="Too much of a good thing?">
>           <jsp:directive.include file="/header.jspf"/>
>           <jsp:directive.include file="/Include-2.jspf" />
>         </af:panelPage>
>       </af:form>
>     </af:document>
>   </f:view>
> </jsp:root>
>
>
> This particular setup yeilded me the following error
>
> Fatal error: Cannot find class java/lang/StackOverflowErrorProcess
> exited.Debugger disconnected from local process.
>
>
> If I put a second
>  <jsp:directive.include file="/Include-2.jspf" />
> in my jspx file I get the following compile time error.
>
> Error: code segment of method
> _jspService(javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) too large
>
>
> If I remove one of the jsp:include directives from my Include-1.jspf so
> that it reads as follows the application works.
>
> <af:panelBox text="Include-1.jspf includes Include-0.jspf 4 times.">
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" />
>   <jsp:directive.include file="/Include-0.jspf" /> </af:panelBox>
>
> I took all the JDeveloperStudio defaults for creating this test project.
>
> Mark Millman
>
>
>

Too many components

Posted by Mark Millman <ma...@mizar.com>.
The following describes a problem I am having using Oracle ADF as
shipped with the JDevStudio final release 10.1.3.0.4.  I've posted the
problem to the Oracle JDeveloper Forum and got an immediate show of
interest from Oracle but nothing since then in terms of a clue as to
whether this is a solvable problem or not.  From the feed back I've
received on the Oracle Forum it seems that I am not the only one having
this problem.

In a nutshell, my page has finally gotten so complex that the stack
overflows and the application just aborts. I can remove a couple of
components and the page works fine. It doesn't seem to matter which
components I remove; when I navigate to the page the following appears
in my Embedded OC4J Server log.

Debugger connection to debuggee process has been lost. 
Process exited.
Debugger disconnected from local process.

The _MyPage_jspx.java file is over 500K and the class file is about
110K. If I remove some components and get the total _MyPage_jspx.java
file under 500K then the page works again.

The page includes a lot of application controls and a number of tables
that are used to display and edit attribute data. Most of these tables
include nested tables inside of their detailStamps. Rows in a table of
streets have tables of sites. This is where things start to fail.

Sometimes (but not always) I get a message that tells me that could not
find the StackOverflowError class so I have tried adding a -Xss1024k
option to my Java options but this didn't help; neither did -Xss2048k.

I am confident that the problem is not caused by the code itself as I
can remove any panelGroup or panelForm set on the page and it works. I
put any back and it fails. It is just too many components. Everything
compiles fine but JDeveloper just disconnects from the application when
the page is opened.

The following is some simple JSP code that demonstrates the problem.

Include-0.jspf

<af:panelBox text="Bottom include file has 3 panelForms" >  
  <af:panelHorizontal>    
    <af:panelForm rows="1" maxColumns="1">      
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." />   
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      </af:panelForm>    
    <af:panelForm rows="1" maxColumns="1">      
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." />   
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      </af:panelForm> 
    <af:panelForm rows="1" maxColumns="1">      
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." />   
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      <af:inputText label="Lorem ipsum" rows="3" wrap="true"
readOnly="true"
                    value="Proin orci. Suspendisse cursus lobortis
magna. Vivamus id tortor. Phasellus consectetuer, quam sit amet laoreet
ultrices, tortor leo aliquet turpis." /> 
      </af:panelForm> 
  </af:panelHorizontal>
</af:panelBox>


I included this in another jspf file

Include-1.jspf

<af:panelBox text="Include-1.jspf includes Include-0.jspf 5 times.">  
  <jsp:directive.include file="/Include-0.jspf" />  
  <jsp:directive.include file="/Include-0.jspf" />  
  <jsp:directive.include file="/Include-0.jspf" />  
  <jsp:directive.include file="/Include-0.jspf" />  
  <jsp:directive.include file="/Include-0.jspf" /> </af:panelBox>


I include that in another jspf

Include-2.jspf

<af:panelBox text="Include-2.jspf includes Include-1.jspf 5 times.">  
  <jsp:directive.include file="/Include-1.jspf" />
  <jsp:directive.include file="/Include-1.jspf" />
  <jsp:directive.include file="/Include-1.jspf" />
  <jsp:directive.include file="/Include-1.jspf" />
  <jsp:directive.include file="/Include-1.jspf" /> </af:panelBox>


And that is referenced by my jspx page.

TooManyComponents.jspx

<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
  <jsp:text>    
    <![CDATA[ ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ]]>  
  </jsp:text>  
  <jsp:directive.page contentType="text/html;charset=windows-1252"/>  
  <f:view>
    <afh:script source="/jscript/view_tools.js"/>
    <af:document rendered="false">
      <af:form id="notloggedin">
        <af:panelPage title="This never happens but it mirrors my
problem layour">
          <jsp:directive.include file="header.jspf"/>
          <af:commandMenuItem text="You are not logged in.  Please click
this message to be re-directed to the Login Page" action="login"/>
        </af:panelPage>
      </af:form>
    </af:document>
    <af:document rendered="true">
      <af:form id="loggedin">
        <af:panelPage title="Too much of a good thing?">
          <jsp:directive.include file="/header.jspf"/>
          <jsp:directive.include file="/Include-2.jspf" />
        </af:panelPage>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>


This particular setup yeilded me the following error

Fatal error: Cannot find class java/lang/StackOverflowErrorProcess
exited.Debugger disconnected from local process.


If I put a second 
 <jsp:directive.include file="/Include-2.jspf" /> 
in my jspx file I get the following compile time error.

Error: code segment of method
_jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) too large


If I remove one of the jsp:include directives from my Include-1.jspf so
that it reads as follows the application works.

<af:panelBox text="Include-1.jspf includes Include-0.jspf 4 times.">
  <jsp:directive.include file="/Include-0.jspf" />
  <jsp:directive.include file="/Include-0.jspf" />
  <jsp:directive.include file="/Include-0.jspf" />
  <jsp:directive.include file="/Include-0.jspf" /> </af:panelBox>

I took all the JDeveloperStudio defaults for creating this test project.

Mark Millman



RES: Problems running ADF Faces in Tomcat with security manager enabled

Posted by "Fabio C. Rispoli" <fr...@gmail.com>.
> De: Adam Winer [mailto:awiner@gmail.com] 
> Enviada em: quarta-feira, 10 de maio de 2006 19:46
> Para: adffaces-user@incubator.apache.org
> Assunto: Re: Problems running ADF Faces in Tomcat with 
> security manager enabled
> 
> 
> On 5/10/06, Fabio C. Rispoli <fr...@gmail.com> wrote:
> > Adam,

> > On of them, pointed out by my web host administrator, is that ADF 
> > tries to write to Tomcat's work directory. Is that an expected 
> > behavior?
> 
> We write temporary files to the work directory, which the 
> servlet spec allows.  I'm surprised Tomcat blocks this under 
> the security manager.

I've been told that is possible to crash/turn off Tomcat by overwriting
files in that directory. On this matter, the web host admin asked me if it
was not possible to write these temporary files to na alternative directory.

> >
> > java.lang.IllegalArgumentException: context URI for 
> imagesCache ends 
> > with a slash
> 
> This is a new one on me;  FWIW, Tomcat 5.0 and 5.5 are my 
> usual deployment targets, so I'm puzzled in the extreme by 
> the difficulties you're having.
> 

Well, without the security manager enabled it works great.

- 

Fábio 
 
 

-- 
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
 


Re: Problems running ADF Faces in Tomcat with security manager enabled

Posted by Adam Winer <aw...@gmail.com>.
On 5/10/06, Fabio C. Rispoli <fr...@gmail.com> wrote:
> Adam,
>
> We didn't succeed in deplying my ADF Faces application to Tomcat in a shared
> JVM environment. We have faced different exceptions when we tried to run it
> and none gave us a solid clue on how to solve the problems.
>
> On of them, pointed out by my web host administrator, is that ADF tries to
> write to Tomcat's work directory. Is that an expected behavior?

We write temporary files to the work directory, which the servlet
spec allows.  I'm surprised Tomcat blocks this under the
security manager.

> When the
> permission to write to that directory was granted, the following exception
> arose:
>
> java.lang.IllegalArgumentException: context URI for imagesCache ends with a
> slash

This is a new one on me;  FWIW, Tomcat 5.0 and 5.5 are my usual
deployment targets, so I'm puzzled in the extreme by the difficulties you're
having.

-- Adam


> oracle.adfinternal.view.faces.share.config.ConfigurationImpl.getURI(Configur
> ationImpl.java:102)
>
> oracle.adfinternal.view.faces.ui.laf.base.BaseLafUtils.getConfiguredURL(Base
> LafUtils.java:607)
>
> oracle.adfinternal.view.faces.ui.laf.base.LafIconProvider.getCacheImageURI(L
> afIconProvider.java:47)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.HtmlLafRenderer.writeCache
> ImageURI(HtmlLafRenderer.java:253)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.GeneratedImageRenderer.ren
> derImage(GeneratedImageRenderer.java:143)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.GeneratedImageRenderer.ren
> derImage(GeneratedImageRenderer.java:88)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.renderImage
> Content(ButtonRenderer.java:146)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.renderConte
> nt(ButtonRenderer.java:105)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
>
> oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(Xhtm
> lLafRenderer.java:66)
>
> oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.render(Butt
> onRenderer.java:187)
>
> oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXCo
> mponentUINode.java:177)
>
> oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRend
> ererBase.java:53)
>
> oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
> java:624)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRe
> nderer.java:236)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer._
> encodeChild(PanelHorizontalRenderer.java:158)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer._
> encodeChildren(PanelHorizontalRenderer.java:139)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer.e
> ncodeAll(PanelHorizontalRenderer.java:62)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRend
> erer.java:159)
>
> oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
> java:624)
>
> oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UICo
> mponentUINode.java:317)
>
> oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUIN
> ode.java:262)
>
> oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUIN
> ode.java:239)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:
> 412)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRendere
> r.java:330)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRendere
> r.java:222)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.jav
> a:129)
>
> oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
>
> oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(Xhtm
> lLafRenderer.java:66)
>
> oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXCo
> mponentUINode.java:177)
>
> oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRend
> ererBase.java:53)
>
> oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
> java:624)
>
> oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUt
> ils.java:54)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRe
> nderer.java:232)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(
> CoreRenderer.java:255)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.
> renderContent(PanelPartialRootRenderer.java:65)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderConten
> t(BodyRenderer.java:117)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.
> encodeAll(PanelPartialRootRenderer.java:147)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(Bo
> dyRenderer.java:60)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(C
> oreRenderer.java:271)
>
> oracle.adfinternal.view.faces.renderkit.core.xhtml.DocumentRenderer.encodeAl
> l(DocumentRenderer.java:60)
>
> oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRend
> erer.java:159)
>
> oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
> java:624)
>         javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
>         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
>
> oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:1
> 00)
>
> org.apache.jsp.login_jsp._jspx_meth_af_document_0(login_jsp.java:173)
>         org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:142)
>         org.apache.jsp.login_jsp._jspService(login_jsp.java:93)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 32)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         java.lang.reflect.Method.invoke(Method.java:585)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>         java.security.AccessController.doPrivileged(Native Method)
>         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
> 1)
>         java.security.AccessController.doPrivileged(Native Method)
>         java.security.AccessController.doPrivileged(Native Method)
>
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
> 322)
>
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:13
> 0)
>
> oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHan
> dlerImpl.java:159)
>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
> :87)
>         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         java.lang.reflect.Method.invoke(Method.java:585)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>         java.security.AccessController.doPrivileged(Native Method)
>         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
> 1)
>         java.security.AccessController.doPrivileged(Native Method)
>
> oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfF
> acesFilterImpl.java:279)
>
> oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFac
> esFilterImpl.java:248)
>
> oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFil
> terImpl.java:172)
>
> oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:80)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         java.lang.reflect.Method.invoke(Method.java:585)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>         java.security.AccessController.doPrivileged(Native Method)
>         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21
> 7)
>
> When that access was denied, the components were rendered, but with no
> look-and-feel definitions taken under consideration, and the forms didn't
> work (clicked a buttom and nothing happened).
>
> It is worth mentioning that the application runs correctly in my private
> environment, under Tomcat with the security manager disabled.
>
> I don't have much knowledge on Tomcat's security policy, so it is difficult
> to give more details. What I've been told by the web host administrator
> about security permissions is that "beyond what we normally give to get it
> running", my app have been granted:
>
> permission java.io.FilePermission
> "${catalina.home}/work/Catalina/******.com.br/_/-", "read,write,delete";
>
>
> permission java.lang.RuntimePermission "getClassLoader";
>
> Thank you.
>
>
> 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
>
>
>

Re: Problems running ADF Faces in Tomcat with security manager enabled

Posted by Siarhei Berdachuk <be...@gmail.com>.
Hello

I have same problems on restricted for file writing from java web hosting.

I'm build trinidad examples from sources, they works fine on my local host
(Windows XP, Tomcat 5.0.28, j2sdk 1.5.0_7) but when I try deploy them to 
godaddy
java enabled Linux hosting (Linux, Tomcat 5.0.27, jdk 1.5.0_6), this 
examples not works.

Then I'm deployd Tomcat jsp examles there and they are works fine:
http://www.lostcd.com/jsp-examples/

I found article:
http://www.oisv.com/articles/web_design/godaddy_gotchas/
where described about some file permission restrictions for writing and
possible problem in Log4j.
Part from it: "In retrospect, this is fairly obvious since all users on 
the shared server run under the same Java virtual machine instance. 
Tomcat and Java just do not have the fine-grained ability to assigned 
directory-based permissions in such as configuration."

I like trinidad components, but can not use them on my hosting for new 
projects :(
May be somebody have solution how resolve this problem.

Thank you,
Siarhei Berdachuk
http://www.berdaflex.com


Re: Problems running ADF Faces in Tomcat with security manager enabled

Posted by "Fabio C. Rispoli" <fr...@gmail.com>.
Adam,

We didn't succeed in deplying my ADF Faces application to Tomcat in a shared
JVM environment. We have faced different exceptions when we tried to run it
and none gave us a solid clue on how to solve the problems.

On of them, pointed out by my web host administrator, is that ADF tries to
write to Tomcat's work directory. Is that an expected behavior? When the
permission to write to that directory was granted, the following exception
arose:

java.lang.IllegalArgumentException: context URI for imagesCache ends with a
slash
	
oracle.adfinternal.view.faces.share.config.ConfigurationImpl.getURI(Configur
ationImpl.java:102)
	
oracle.adfinternal.view.faces.ui.laf.base.BaseLafUtils.getConfiguredURL(Base
LafUtils.java:607)
	
oracle.adfinternal.view.faces.ui.laf.base.LafIconProvider.getCacheImageURI(L
afIconProvider.java:47)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.HtmlLafRenderer.writeCache
ImageURI(HtmlLafRenderer.java:253)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.GeneratedImageRenderer.ren
derImage(GeneratedImageRenderer.java:143)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.GeneratedImageRenderer.ren
derImage(GeneratedImageRenderer.java:88)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.renderImage
Content(ButtonRenderer.java:146)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.renderConte
nt(ButtonRenderer.java:105)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
	
oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(Xhtm
lLafRenderer.java:66)
	
oracle.adfinternal.view.faces.ui.laf.base.desktop.ButtonRenderer.render(Butt
onRenderer.java:187)
	
oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXCo
mponentUINode.java:177)
	
oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRend
ererBase.java:53)
	
oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
java:624)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRe
nderer.java:236)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer._
encodeChild(PanelHorizontalRenderer.java:158)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer._
encodeChildren(PanelHorizontalRenderer.java:139)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelHorizontalRenderer.e
ncodeAll(PanelHorizontalRenderer.java:62)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRend
erer.java:159)
	
oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
java:624)
	
oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UICo
mponentUINode.java:317)
	
oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUIN
ode.java:262)
	
oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUIN
ode.java:239)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:
412)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRendere
r.java:330)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRendere
r.java:222)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.jav
a:129)
	
oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
	
oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(Xhtm
lLafRenderer.java:66)
	
oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXCo
mponentUINode.java:177)
	
oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRend
ererBase.java:53)
	
oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
java:624)
	
oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUt
ils.java:54)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRe
nderer.java:232)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(
CoreRenderer.java:255)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.
renderContent(PanelPartialRootRenderer.java:65)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderConten
t(BodyRenderer.java:117)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.
encodeAll(PanelPartialRootRenderer.java:147)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(Bo
dyRenderer.java:60)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(C
oreRenderer.java:271)
	
oracle.adfinternal.view.faces.renderkit.core.xhtml.DocumentRenderer.encodeAl
l(DocumentRenderer.java:60)
	
oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRend
erer.java:159)
	
oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.
java:624)
	javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
	javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
	
oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:1
00)
	
org.apache.jsp.login_jsp._jspx_meth_af_document_0(login_jsp.java:173)
	org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:142)
	org.apache.jsp.login_jsp._jspService(login_jsp.java:93)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
	java.security.AccessController.doPrivileged(Native Method)
	java.security.AccessController.doPrivileged(Native Method)
	
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
	
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:13
0)
	
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:159)
	
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:87)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
	java.security.AccessController.doPrivileged(Native Method)
	
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfF
acesFilterImpl.java:279)
	
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFac
esFilterImpl.java:248)
	
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFil
terImpl.java:172)
	
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:80)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
	
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:21
7)

When that access was denied, the components were rendered, but with no
look-and-feel definitions taken under consideration, and the forms didn't
work (clicked a buttom and nothing happened).

It is worth mentioning that the application runs correctly in my private
environment, under Tomcat with the security manager disabled.

I don't have much knowledge on Tomcat's security policy, so it is difficult
to give more details. What I've been told by the web host administrator
about security permissions is that "beyond what we normally give to get it
running", my app have been granted:

permission java.io.FilePermission
"${catalina.home}/work/Catalina/******.com.br/_/-", "read,write,delete";


permission java.lang.RuntimePermission "getClassLoader";

Thank you.


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
 


RES: Problems running ADF Faces in Tomcat with security manager enabled

Posted by "Fábio C. Ríspoli" <fr...@gmail.com>.
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 <fr...@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
 


Re: Problems running ADF Faces in Tomcat with security manager enabled

Posted by Adam Winer <aw...@gmail.com>.
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/adf-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 <fr...@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
>
>
>