[JBoss Portal] - JBOSS Portal and the portletridge Porlet
by georgy
Hi
I am trying to deploy the portletridge Porlet on JBOSS Portal 2.4 but during the deployment i get the following exception:
| ...
| 2007-06-25 14:36:31,453 DEBUG [org.jboss.portal.portlet.container.org_portletbridge_portlet_PortletBridgePortlet] Initialized portlet object org.portletbridge.portlet.PortletBridgePortlet
| 2007-06-25 14:36:31,453 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Looking for the WEB-INF path of /portletbridge-portlet
| 2007-06-25 14:36:31,484 DEBUG [org.jboss.portal.server.deployment.jboss.ServerDeployer] Start step for deployment PortletAppDeployment for url file:/C:/jboss-portal-2.4.1-test3/server/default/tmp/deploy/tmp9974portletbridge-portlet-exp.war/WEB-INF/src/java/webapp/WEB-INF/portlet.xml
| 2007-06-25 14:36:31,484 DEBUG [org.jboss.portal.portlet.container.PortletApplicationImpl] Creating PortletApplicationImpl
| 2007-06-25 14:36:31,484 DEBUG [org.jboss.portal.portlet.container.PortletApplicationImpl] Created PortletApplicationImpl
| 2007-06-25 14:36:31,484 DEBUG [org.jboss.portal.portlet.container.PortletApplicationImpl] Starting PortletApplicationImpl
| 2007-06-25 14:36:31,484 DEBUG [org.jboss.portal.portlet.container.PortletApplicationImpl] Started PortletApplicationImpl
| 2007-06-25 14:36:31,484 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=portal:container=WebApp,id=/portletbridge-portlet state=Create
| java.lang.IllegalArgumentException: This portlet app is already registered
| at org.jboss.portal.portlet.container.PortletApplicationRegistryImpl.registerPortletApplication(PortletApplicationRegistryImpl.java:52)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy78.registerPortletApplication(Unknown Source)
| at org.jboss.portal.portlet.container.PortletApplicationContextImpl.start(PortletApplicationContextImpl.java:96)
| 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.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
| at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:190)
| at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:77)
| at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:214)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:243)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy115.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:297)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy88.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
| at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:134)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
| at $Proxy117.handleNotification(Unknown Source)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
| at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
| at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy93.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 2007-06-25 14:36:32,359 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Looking for the WEB-INF path of /portletbridge-portlet
| 2007-06-25 14:36:32,390 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: WEB-INF
| 2007-06-25 14:36:32,390 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-portal-2.4.1-test3/server/default/tmp/deploy/tmp9974portletbridge-portlet-exp.war/WEB-INF/
| 2007-06-25 14:36:32,406 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: portletbridge-portlet.war
| 2007-06-25 14:36:32,406 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-portal-2.4.1-test3/server/default/deploy/portletbridge-portlet.war
| ...
|
It looks like the registerPortletApplication() method declared in the PortletApplicationRegistry Interface throws this exception because its PortletApplicationPortletApplication parameter is null.
Does anybody have a solution to this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057335#4057335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057335
18Â years, 10Â months
[JBossWS] - Re: MTOM + WS Security = problem
by mr_d
Hello,
Thanks for your answers,
@richard_opalka:
I agree, they are compatible, so to use attachments with WS Security, MTOM is the only and right way.
@davideling:
I have the same config. As I said on my first post, mtom only works, and ws security only also works.
Are you sure that your encrypted soap envelope is created using mtom?
Can you post one of your soap messages? And also the parameters of the exposed method or the wsdl file?
I tried to get some soap message examples where mtom + ws security are enabled.
I found two:
-http://wso2.org/files/rampart-tute.pdf [page 81]
-http://msdn2.microsoft.com/en-US/library/aa738574.aspx[bottom of the page]
In these two message, we can see that:
-Content-Type contains "multipart/related" and "type="application/xop+xml"
-In the body of the soap message, there is a "xop:Include" element
-In the body of the soap message, there is a "CipherData" and a "CipherValue" element
-The attachment is in an encrypted mime part
The two first points are the proof that mtom is enabled.
The last ones indicate that ws security is active too.
Im trying to achieve this kind of message with JbossWS. So far, no luck.
:oD.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057334#4057334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057334
18Â years, 10Â months
[JBoss Seam] - problem with seam and jbpm
by kgoedert
Hi,
I´m new to seam and jbpm and trying to work out my first example.
My problem is that it seems data is not being bound to the process.
Here is my code:
In this page I create a request
Nova Requisição
Pedido:
<h:inputText value="#{request.content}"/>
Hospedagem:
<h:selectOneRadio value="#{request.hasOvernight}">
<f:selectItems value="#{request.overnight}"/>
</h:selectOneRadio>
<h:commandButton type="submit" value="Nova Requisição" action="#{requestSystem.newRequest}"/>
That is represented by this object:
@Name("request")
@Intercept(InterceptionType.NEVER)
@Scope(ScopeType.BUSINESS_PROCESS)
public class Request implements Serializable {
private static final long serialVersionUID = 1643984518635043124L;
private String content;
private int hasOvernight;
private static int YES = 1;
private static int NO = 0;
private static SelectItem[] overnight = new SelectItem[]{
new SelectItem(new Integer(YES), "Sim"),
new SelectItem(new Integer(NO), "Não")
};
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getHasOvernight() {
return hasOvernight;
}
public void setHasOvernight(int hasOvernight) {
this.hasOvernight = hasOvernight;
}
public SelectItem[] getOvernight() {
return overnight;
}
public String whereToGo() {
return hasOvernight == 1 ? "yes" : "no";
}
The object that creates the process is this one:
@Stateless
@Name("requestSystem")
public class RequestSystemAction implements RequestSystem {
@In
@Out(scope = ScopeType.BUSINESS_PROCESS, required = false)
Request request;
@CreateProcess(definition = "RequestProcess")
public String newRequest() {
System.out.println("Nova requesicao");
return "home";
}
@BeginTask
@EndTask
public String managerApproval() {
System.out.println("Aprovado pelo gerente");
return "home";
}
}
And the problem is that when in the following page, I try to retrieve the information of the Request I created, everything is set to the default values
<h:dataTable value="#{pooledTaskInstanceList}" var="task">
<h:column>
<h:outputText value="#{task.description}"/>
</h:column>
<h:column>
<h:outputText value="#{request.content}"/>
<h:outputText value="#{request.hasOvernight}"/>
<h:commandLink action="#{requestSystem.managerApproval}">
<h:commandButton value="Aprovar"/>
<f:param name="taskId" value="#{task.id}"/>
</h:commandLink>
</h:column>
</h:dataTable>
<h:commandLink action="home" value="Go back home"/>
Thanks for any help
Kelly
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057330#4057330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057330
18Â years, 10Â months