[JBoss Seam] - Hibernate, Seam, Tomcat and SFSB
by miloslav.vlach
Hi all,
I have problem with understanding of this concept:
When I use tomcat, with microcontainer I can't work with @Stateful bean. I got the exception: Local server is not initialized.
It is possible to work with SFSB ?
Thanks Mila
When I end tomcat I got this exception.
| 19:23:16,531 ERROR [org.hibernate.util.NamingHelper] Could not obtain initial context
| javax.naming.NamingException: Local server is not initialized
| at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
| at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
| at org.hibernate.impl.SessionFactoryObjectFactory.removeInstance(SessionFactoryObjectFactory.java:115)
| at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:803)
| at org.jboss.seam.core.HibernateSessionFactory.shutdown(HibernateSessionFactory.java:41)
| 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:20)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
| at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:185)
| at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:37)
| at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
| at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4357)
| at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)
| at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
| at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
| at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
| at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
| at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
| at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
| at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
| at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
| at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
| at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044000#4044000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044000
19 years
[Installation, Configuration & Deployment] - Putting Properties file outside the war file
by sridhar.jforum
Hello,
I'm having trouble taking out the KeyStore or the properties file from the Axis2 war file. As long as they are in the Axis2.war/WEB-INF/classes directory, everything works fine. I'm using JBoss 4.0.5 and would like to put KeyStore or the properties file outside the Axis2.war file. I tried putting it in Jboss/server/default/lib ; Jboss/server/conf and also manually updated the JBoss CLASSPATH in the run.bat file but doesn't work.
The properties file (test.properties) in Axis2.war/WEB-INF/classes folder has the following contents.
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=password
org.apache.ws.security.crypto.merlin.keystore.alias=uattest
org.apache.ws.security.crypto.merlin.alias.password=password
org.apache.ws.security.crypto.merlin.file=TestKeyStore
If I keep both the TestKeyStore and test.properties files in the Axis2.war/WEB-INF/classes folder, it works fine.
Can someone please suggest me how to make the properties file or the KeyStore file available to Axis2.war after it is deployed?
I'm putting Axis2.war in an ear which contains some jars and 2 other war files.
Any help would be greatly appreciated.
Thanks,
Sridhar.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043998#4043998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043998
19 years
[JBoss Seam] - Request: Step by Step build it yourself tutorial
by fperedo
Hi!
I don't mean to compare Seam with Spring
(I like Spring, but I think that Seam's bijection is just superior)
But I would like to see a tutorial like this for Seam:
Spring MVC step by step
Why do I love that tutorial?:
| It starts with a very very simple page
| Then it adds a very simple binding to a controller
| Then it adds a more complex binding of an array of Pojos
| Then it adds unittesting and another very simple page
| Then it makes the Pojos persistent
| The ant file is written in the tutorial, by hand, it is simple, and explicit.
| Everything is done "by hand" no steps with hidden effects o configurations
|
|
| I mean... suposedly, using Seam should more straighforward than using Spring... but I am in need of an example/tutorial that shows that "the Seam way" is also superior, even without automatic code generation... (or would you say that if someone adds a generator to SpringMVC then it becomes the same thing as Seam? I don't think so... but... how can be sure?)
|
| Thanks
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043994#4043994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043994
19 years
[JBoss jBPM] - Re: jbpm-jpdl-designer-3.1.0.alpha3 questions
by myarrow
Hello Koen
Thanks for replying about the jpdl alpha3 issues.
1. With respect to the presence of the jpeg (for monitoring),
I have to make sure that the jpeg is being included in the
deploy (of course) and what I had found is that unless I
carefully "clean" the eclipse project, there was (only sometimes)
some issue with this. So this is no longer an issue.
2. I will take your advice and try the jpdl alpha4. Which brings me
to the current issue. I am running jpdl alpha3 in the
jbpm-starters-kit-3.1.4 because I could not get the following
signalling servlet to work with the jbpm-jpdl-suite-3.2.GA release.
I am including the relevant code below. I looked at the 3.2.GA
jbpm runtime lib javadocs and see nothing particularly obvious
that would indicate that the code (which works fine in 3.1.4) is no
longer compliant with 3.2.GA.
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| ProcessInstance processInstance = null;
| try {
| processInstance = jbpmContext.loadProcessInstance(processInstanceId);
| etc., etc., ...
|
With the 3.2.GA runtime, there are a series of either classes or
...hbm.xml files that are not found. This problem does not exist
when using the 3.1.4 runtime.
Question: is there a new model for getting the ProcessInstance ?
Maurice Yarrow
SplashNote Systems
Santa Clara, California
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043992#4043992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043992
19 years