[forge-users] Context already active
Thomas Frühbeck
fruehbeck at aon.at
Fri Sep 30 17:22:16 EDT 2011
Hi Lincoln,
I tried to exclude rewrite-integration-faces by adding:
<dependency>
<groupId>com.ocpsoft.rewrite</groupId>
<artifactId>rewrite-integration-faces</artifactId>
<version>1.0.0.Alpha4</version>
<scope>provided</scope>
</dependency>
Which gave the following list of jars:
thomas at happy:~/java/jboss-as-7.0.1.Final/standalone/deployments> ls
myapp.war/WEB-INF/lib/
common-api-1.0.0.Final.jar
metawidget-core-1.30.jar
metawidget-jpa-1.30.jar seam-persistence-3.0.0.Final.jar
jboss-logging-3.0.0.Beta4.jar
metawidget-faces-1.30.jar
rewrite-api-1.0.0.Alpha4.jar seam-solder-3.0.0.CR4.jar
logging-api-1.0.0.Final.jar
metawidget-facesannotation-1.30.jar
rewrite-api-servlet-1.0.0.Alpha4.jar
metawidget-annotation-1.30.jar
metawidget-forge-scaffold-1.0.0-20110929.230305-33.jar
rewrite-impl-config-1.0.0.Alpha4.jar
metawidget-beanvalidation-1.30.jar
metawidget-java5-1.30.jar
rewrite-impl-servlet-1.0.0.Alpha4.jar
Unfortunately the problem persists.
Caused by: java.lang.IllegalStateException: Context is already active
at
org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:311)
[weld-core-1.1.2.Final.jar:2011-07-26 15:02]
.....
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
Then I tried to build a new app using Forge 1.0.0.Beta3.
Now I get the following Exception when installing the prettyfaces plugin:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest
____ _____
***ERROR*** Exception encountered: [Error: unable to invoke method: shell]
[Near : {... \"");shell("echo \" / ___| ___ ....}]
^
[Line: 1, Column: 91] (type "set VERBOSE true" to enable stack traces)
? Use [/tmp/abstractshelltest6239016799597012883.tmp/test] as project
directory? [Y/n]
***SUCCESS*** Created project [test] in new working directory
[/tmp/abstractshelltest6239016799597012883.tmp/test]
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 31.258
sec <<< FAILURE!
Results :
Tests in error:
testInstallPrettyfaces(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
org.jboss.forge.shell.events.CommandExecuted.<init>(Lorg/jboss/forge/shell/events/CommandExecuted$Status;Lorg/jboss/forge/shell/command/CommandMetadata;)V
testAutoMap(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testAutoMap(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
testListenToEventPlainHtmlWithJSFInstalled(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testListenToEventPlainHtmlWithJSFInstalled(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
testRegex(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testRegex(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
Am 30.09.2011 20:25, schrieb Lincoln Baxter, III:
> Try removing the Rewrite Faces Integration (you'll need to add an
> exclusion to your POM.)
>
> On Fri, Sep 30, 2011 at 2:20 AM, Lincoln Baxter, III
> <lincolnbaxter at gmail.com <mailto:lincolnbaxter at gmail.com>> wrote:
>
> Will take a look at this in the morning. Could you please email
> the users list when asking questions? This way everyone can
> benefit front the answers. Thanks!
>
> --
> Lincoln Baxter's Droid
> http://ocpsoft.com
> "Keep it Simple"
>
> On Sep 30, 2011 2:17 AM, "Thomas Frühbeck" <fruehbeck at aon.at
> <mailto:fruehbeck at aon.at>> wrote:
> > Hi Lincoln,
> >
> > when trying to create an entity I get the "Context already active"
> > exception:
> >
> > Caused by: java.lang.IllegalStateException: Context is already
> active
> > at
> >
> org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:311)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-users/attachments/20110930/4c9de3d2/attachment.html
More information about the forge-users
mailing list