[JBoss Seam] - session timeout always throw exception
by jyc5131
i am using the Jboss 4.0.4.GA SEAM 1.0.1.GA
when the session time out, i will get below trace, i cannot find out something that cannot be serialized. any helps is welcome
| 2006-11-17 16:29:28,047 WARN [org.jboss.seam.contexts.Contexts] Could not destroy component: myService
| java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.seam.contexts.WebSessionContext - org.jboss.seam.contexts.WebSessionContext
| at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:365)
| at org.jboss.ejb3.stateful.StatefulBeanContext.getInstance(StatefulBeanContext.java:309)
| at org.jboss.ejb3.AbstractPool.remove(AbstractPool.java:169)
| at org.jboss.ejb3.cache.simple.SimpleStatefulCache.remove(SimpleStatefulCache.java:299)
| at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor.java:126)
| at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:87)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy526.destroy(Unknown Source)
| 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:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:211)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:195)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.seam.contexts.WebSessionContext - org.jboss.seam.contexts.WebSessionContext
| at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:327)
| at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
| at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
| at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
| at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
| at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
| at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
| at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:165)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:343)
| at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
| at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:342)
| ... 35 more
| Caused by: java.lang.InstantiationException: org.jboss.seam.contexts.WebSessionContext
| at java.lang.Class.newInstance0(Class.java:335)
| at java.lang.Class.newInstance(Class.java:303)
| at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:319)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986766#3986766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986766
19Â years, 7Â months
[JNDI/Naming/Network] - ExternalContext Classload error
by muralidhar.ch
I am trying to configure JBoss to set up a file system as an external context. The following is the error message:
00:34:15,932 INFO [ServiceConfigurator] Problem configuring service jboss.jndi:service=ExternalContext,jndiName=external/fs/hifire
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@f30494 on mbean jboss.jndi:service=ExternalContext,jnd
; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: javax.naming.IntialContext)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:573)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:275)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:164)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:200)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:595)
... more
It looks like it is unable to load some class. I have already included all the sun jndi libraries in the //.
My jboss-service file looks like this:
<!-- Bind the file:///C:/ftp/files/ file system directory -->
external/fs/hifire
false
true
java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
java.naming.provider.url=file:///C:/ftp/files/
javax.naming.IntialContext
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986765#3986765
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986765
19Â years, 7Â months
[JBoss Portal] - Re: Helloworld IPC Problem
by vpnuser
I am facing the same problem in HelloworldIPC portlet. Was trying to test how inter portlet communication works. I have made a war file using build.xml with ant tool. Initially it contained only the xml files. The classe files are added to this war file with the package structure. Then deployed the same. It shows the IPC tab and upon clicking it shows the PortletA and PortletB. Upon giving some data and submitting it throws an error in console. The error is
An portlet exception occured in portlet helloworldipc.HelloWorldPortletA
javax.portlet.PortletException: Nothing to invoke
at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:173)
at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:96)
at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342)
at org.jboss.portal.portlet.PortletContainer.invokeAction(PortletContainer.java:470)
I tried creating war file using jar cvf command also. In both the cases it throws the same error.
jdk 1.5 and jboss-portal-2.2.1 are used.
Could anyone please send the .war file of the HelloworldIPC portlet example which works fine.
Or atleast list down what all xml files and other files (with the package structutre) which should be there in .war file ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986764#3986764
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986764
19Â years, 7Â months
[JBoss Eclipse IDE (users)] - Problem while create project from CVS in Eclipse 3.2.1 + JBo
by fishsoft
When i trying to create a project from cvs server,i got an exception when the wizard just finished?I don't know how to fix it,please help.Thank you very much.m(_._)m
Detail at the following:
!ENTRY org.eclipse.core.jobs 4 2 2006-11-17 15:38:28.598
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
java.lang.NullPointerException
at org.jbpm.ui.util.JbpmClasspathContainer.getJarNames(Unknown Source)
at org.jbpm.ui.util.JbpmClasspathContainer.createJbpmLibraryEntries(Unknown Source)
at org.jbpm.ui.util.JbpmClasspathContainer.getClasspathEntries(Unknown Source)
at org.eclipse.jdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:494)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4119)
at org.jbpm.ui.util.JbpmClasspathContainerInitializer.initialize(Unknown Source)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1900)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1267)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1470)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2169)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2073)
at org.eclipse.jdt.internal.core.search.JavaSearchScope.add(JavaSearchScope.java:107)
at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.initialize(JavaWorkspaceScope.java:84)
at org.eclipse.jdt.internal.core.search.JavaSearchScope.(JavaSearchScope.java:61)
at org.eclipse.jdt.internal.core.search.JavaSearchScope.(JavaSearchScope.java:57)
at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.(JavaWorkspaceScope.java:29)
at org.eclipse.jdt.internal.core.JavaModelManager.getWorkspaceScope(JavaModelManager.java:1705)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.createWorkspaceScope(BasicSearchEngine.java:155)
at org.eclipse.jdt.core.search.SearchEngine.createWorkspaceScope(SearchEngine.java:397)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:2856)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986762#3986762
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986762
19Â years, 7Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Does Hibernate 3.2 support generating Database schema fr
by andydale
Yes Hibernate can create the DB schema from annotated classes, consider the following class
@Entity
| @Table(name = "Student")
| @SequenceGenerator(name = "Student_Sequence", initialValue = 1, allocationSize = 1, sequenceName = "student_seq")
|
| public final class Student {
| //************** class variables *****************
| /**
| * The ID of the entity.
| */
| private int mId;
|
| /**
| * Name of the student.
| */
| private String mName;
|
|
| /**
| * Course student is enrolled on
| */
| private Collection<Course> mCourses = new ArrayList<Course>();
| //************************************************
|
| //*********** getters and setters ****************
|
| /**
| * Return the courses the student is enrolled on.
| * @return mCourses courses
| */
| @ManyToMany(mappedBy = "students", fetch = FetchType.EAGER, cascade ={CascadeType.PERSIST, CascadeType.MERGE})
| public Collection<Course> getCourses() {
| return mCourses;
| }
|
| /**
| * See the course the student is enrolled on
| * @param pCoursesEnrolledOn courses
| */
| public void setCourses(final Collection<Course> pCourses) {
| mCourses = pCourses;
| }
|
| /**
| * get the Id.
| * @return mId id
| */
| @Id
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "Student_Sequence")
| @Column(name = "student_id")
| public int getId() {
| return mId;
| }
|
| /**
| * Set the id.
| * @param pId id
| */
| public void setId(final int pId) {
| this.mId = pId;
| }
|
| /**
| * Return the name.
| * @return mName name
| */
| public String getName() {
| return mName;
| }
|
| /**
| * set the name.
| * @param pName name
| */
| public void setName(String pName) {
| this.mName = pName;
| }
| //************************************************
| }
will create a table on deploy with the definition
CREATE TABLE student
| (
| student_id int4 NOT NULL,
| name varchar(255),
| CONSTRAINT student_pkey PRIMARY KEY (student_id)
| )
The above example is pretty simple, but you could just deploy a class annotated with @Entity. On deploy JBoss/Hibernate would convert it into a DB table in the DB specified in a persistence.xml file (must be in META-INF of ejb.jar).
Experiment a bit, and possibly buy yourself the Enterprise JavaBeans 3.0 book (Bill Burke, Richard Monson-Haefel), as it gives you some decent examples of how EJB3 works.
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986761#3986761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986761
19Â years, 7Â months
[JBoss Seam] - Re: What do you guys think of this idea?
by rlhr
In my opinion, I usually like to keep different things in different files.
In a large application, it is nice to be able to split a page.xml file so that each file groups related definitions. It can be also nice to have the flexibility to have these differents page.xml in various location as well.
I think putting xml definitions on a page would be manageable in a small app, I'm not convinced it would be better in a large app.
EJB3 got rid of redundancy of information. Before non only we had to write a metadata file for each ejb, but also the interfaces,... So for each ejb, we had to write a bunch of files. Annotation got rid of all the redundancy by generating automatically everything needed from one single source.
In this case, nothing is removed to be generated for us. It is more about where to put some info that needs to be written anyway.
So as I said, I believe in separating things unless putting them together really does improve a lot the development cycle.
This is just my opinion :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986758#3986758
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986758
19Â years, 7Â months