[JBoss Seam] - Re: Dynamic navigation
by susnet
I almost succeeded in solving this problem with this code:
| @In
| private FacesContext facesContext;
|
| public void navigate () {
|
| String page = "/pages/articles/xyz.xhtml"; // This could be any page, collected from database
|
| UIViewRoot root = facesContext.getApplication ().getViewHandler ().createView (facesContext, page);
| try {
| facesContext.getApplication ().getViewHandler ().renderView (facesContext, root);
| } catch (IOException ioe) {
| log.error (ioe);
| }
| }
|
But I also get an IllegalStateException, so I guess this is not the right way of doing this.
ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.IllegalStateException
| at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404)
I have also tried this code:
| @In
| private Renderer renderer;
|
| public void navigate () {
| String page = "/pages/articles/xyz.xhtml";
| renderer.render (page);
| }
|
but it just gives me NPE.
Any help would really be appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063778#4063778
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063778
19Â years
[Messaging, JMS & JBossMQ] - JMS exception: javax.jms.IllegalStateException: Method not a
by loseyourself
Greetings all,
I am using JBoss 3.2.5 to implement a JMS mail queue, I always get following exception:
2007-07-13 10:43:49,213 INFO [STDOUT] javax.jms.IllegalStateException: Method not allowed
2007-07-13 10:43:49,213 INFO [STDOUT] at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:388)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:111)
2007-07-13 10:43:49,213 INFO [STDOUT] at au.gov.nsw.community.mail.MailConsumer.consume(MailConsumer.java:88)
2007-07-13 10:43:49,213 INFO [STDOUT] at au.gov.nsw.community.forms.servlet.FormSubmitServlet.init(FormSubmitServlet.java:52)
2007-07-13 10:43:49,213 INFO [STDOUT] at javax.servlet.GenericServlet.init(GenericServlet.java:211)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
2007-07-13 10:43:49,213 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
2007-07-13 10:43:49,213 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
the line in the MailConsumer() code is:
public void consume() {
try {
QueueConnection con = _factory.createQueueConnection();
_session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueReceiver subscriber = _session.createReceiver(_queue);
/*line 88*/ subscriber.setMessageListener(this);
System.out.println("*************** MailConsumer:start ...****************");
con.start();
}
catch (Exception e) {
e.printStackTrace();
}
}
Could anybody tell me how to fix it, this code has been running correctly in JRun. I do appreciate for any help.
Cheers,
hj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063771#4063771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063771
19Â years
[JBossWS] - ClassnotFoundError while trying to use wsrunclient
by koganty
I am trying to run a WebService client generated using wsconsume from JBoss 4.0.5 running on JDK 1.6 using wsrunclient and am running into this error. I do have jaxb-impl.jar in the classpath. How do I ger arounf this issue.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/bind/api/
TypeReference
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeMo
deler.java:571)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java
:492)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:
334)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.
java:220)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java
:588)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:291)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:274)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.jav
a:267)
at javax.xml.ws.Service.getPort(Service.java:92)
at com.extremenetworks.epicenter.client.webservice.ClientManagerBeanServ
ice.getClientManagerBeanPort(ClientManagerBeanService.java:51)
at com.extremenetworks.epicenter.client.webservice.Test.main(Test.java:2
2)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063767#4063767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063767
19Â years