[JBoss Seam] - Error during model data update
by jason_rency
hi all,
I used the booking example to creat another application regserver. after deployed, when I tried to register a new user, the following error just appears on the registration page:
"UId": Error during model data update.
"EMail": Error during model data update.
"phoneNumber": Error during model data update.
any idea?
thanks
here is the stack track:
20:07:44,482 INFO [Pages] no pages.xml file found
20:07:44,482 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
java.lang.IllegalStateException: No active application scope
at org.jboss.seam.core.Init.instance(Init.java:48)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:87)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
20:07:44,963 ERROR [STDERR] 22-Jul-2006 20:07:44 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
20:07:44,993 ERROR [STDERR] 22-Jul-2006 20:07:44 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
20:07:45,003 ERROR [STDERR] 22-Jul-2006 20:07:45 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
20:07:45,023 ERROR [STDERR] 22-Jul-2006 20:07:45 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
20:07:45,073 ERROR [STDERR] 22-Jul-2006 20:07:45 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
20:07:45,083 ERROR [STDERR] 22-Jul-2006 20:07:45 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.0.4/server/default/tmp/deploy/tmp12020regserver.ear-contents/regserver-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
20:07:45,453 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
20:07:45,453 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
20:07:45,453 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960132#3960132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960132
19 years, 9 months
[Tomcat, HTTPD, Servlets & JSP] - JBoss, Tomcat & ActiveX
by achitre
Hello,
I am porting an application from Weblogic to JBoss. There's a feature that used to work under Weblogic, but now it's not working under JBoss. Any help in resolving this issue will be greatly appreciated.
Here's the problem:
We have a JSP that embeds a 'Visio Viewer' object as follows:
| <object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857"
| id="Viewer1" width="90%" height="90%" codebase="/common/visio/vviewer.exe" >
|
| <param name="SRC" value="<%=absDwnUrl%>">
| <param name="BackColor" value="16777215">
| <param name="PageVisible" value="1">
|
| </object>
|
Under JBoss the URL specified by 'SRC' attribute is not getting hit. As such we get an error message saying 'The file is not a valid visio file'.
When I copy & paste the URL in another browser window it hits JBoss.
But from within an ActiveX control it doesn't work. Is this a security issue either in JBoss or Tomcat?
Please help. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960130#3960130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960130
19 years, 9 months
[JBoss Messaging] - Re: Best practices question
by timfox
Hello Todd-
There are a couple of things to bear in mind here.
Firstly, having a large number of selectors on a queue which select few of the messages is generally an anti-pattern and will always have poor performance since, since for every receive() the queue needs to be iterated through until a selected message is obtained for each consumer.
The performance of this could be improved by using indexes but it will never be great and should be avoided.
See http://jira.jboss.com/jira/browse/JBAS-1348 for a discussion of this in JBoss MQ - the same theory more or less applies in JBoss Messaging.
Secondly there is a known bug in JBoss Messaging http://jira.jboss.com/jira/browse/JBMESSAGING-275 which means only the first consumer will get the message, as you have found out.
This bug is due to be fixed in 1.0.2.
In the mean-time if you can use a topic instead of a queue this won't exhibit the problems you have been seeing and the performance will always be much better. This is because a topic subscription will not accept any messages that don't match the selector, but a queue will since it cannot know in advance any selectors that consumers might use.
Finally, the "correct" solution to this problem would be to use a new feature which allows consumers to group themselves according to JMSXGroupId.
JBoss Messaging will then ensure that any messages with a particular value of JMSXGroupId is only consumed by consumers in that group. Users can configure how many consumers in each group.
This task is discussed here: http://jira.jboss.com/jira/browse/JBMESSAGING-375
This allows partitioning of load and this feature is currently scheduled for 1.0.6 (hmmm I'll see if we can get this done sooner)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960127#3960127
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960127
19 years, 9 months
[JBoss Portal] - Re: Injecting PortalObjectContainer into servlet
by jkoek
Yes, Thanks.
It works.
Now I'm off to the next step and that is making the pages user specific.
To share the knowledge hereby the code.
In case someone has improvements please suggest.
TransactionManager tm = null;
try {
InitialContext ic = new InitialContext();
tm = (TransactionManager) ic.lookup("java:/TransactionManager");
} catch (NamingException ex) {
System.out.println("Failed to find transactionmnager" );
}
try
{
tm.begin();
try {
MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
container = (PortalObjectContainer)MBeanProxy.get(PortalObjectContainer.class, new ObjectName("portal:container=PortalObject"), mbeanServer);
Context ctx = container.getContext();
PortalObject po = ctx.getDefaultPortal();
out.print("PortalNode " + po.getName());
System.out.println( "Portal retrieved!" + po.getName() );
++loop;
Portal portal = (Portal) po;
portal.createPage( "JBOSS rocks!" + loop );
portal.createPage( "JBOSS rocks again!" + loop );
portal.createPage( "JBOSS rocks and again!" + loop );
}
finally {
tm.commit();
}
}
catch ( Exception ex ) {
ex.printStackTrace();
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960125#3960125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960125
19 years, 9 months