[Installation, Configuration & Deployment] - Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
by nalbion
.classpath (generated by Eclipse):
<?xml version="1.0" encoding="UTF-8"?>
| <classpath>
| <classpathentry excluding="net/sourceforge/wurfl/|net/sourceforge/wurfl/wall/" kind="src" output="WebRoot/WEB-INF/classes" path="src"/>
| <classpathentry kind="src" output="build" path="test"/>
| <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
| <classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
| <classpathentry combineaccessrules="false" kind="src" path="/mojoWebEJB"/>
| <classpathentry exported="true" kind="lib" path="/mojoWebEJB/lib/oscache-2.3.2.jar"/>
| <classpathentry kind="var" path="JUNIT_HOME/junit.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.1.0/src/org.junit_3.8.1/junitsrc.zip"/>
| <classpathentry kind="lib" path="C:/sw_dev/java/j2ee/lib/testng/testng-5.1-jdk15.jar"/>
| <classpathentry exported="true" kind="lib" path="C:/Documents and Settings/nick/workspace/tools/java/wurflapi-xom/antbuild/wurfltags.jar" sourcepath="/Wurfl Java API/src"/>
| <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/switcher.jar"/>
| <classpathentry kind="lib" path="lib/wapunit0.9.5.jar" sourcepath="/WapStack"/>
| <classpathentry exported="true" kind="lib" path="C:/sw_dev/java/trove/lib/trove.jar"/>
| <classpathentry kind="lib" path="C:/sw_dev/java/jboss-4.2.0.GA/server/default/lib/commons-logging.jar"/>
| <classpathentry kind="lib" path="C:/sw_dev/java/jboss-4.2.0.GA/server/default/lib/log4j.jar"/>
| <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
| </classpath>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046697#4046697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046697
18 years, 11 months
[EJB 3.0] - Re: How to get this (very simple) tutorial to work in JBoss
by mjdinsmore
I've done the (new InitialContext().lookup("beanName/local") and that works all fine and dandy. I'd really PREFER to use the
@EJB(name="beanName/local") private Bean beanName; instead, but its not working.
Note: I'm using 4.0.4GA. I had applied some EJB 3.0 patch a long time ago and forgot which one so I just tried with what seems to be the latest possible version for my version of JBoss -- I applied the jboss-ejb-3.0-RC9-fd.zip using the Ant install.xml script. I use Java 5.
Am I doing something wrong? I basically removed the InitialContext code and use the @EJB instead and that's the only change so I know its not any deployment, etc type of error.
Thanks for any insight. I think it seems like the @EJB injection is really useful and can simplify the testing process. Maybe I'm wrong since I can't even get that working yet... but I'd like to potentially simplify some unit tests and my mock ejb containers....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046690#4046690
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046690
18 years, 11 months