[JBoss JIRA] Created: (WELD-587) Exception happened when invalid session before ending Conversation with Post-Redirect-Get
by Wang Liyu (JIRA)
Exception happened when invalid session before ending Conversation with Post-Redirect-Get
-----------------------------------------------------------------------------------------
Key: WELD-587
URL: https://jira.jboss.org/browse/WELD-587
Project: Weld
Issue Type: Bug
Components: Conversations, Scopes & Contexts
Affects Versions: 1.0.1.Final
Environment: Weld-servlet 1.0.1.Final, GlassFish3.0.1 or Tomcat6.0.26
Reporter: Wang Liyu
See http://seamframework.org/Community/ExceptionWhenEndingConversationWithPos... for the test case.
basically, when you call HttpSession.invalidate() method with a LRC running, after redirect, it will report an exception:
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: HelloWorld was constructed
INFO: begin the LRC here.
INFO: about to invalid the session here.
WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
org.jboss.weld.context.NonexistentConversationException: WELD-000301 Could not restore long-running conversation 2 because id not known
at org.jboss.weld.conversation.AbstractConversationManager.beginOrRestoreConversation(AbstractConversationManager.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:304)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:298)
at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:113)
at org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.java:43)
at org.jboss.weld.conversation.ServletConversationManager_$$_javassist_3.beginOrRestoreConversation(ServletConversationManager_$$_javassist_3.java)
at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener.java:171)
at org.jboss.weld.jsf.WeldPhaseListener.beforeRestoreView(WeldPhaseListener.java:118)
at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:87)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELDSE-23) Disable logging out of the box
by Peter Royle (JIRA)
Disable logging out of the box
------------------------------
Key: WELDSE-23
URL: https://jira.jboss.org/jira/browse/WELDSE-23
Project: Weld support for Java SE
Issue Type: Feature Request
Affects Versions: 1.0.1.Final
Reporter: Peter Royle
Assignee: Peter Royle
Priority: Minor
Fix For: 1.0.2.CR1
The presence of SLF4J-simple within the Weld SE jar causes problems for those wanting to use a different SLF4J provider (eg: jdk14).
This comment from Ceki points to a good solution, using SLF4J 1.6:
Ceki Gulcu - 23/Apr/10 04:17 AM
As of SLF4J version 1.6.0, if no binding is found on the class path, then slf4j-api will default to a no-operation implementation discarding all log requests. Thus, instead of throwing an exception, SLF4J will emit a single warning message about the absence of a binding and proceed to discard all log requests without further protest. If Weld's distribution includes slf4j-api.jar but no binding, then even in the absence of any SLF4J binding on the class path, Weld's distribution will still work out-of-the-box, and without requiring the end-user to download a binding from SLF4J's web-site. Only when the end-user wishes to enable logging will she need to install a binding.
The problem with this currently is that version 1.6 is still alpha, so resolution of this issue will have to wait until version 1.6 is released as stable, and becomes available in the JBoss maven repositories:
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELD-478) Tomcat dependencies are incomplete in documentation
by Hontvári József (JIRA)
Tomcat dependencies are incomplete in documentation
---------------------------------------------------
Key: WELD-478
URL: https://jira.jboss.org/jira/browse/WELD-478
Project: Weld
Issue Type: Bug
Components: Documentation
Affects Versions: 1.0.1.Final
Reporter: Hontvári József
In section 18.3. there is a list of dependencies for servlet containers. This is incomplete, it does not list all dependecies and it also does not specify their versions. After tracking some NoClassDefFoundError, here are some additional jars:
-jsr299-api.jar is listed but this does not exist in Weld 1.0.1.Final distribution. Likely this is cdi-api.jar from the artifacts/cdi directory.
-weld-logging.jar is listed, but I cannot find such jar. Likely this entry is obsolete.
-cal10n-api-0.7.2.jar
-javax.inject-1.jar
-jboss-interceptor-1.0.0-CR11.jar
-jboss-interceptor-api-1.1.jar
-slf4j-ext-1.5.10.jar
After adding these jars Weld starts with the web application but org.jboss.weld.environment.servlet.Listener throws a com.google.common.collect.ComputationException: java.lang.reflect.GenericSignatureFormatError. I tries to follow the maven configuration, but without success, I can only guess that I included the wrong version of one of the jars.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELD-649) Cannot find parent: org.jboss.weld.examples:weld-examples-parent for project
by sreekanth manga (JIRA)
Cannot find parent: org.jboss.weld.examples:weld-examples-parent for project
----------------------------------------------------------------------------
Key: WELD-649
URL: https://jira.jboss.org/browse/WELD-649
Project: Weld
Issue Type: Bug
Components: Examples
Affects Versions: 1.0.1.Final
Environment: ant version 1.7.1
Mvn 3
Linux : Ubuntu 32 bit
Reporter: sreekanth manga
Fix For: 1.0.1.Final
I am unable to run the "pastecode " sample from weld build.
While packaging I see the following error :
sreekanth@Auriferous:/space/Sreekanth/install/weld/weld-1.0.1-Final/examples/jsf/pastecode$ ant package
Buildfile: build.xml
package:
[java] [INFO] Scanning for projects...
[java] [INFO] ------------------------------------------------------------------------
[java] [ERROR] FATAL ERROR
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Error building POM (may not be this project's POM).
[java]
[java]
[java] Project ID: org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT
[java]
[java] Reason: Cannot find parent: org.jboss.weld.examples:weld-examples-parent for project: org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT for project org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT
[java]
[java]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Trace
[java] org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.weld.examples:weld-examples-parent for project: org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT for project org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT
[java] at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
[java] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
[java] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
[java] at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[java] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[java] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[java] at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[java] Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jboss.weld.examples:weld-examples-parent for project: org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT for project org.jboss.weld.examples.jsf.pastecode:weld-jsf-pastecode-parent:pom:1.0.1-SNAPSHOT
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1369)
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:820)
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:505)
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
[java] at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
[java] at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
[java] at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
[java] ... 11 more
[java] Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.weld.examples:weld-examples-parent' not found in repository: Unable to download the artifact from any repository
[java]
[java] org.jboss.weld.examples:weld-examples-parent:pom:1.0.1-SNAPSHOT
[java]
[java] from the specified remote repositories:
[java] central (http://repo1.maven.org/maven2)
[java]
[java] for project org.jboss.weld.examples:weld-examples-parent
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:602)
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1365)
[java] ... 17 more
[java] Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
[java]
[java] org.jboss.weld.examples:weld-examples-parent:pom:1.0.1-SNAPSHOT
[java]
[java] from the specified remote repositories:
[java] central (http://repo1.maven.org/maven2)
[java]
[java]
[java] at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
[java] at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
[java] at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:555)
[java] ... 18 more
[java] Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
[java] at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:332)
[java] at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
[java] ... 20 more
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Total time: < 1 second
[java] [INFO] Finished at: Mon Aug 30 18:02:28 IST 2010
[java] [INFO] Final Memory: 1M/38M
[java] [INFO] ------------------------------------------------------------------------
BUILD FAILED
/space/Sreekanth/install/weld/weld-1.0.1-Final/examples/build.xml:62: The following error occurred while executing this line:
/space/Sreekanth/install/weld/weld-1.0.1-Final/examples/build.xml:147: Java returned: 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months