[JBoss Portal] - Server 500 error after modifying the JSF portlet tutorial
by ivan.indrawan
I am learning to develop JSF based portlet.
I took the JSF tutorial template for a ground of my application. First thing as usual, I develop the login menu.
I have managed to show the portlet in the window. But when clicking the login button, it generates HTTP500 error with thousands of error. I simplify the functions and come up with the following
This is a function of the Phoenix class (alias userbean)
public class Phoenix {
private String username_;
private String password_;
...
public String verify()
{
if (this.username_.equalsIgnoreCase(this.password_))
return "false";
else
return "verified";
}
..}
and this is the faces-config.xml :
<managed-bean>
PhoenixBean
<managed-bean-name>phoenix</managed-bean-name> <managed-bean-class>com.MSD.NeoGenesis.phoenix.Phoenix</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/WEB-INF/jsp/phoenix.jsp </from-view-id>
<navigation-case>
<from-outcome>false</from-outcome>
<to-view-id>
/WEB-INF/jsp/phoenix.jsp
</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>verified</from-outcome>
<to-view-id>
/WEB-INF/jsp/phoenixverified.jsp
</to-view-id>
</navigation-case></navigation-rule>
and this is the snapshot of the jsp button
<f:view>
<h:form>
....
<h:commandButton action="#{phoenix.verify}" value="Login"></h:commandButton>
</h:form>
</f:view>
Please let me know whether I miss anything. this would help me a lot in kicking off the rest of the project. Thx beforehand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986089#3986089
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986089
19Â years, 8Â months
[JBoss Messaging] - JmsActivation exception
by vachacz
i'm reciving strange when jboss is running. it appears about with 10 seconds delay
| 12:18:43,982 INFO [JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1641c0(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)e07e6b destination=topic/testTopic isTopic=true tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0)
| 12:18:43,988 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1641c0(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)e07e6b destination=topic/testTopic isTopic=true tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0)
| java.lang.IllegalAccessError: tried to access method org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.<init>(Lorg/jboss/ejb3/mdb/MessagingContainer;)V from class org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory
| at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createProxy(JBossMessageEndpointFactory.java:148)
| at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createEndpoint(JBossMessageEndpointFactory.java:131)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.setup(JmsServerSession.java:115)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupSessions(JmsServerSessionPool.java:191)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:87)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:515)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:288)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:232)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:568)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
| at java.lang.Thread.run(Thread.java:595)
|
can anyone give me a hint how to solve this problem
thanks in advance
Luc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986084#3986084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986084
19Â years, 8Â months