[jboss-user] [JBoss Seam] - ClassNotFoundException for SeamListener

2008-01-20 Thread yanlong11
Hi I have trouble getting my own sample to work, it is very simple ear with only one jsp page, but I am trying to include also seam support there, problem is, that I am getting ClassNotFound Exception (full stack trace included below) although RegistrationExample (from seam) works perfectly

[jboss-user] [JBoss Seam] - Re: ClassNotFoundException for SeamListener

2008-01-20 Thread yanlong11
Yes, I have included it. only WEB facet is not deployed, other parts are and I am able to display jsp, however this error seems to be really strange to me, as my code and packaging is almost identical to seam samples (I am not using any classes so far, only one single jsp.) thanks yanlong

[jboss-user] [JBoss Seam] - Re: ClassNotFoundException for SeamListener

2008-01-20 Thread yanlong11
Hi by chance I have found out, that this error might be due to incorrect IDE behavior, as manual deployment works without error. thanks for help yanlong View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121653#4121653 Reply to the post :

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-17 Thread yanlong11
H everyone. finally in the evening I have managed to get this work. there are still some issues open, but now I have beans visible in jndiview via pattern ear/bean/local(remote) so everything works fine. this might have been an packaging issue, now I have one ear deployed with ejb.jar inside

[jboss-user] [EJB 3.0] - can not lookup session bean under Jboss 4.2.2GA and ejb3 (Na

2008-01-16 Thread yanlong11
Hi I have troubles getting ejb3 to work under jboss 4.2.2GA and intellij idea as IDE. my application (simple ejb3 example) is successfully deployed, I can see jsp page and open it (no other things in project) but I can never do lookup on my session bean to get some info from bean to jsp page.

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
Hi thanks for your quick response. actually I have already managed, somehow to get part of this work, unfortunately another error came up. removing remotebinding gives same error package beans; import javax.ejb.Stateless; import javax.ejb.Remote; import

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
Hi trouble is now not Naming, but ClassCastException! it was great hint I have not known, about looking at JNDI console to see real namings. testBean bean = (testBean)obj; // this line always fails and causes exception any idea about this? thanks a lot yanlong View the original post :

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
but test.java is | public interface test { | public String hello(); | } | does that mean, that I have to rewrite code differently? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4120427#4120427 Reply to the post :

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
:( I must be doing something wrong. I even made very base interface (Calculator.java) like in the example but I am always getting the same error. Class Cast Exception. please give me a hint what I am doing wrong. below all important code. (I had rather included it.) thanks in advance

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
16:53:10,284 ERROR [STDERR] java.lang.ClassCastException: $Proxy91 16:53:10,284 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_jsp.java:79) 16:53:10,284 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 16:53:10,284 ERROR [STDERR] at

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
I still had class-cast exc even with code you provided. below output from loader-rep as suggested in article you gave link to. I am loading these dynamically with intellij idea IDE thanks yanlong book.HelloBean Information Repository cache version: book.HelloBean(11be075)[EMAIL PROTECTED]

[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

2008-01-16 Thread yanlong11
Still does not work and same exception. I reminded myself about 2 options. 1. can the cause be, that I have changes default ports? (in configuration) 2. if this would be packaging issue, what is correct way to package jsp application (web.war) that is using ejb beans? In books and tutorials I