[JBoss Portal] - Re: javax.portlet.PortletException: INIT_VIEW_PARAMETER must
by NewTo23
Hi Thomas,
Thanks for the help. The exception is gone now.
However my JSF pages are not rendered, I simply get a blank screen.
The Jboss portal server throws the following warnings,
10:14:24,891 WARN [ViewHandlerImpl] Unable to determine FaceServlet mapping for
| servlet path 'null'.
| 10:14:24,901 INFO [STDOUT] response content type text/html
| 10:14:26,486 INFO [[/helloworldjsfportlet]] No state saving method defined, ass
| uming default server state saving
| 10:14:26,765 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
| .PRETTY_HTML' found, using default value true
| 10:14:26,765 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
| .ALLOW_JAVASCRIPT' found, using default value true
| 10:14:26,765 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
| .DETECT_JAVASCRIPT' found, using default value false
| 10:14:26,765 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
| .AUTO_SCROLL' found, using default value false
| 10:14:35,089 WARN [ViewHandlerImpl] Unable to determine FaceServlet mapping for servlet path 'null'.
Please help me to resolve this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000994#4000994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000994
19 years, 3 months
[JBoss AOP] - Problem with prepackaged security aspect on a POJO using XML
by gmdr
Hi,
I'm trying to secure a simple class (POJO) without annotations, using the prepackaged security aspect (org.jboss.aspects.security.SecurityClassMetaDataLoader). I'm using JBoss 4.0.5GA, JBoss AOP 1.5.0GA, JDK 1.5.0_09 and WindowsXP.
So far I've been able to run succesfully but only with annotations in the pojo, not by XML.
The class goes like:
package security;
|
| @SecurityDomain ("other")
| public class TransferFunds {
|
| @Permissions ({"rolB"})
| public boolean withdrawAll(Long accountId){
| System.out.println("inside withdrawAll...:" + accountId);
| return true;
| }
|
| @Permissions ({"rolA"})
| public void deposit(Long sum){
| System.out.println("inside deposit...:" + sum);
| }
| }
The security domain is "other", and the application works well (permission denied, etc) with annotations. Tweaked the -javaagent parameter and used: -javaagent:pluggable-instrumentor.jar, and in the jboss-service.xml (aop deployer) touched the parameters to:
<mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5"
| name="jboss.aop:service=AspectManager">
| <attribute name="EnableLoadtimeWeaving">true</attribute>
| <attribute name="SuppressTransformationErrors">true</attribute>
| <attribute name="Prune">true</attribute>
| <attribute name="Include">security.,org.jboss.injbossaop</attribute>
| <attribute name="Exclude">org.jboss.,org.apache.</attribute>
| <attribute name="Optimized">true</attribute>
| <attribute name="Verbose">false</attribute>
| </mbean>
But when I removed the annotations from the class and putted a new created file named "learning-aop.xml" in the [$JBOSS_HOME]default/deploy dir, nothing happens. The only message I received is:
11:42:12,366 INFO [AspectDeployer] Deployed AOP: file:/C:/JavaDev/jboss-4.0.5.GA/server/default/deploy/learning-aop.xml
The content of learning-aop.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE aop PUBLIC
| "-//JBoss//DTD JBOSS AOP 1.0//EN"
| "http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
|
| <aop>
| <metadata-loader tag="security" class="org.jboss.aspects.security.SecurityClassMetaDataLoader" />
| <metadata tag="security" class="security.TransferFunds">
| <security-domain>java:/jaas/other</security-domain>
| <run-as>admin</run-as>
| <method-permission>
| <role-name>rolB</role-name>
| <method>
| <method-name>withdrawAll</method-name>
| </method>
| </method-permission>
| <method-permission>
| <role-name>rolA</role-name>
| <method>
| <method-name>deposit</method-name>
| </method>
| </method-permission>
| </metadata>
| </aop>
Don't know what's wrong, or what's missing. Annotations works well, but I need to declare the security outside the classes (imposed restriction).
Thanks in advance.
maxi.-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000990#4000990
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000990
19 years, 3 months
[JBoss jBPM] - Re: Exception on scheduler launch
by Vlad Tepesch
cpob, there is an exception but she seems to have no linki with JBPM
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Logiciel/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/ deployment failed
In fact, she is there since the begining before I try to include jbpm in the project.
kukeltje (please don't call me count, it had need me a long time to understand you talking to me), i'm sorry not to have mention it, I don't think it was important. I'm pretty sure I use the good jbpm.cfg.xml, because in the console stack, I see it using the datasource I define in my hibernate.cfg, and it's into the jbpm.cfg that I say to take this file. Actually, I don't really know how to debbug so I can't say more.
Concerning the key words, when I've got an exceptions or a warning, it's easy to extract the good word too search. But there, I have no warning, nothing, and I don't really know how to target the research.
Finally, concerning the web.xml, did you say I must include FileServlet and DeployServlet too? In a faq I read, they speak just about JbpmThreadsServlet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000989#4000989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000989
19 years, 3 months