[JBoss Seam] - Deployment problem
by loumaus
Hi there ...
experiencing some strange problems and would like to know if anyone run into this before.
Im deploying a simple stateless and jboss throws a NullPointerException.
The problem is, that this exception does not really help me in that moment.
My configuration:
I took the libraries used by the seam examples, wrapped them into maven, build them and deploy them.
complete structure is equivalent to the ant builded ear.
The exception:
[org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.locale.component
2007-04-10 16:29:45,598 INFO [org.jboss.seam.Component] Component: bookManager, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: de.xxx.poc.seam.ejb.BookManagerStatelessBean, JNDI: seamsample/BookManagerStatelessBean/local
2007-04-10 16:29:45,600 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@ca6f53, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@621bd7{ url=null ,addedOrder=0}
2007-04-10 16:29:45,601 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seamsample]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.NullPointerException
at org.jboss.seam.util.Reflections.set(Reflections.java:65)
at org.jboss.seam.util.Reflections.setAndWrap(Reflections.java:83)
at org.jboss.seam.Component.initMembers(Component.java:593)
at org.jboss.seam.Component.(Component.java:256)
at org.jboss.seam.Component.(Component.java:207)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:781)
at org.jboss.seam.init.Initialization.addComponents(Initialization.java:690)
at org.jboss.seam.init.Initialization.init(Initialization.java:451)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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)
thanks in advance for your help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036016#4036016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036016
19 years
[JBoss Seam] - Help required with eclipse setup
by raj_747
I?m trying to setup a seam development environment in Eclipse and cannot get it working.
I?ve followed the very basic instructions that are provided in the seam reference guide these instructions have not been very helpful.
I?ve created a new project in seam using seam-gen as per the seam reference guide and have deployed it using seam new-project to C:\Projects.
I have then created a new eclipse workspace in the above directory. And then added the project using New -> Project... -> General -> Project -> Next, typing the Project name (myproject in this case), and then clicking Finish.
Once I have created the new project I get a error dialog in eclipse stating:
?build xml:186: Directory C:\Program Files\jboss-4-0-5.GA\server\default\deploy\myproject.ear\myproject.jar creation was not successful for an unknown reason?
I have also tried creating a new EJB 3 project using the seam-gen code and this does not work either. The error that I receive is:
?C:\Projects\myproject\build.xml:63 C:\Projects\myproject\classes\model not found?
I have JDK 5, JBoss AS 4.05 and ANT 1.6 as per the requirements.
I?ve tried using both Eclipse 3.2.2 and also the JBossIDE .0.0.Beta2-Bundle.
Does anyone have step by step instructions on how to setup a development environment that I can use for debugging and stepping through the code, along with the versions of the software required?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036006#4036006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036006
19 years
[JBoss Messaging] - Re: Problem sending message from container using Managed con
by cresny
Server (A) does not have any messaging installed locally, just the resource adapter with jms-ds.xml configured to point to Server (B).
We get the same behavior when we connect and send via java:/JmsXA, whether from a Session bean with transaction REQUIRED or SUPPORTS, or from an MBean; it's consistently a silent failure and no messages get to the Destination, regardless of transaction scope. What's frustrating is it seems like it works, but it doesn't.
I'm wondering if this is just our unfamiliarity with JBM's Server Peer architecture. I mean, *must* we have JBM installed on Server (A), perhaps with distributed queues? The way we current have it is that JBM is a messaging-only node or cluster. Server (A) would be just one of several clients - but in this case it is a container client, while others are just simple processes. What we want is managed remote connections, in our case more for performance concerns than for the XA (We could alternatively use Spring's JMSTemplate, which does pool sessions, but JBM's documentation specifically warns against it).
Meanwhile, I've have difficulty finding any documentation or examples of *sending* messages from a remote container; all the container examples seem to be of consuming with MDBs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036003#4036003
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036003
19 years