[JBoss Seam] - FileServlet - no active event context
by rafaelri
I am getting the following exception when I try to request a file from a servlet I implemented following the wiki example.
| java.lang.IllegalStateException: No active event context
| org.jboss.seam.core.Manager.instance(Manager.java:248)
| org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:48)
| org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
|
At first I was getting a no active application context but then I found out that I was missing the web:context-filter tag in components.xml file.
I am running Seam 2.0.0CR1.
Does anyone knows what might be causing this?
best regards,
Rafael
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089884#4089884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089884
18 years, 6 months
[JBoss Messaging] - Clustering appears okay, but no clustered messages
by fuzzybinary
I'm running a pretty standard JBoss AS server (4.2.1.GA) with JBoss Messaging 1.4.0.CR3 installed as per the documentation, basing the server on the "all" profile supplied with JBoss 4.2.1.GA, working against a MySQL server on a remote machine. I've tested the straight queue installation and I'm working on the clustered installation, but I can't get the distributed-queue test to pass.
It looks like clustering is working from the following log items (servers running on 10.214.162.204/206):
17:31:46,715 INFO [TreeCache] viewAccepted(): [10.214.162.204:1044|1] [10.214.162.204:1044, 10.214.162.206:1077]
17:31:46,815 INFO [TreeCache] TreeCache local address is 10.214.162.206:1077
17:31:46,979 INFO [TreeCache] received the state (size=1024 bytes)
17:31:47,110 INFO [TreeCache] state was retrieved successfully (in 290 milliseconds)
17:31:47,110 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
17:31:47,534 WARN [FD_SOCK] I was suspected by 10.214.162.204:1044; ignoring the SUSPECT message
17:31:50,040 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
17:31:52,392 INFO [SnmpAgentService] SNMP agent going active
17:31:53,017 INFO [DefaultPartition] Initializing
17:31:53,073 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.214.162.206:1080
-------------------------------------------------------
17:31:55,489 INFO [DefaultPartition] Number of cluster members: 2
17:31:55,490 INFO [DefaultPartition] Other members: 1
17:31:55,495 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
17:31:55,543 WARN [FD_SOCK] I was suspected by 10.214.162.204:1047; ignoring the SUSPECT message
17:31:55,755 INFO [DefaultPartition] state was retrieved successfully (in 256 milliseconds)
But when I go to run the distributed-queue example I get:
[java] Distributed queue /queue/testDistributedQueue exists
[java] java.lang.RuntimeException: Assertion failed, 1 == 1
[java] at org.jboss.example.jms.common.ExampleSupport.assertNotEquals(ExampleSupport.java:85)
[java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.example(DistributedQueueExample.java:83)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:147)
[java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.main(DistributedQueueExample.java:167)
[java] #####################
[java] ### FAILURE! ###
[java] #####################
I've tested JGroups against the properties and it seems to be working fine.
Is there anywhere I can look on the jmx console to check the status of the cluster? Am I missing anything in the installation here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089883#4089883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089883
18 years, 6 months
[JBoss Seam] - Re: selectOneMenu with s:selectItems problem
by smithbstl
Well it looks like you are trying to pass an entity to a String.
Why does user have an areaID property? If user has a many to one M:1 relationship with area, shouldn't it just have an area property? This is assuming these are both entities.
So how about something like this
<h:outputLabel>areaID</h:outputLabel>
| <h:selectOneMenu value="#{createuser.user.area}" id="areaID">
| <s:selectItems value="#{areas.resultList}" var="ar" label="#{ar.areaName}" hideNoSelection="true" noSelectionLabel="Please Select..."/>
| <s:convertEntity />
| </h:selectOneMenu>
You need to change your User entity to properly map area.
Something like this
| @Entity
| public class User {
| ...
|
| @JoinColumn(name="AREA_ID", referencedColumnName="AREA_ID")
| @ManyToOne
| private Area area;
| ...
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089882#4089882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089882
18 years, 6 months
[JBoss Seam] - selectOneMenu with s:selectItems problem
by paulaunderwood
I am trying to edit a createuser form so that the areaID field is a drop down box populate with values from a table called Areas. When the user is saved, I need to value(either 1, 2, 3 or 4 associated with a label) to be saved in the user table.
At this point, the drop down populates correctly, but when I create the user, a memory address is saved in the field for the areaID in the user table.
from createuser.xhtml
<h:outputLabel>areaID</h:outputLabel>
| <h:selectOneMenu value="#{createuser.user.areaID}" id="areaID">
| <s:selectItems value="#{areas.resultList}" var="ar" label="#{ar.areaName}" hideNoSelection="true" noSelectionLabel="Please Select..."/>
| <s:convertEntity />
| </h:selectOneMenu>
|
from components.xml
| <framework:entity-query name="areas" ejbql="select ar from Areas ar" />
|
the variables i am using are strings.
I've looked for and tried several different things, but so far, it either saves the memory address, null or the drop down doesnt populate.
Thanks in advance for any help you can give me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089875#4089875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089875
18 years, 6 months
[JBoss jBPM] - org.apache.commons.fileupload.FileUploadException: the reque
by utsaviinindia
Hi,
I am using Eclipse SDK 3.2.1, jbpm-gpd-feature-3.0.12, jbpm-jpdl-3.2.1.
I followed the demo example. It is working fine till press "Deploy Process Archive" button. Message I got successful message but I got the below error on server side.
I saw this error in this forum also but it says in next release it is resolved.
But this is the only combination of softwares, gpd is working.
Can someone guide me in right direction?
Best Regards and Thanks in advance for your help.
org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
15:50:19,028 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:324)
15:50:19,028 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
15:50:19,028 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.handleRequest(ProcessUploadServlet.java:72)
15:50:19,038 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.service(ProcessUploadServlet.java:56)
15:50:19,038 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
15:50:19,038 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
15:50:19,038 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:50:19,038 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:50:19,038 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
15:50:19,058 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
15:50:19,058 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
15:50:19,058 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
15:50:19,058 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
15:50:19,058 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
15:50:19,078 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
15:50:19,078 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
15:50:19,078 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
15:50:19,088 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
15:50:19,088 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
15:50:19,088 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
15:50:19,108 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
15:50:19,108 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocketPoolTcpEndpoint.java:527)
15:50:19,108 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.runMasterSlaveWorkrThread.java:112)
15:50:19,108 ERROR [STDERR] at java.lang.Thread.runThread.java:534)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089872#4089872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089872
18 years, 6 months