[JBoss Portal] - Custom-Portlet-Mode in Jboss-Portletcontainer-2.0.0
by terroene
Hello again,
does the Jboss-Portletcontainer-2.0.0 support custom-portlet-modes?
I can't get it to work!
I tried this:
portlet.xml:
| <?xml version='1.0' encoding='UTF-8' ?>
| <portlet-app xmlns='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' version='2.0'>
| <portlet>
| <description>AuthenticationPortlet</description>
| <portlet-name>AuthenticationPortlet</portlet-name>
| <display-name>AuthenticationPortlet</display-name>
| <portlet-class>fraunhofer.isst.portlets.AuthenticationPortlet</portlet-class>
| <expiration-cache>0</expiration-cache>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| <portlet-mode>HELP</portlet-mode>
| <portlet-mode>UNAUTHENTICATED</portlet-mode>
| </supports>
| <resource-bundle>fraunhofer.isst.portlets.messages</resource-bundle>
| <portlet-info>
| <title>AuthenticationPortlet</title>
| <short-title>AuthenticationPortlet</short-title>
| </portlet-info>
| </portlet>
| <custom-portlet-mode>
| <description xml:lang="en">Authentication failure mode</description>
| <portlet-mode>UNAUTHENTICATED</portlet-mode>
| </custom-portlet-mode>
| </portlet-app>
|
I'm iterating through all supported modes in doView();
| System.out.println(request.getPortalContext().getPortalInfo());
| Enumeration modeEnum =
| request.getPortalContext().getSupportedPortletModes();
| System.out.println("<p>Modes <br />");
| while (modeEnum.hasMoreElements())
| {
| PortletMode pMode = (PortletMode)
| modeEnum.nextElement();
|
| System.out.println("<li> <a href=\"" + pMode.toString() +
| "\">" + pMode + "</a></li>");
| }
|
This returns only:
| 16:58:07,642 INFO [STDOUT] JBossPortal/1.0
| 16:58:07,642 INFO [STDOUT] <p>Modes <br />
| 16:58:07,642 INFO [STDOUT] <li> <a href="view">view</a></li>
| 16:58:07,642 INFO [STDOUT] <li> <a href="edit">edit</a></li>
| 16:58:07,642 INFO [STDOUT] <li> <a href="help">help</a></li>
|
So, how can I use supported-portlet-mode?
Best regards,
rene
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162335#4162335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162335
17 years, 9 months
Delivery Notification <diman@eng.auburn.edu>
by Postmaster@lists.jboss.org
This is a delivery status notification, automatically generated by MTA im5.duc.auburn.edu on Thu, 03 Jul 2008 09:56:53 -0500
Regarding recipient(s) : diman(a)eng.auburn.edu
Delivery status : Failed. Message could not be delivered to domain <eng.auburn.edu> .Failed while initiating the protocol. <[('diman(a)eng.auburn.edu', 550, '5.1.1 <diman(a)eng.auburn.edu>... User unknown')]>
MTA Response :550
The original message headers are included as attachment.
17 years, 9 months
[JBoss jBPM] - process variable is blank
by scholtz.albert
I have the following code in my process definiton:
<task-node name="viewBill">
| <event type="node-leave">
| <script>
| <variable name="success" access="write" />
| <expression>"#{billAction.success}"</expression>
| </script>
| </event>
| <transition to="successful" name="toSuccessful"></transition>
| </task-node>
|
| <decision name="successful" expression="#{billAction.success}">
| <transition to="success" name="true"></transition>
| <transition to="failure" name="false"></transition>
| </decision>
In my decision tag the billAction.success variable always has a value of either ture or false which is what i expected. When i run the process instance through my page it transitions to the corrrect node. However the variable "success" is always blank when i i check it in jpbm admin console. I would like this true or false value to be reflected there.
Any help will be appreciated
Albert Scholtz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162334#4162334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162334
17 years, 9 months
[Beginners Corner] - Re: Load Library problem
by tgcosta
Hey Peter, let me explain with more details what's happened.
I need to make some tests with JBoss in a x64 ambient. Then i did a download of the Java Virtual Machine (JDK 1.5.0_15) that can works in a x64 system and get a stable version of JBoss, i choice 4.2.2.GA version.
In my test, i need to put one instance of JBoss like a windows service. This is ok but when i try to initiate this service appear this message:
"The JBoss service on Local Computer started and then stopped. Some services stop automatically if they have no work to do..."
After this, i looking for more details about this message, and i search for this in Event Viewer, then i found it:
1º message: "The LoadLibrary function failed for the following reason: LoadLibrary is not a valid Win32 application."
2º message: "Could not load the Java Virtual Machine."
3º message: "The JBoss service failed to start."
Is this what's happened with me. Can you help me?
I'm thankful for your attention.
Thiago.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162333#4162333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162333
17 years, 9 months
[JBossWS] - JBossWS, Websphere 5.1 WS-Security interoperability
by forgr
I'm developing a webservice client using jbossws native stack v2.0.4 that interact with a web service deployed in websphere 5.1. Authentication was managed by ws-security username profile. By the way, webspehere ws-security implementation was based on draft 13 of ws-security standard while jbossws implements final specs. The result was the following error:
16:14:16,093 INFO [STDOUT] 16:14:16,078 WARN DefaultExceptionHandler:90 - Unhandled exception caught by the Stripes default exception handler.
javax.xml.ws.soap.SOAPFaultException: com.ibm.wsspi.wssecurity.SoapSecurityException: The Application Server expected a Security header with the http://schemas.xmlsoap.org/ws/2003/06/secext or http://schemas.xmlsoap.org/ws/2002/07/secext or http://schemas.xmlsoap.org/ws/2002/04/secext namespace, but it was not found.
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:72)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
So, I can:
- suggest an upgrade of websphere to v6 (not possible!!!)
- use websphere webservice gateway (8()
- downgrade to draft 13 ws-security specs used by jbossws (is possible?)
- generate ws-security tag via a custom handler (is possible?)
- any other ideas?
Thanks,
ForGR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162327#4162327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162327
17 years, 9 months
[JBoss Messaging] - Re: Exception when starten 2nd node
by mbreuer
I tried it in the other way and moved the queue definitions from deploy-hasingleton to deploy folder.
| <server>
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=..."
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="Clustered">true</attribute>
| </mbean>
| </server>
|
Both servers are now starting without any error, the queues are found.
My test-app does following:
1. call session bean
2. session bean puts message to queue A
3. mdb (queue A) receives the message
Locally this works fine. Then i moved 3. to the other node and started again. 1.+2. work but 3. (now on other cluster node) does not receive the message.
What's wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162316#4162316
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162316
17 years, 9 months