Jeremy,

No jar in \test\ejb and the thing isn't even remotely near the classpath even if a jar 
*was* there.  

Maybe we're dealing with distinct issues?
Cory

-----Original Message-----
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:09 AM
To: OpenEJB
Subject: RE: [OpenEJB-user] Newbie Issues


Cory,
        Okay.  In "\test\ejb", do you still have the .jar file for your
bean there as well as in the OPENEJB_HOME\beans?  Thanks for your help,
Jeremy

P.S. - This is a hard thing to explain as it's not in the documentation
anywhere.  I had the same issues when I was first using OpenEJB and it
was something I figured out by dumb luck and just trying things.  If you
are in the US, I could call you so if you are and you feel comfortable,
email me your number along with the answer to the above question and
I'll give you a ring.

-----Original Message-----
From: Cory Wilkerson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 7:58 AM
To: Jeremy Whitlock
Subject: RE: [OpenEJB-user] Newbie Issues

Jeremy,

I've essentially just deployed a pretty dumb war into Resin and
configured my startup script to load all appropriate jars from the
OpenEJB classpath as such (blatantly lifted from the OpenEJB
documentation at http://www.openejb.org/hello-world.html):

set CP=
for %%i in (%OPENEJB_HOME%\lib\*.jar) do call cp.bat %%i 
for %%i in (%OPENEJB_HOME%\dist\*.jar) do call cp.bat %%i 
for %%i in (%OPENEJB_HOME%\beans\*.jar) do call cp.bat %%i 

SET CLASSPATH=%CLASSPATH%;%CP%

So, ostensibly, I've got every jar in (OPENEJB_HOME)lib\dist\beans on
the classpath (of course, my ejb jar is rolled up into "beans").  To
answer your other question, my ejb jar was compiled in \test\ejb and
then ported over the OPENEJB_HOME\beans by means of the deploy tool. 

Thanks for any input,
Cory Wilkerson



-----Original Message-----
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 5:04 PM
To: OpenEJB
Subject: RE: [OpenEJB-user] Newbie Issues


Cory,
        I had these issues when I was first getting into OpenEJB.  Is
there anyway that you have the .jar file in the same directory as the
files being loaded from the bean?  If I were to jar up a directory and
leave the .jar file in that directory, I would get that error.  Also, do
you have the directory with your .jar in it in your CLASSPATH?  Can you
give me more on your directory structure?  Thanks, Jeremy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory
Wilkerson
Sent: Wednesday, November 19, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: [OpenEJB-user] Newbie Issues

Good afternoon all,

OpenEJB looks amazingly slick -- I'm dying to get it integrated  with
Resin so I can drop JBoss off the back end (the crowd roars).

To that end -- all is looking well with initial testing (my beans
actually /do/ get deployed) but I see the following condition at startup
time (and no one likes a nasty looking log).  It goes without saying
that I'd like to clean this up -- any idea what could be going wrong?
Is this a standard newb config issue?

DEBUG err                       java.lang.ClassCastException
DEBUG err                               at
org.openejb.util.ClasspathUtils$ContextLoader.addJarToPath(ClasspathUtil
s.java:310)
DEBUG err                               at
org.openejb.util.ClasspathUtils.addJarToPath(ClasspathUtils.java:72)
DEBUG err                               at
org.openejb.util.ClasspathUtils.addJarToPath(ClasspathUtils.java:68)
DEBUG err                               at
org.openejb.util.ClasspathUtils.addJarToPath(ClasspathUtils.java:64)
DEBUG err                               at
org.openejb.alt.config.ConfigurationFactory.initEnterpriseBeanInfos(Conf
igurationFactory.java:600)
DEBUG err                               at
org.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration(Conf
igurationFactory.java:186)
DEBUG err                               at
org.openejb.alt.assembler.classic.Assembler.init(Assembler.java:163)
DEBUG err                               at
org.openejb.OpenEJB.init(OpenEJB.java:228)
DEBUG err                               at
org.openejb.OpenEJB.init(OpenEJB.java:130)
DEBUG err                               at
org.openejb.loader.EmbeddedLoader.load(EmbeddedLoader.java:71)
DEBUG err                               at
org.openejb.loader.EmbeddingLoader.load(EmbeddingLoader.java:85)
DEBUG err                               at
org.openejb.client.LocalInitialContextFactory.getInitialContext(LocalIni
tialContextFactory.java:65)
DEBUG err                               at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
DEBUG err                               at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
DEBUG err                               at
javax.naming.InitialContext.init(InitialContext.java:219)
DEBUG err                               at
javax.naming.InitialContext.<init>(InitialContext.java:195)
DEBUG err                               at
_somejsp__jsp._jspService(_somejsp__jsp.java:35)
DEBUG err                               at
com.caucho.jsp.JavaPage.service(JavaPage.java:75)
DEBUG err                               at
com.caucho.jsp.Page.subservice(Page.java:506)
DEBUG err                               at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
)
DEBUG err                               at
com.travelnow.ui.filter.AbstractContentTypeFilter.filterRequest(Abstract
ContentTypeFilter.java:74)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.filter.PageStateFilter.filterRequest(PageStateFilter.ja
va:61)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.filter.OutputCompressionFilter.doWhitespacePruning(Outp
utCompressionFilter.java:166)
DEBUG err                               at
com.travelnow.ui.filter.OutputCompressionFilter.filterRequest(OutputComp
ressionFilter.java:83)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.filter.ResponseWrapperFilter.filterRequest(ResponseWrap
perFilter.java:29)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.filter.ResourceMonitorFilter.filterRequest(ResourceMoni
torFilter.java:48)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.geo.GlobalizationFilter.filterRequest(GlobalizationFilter.
java:114)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.filter.ParamTrackingFilter.doFilter(ParamTrackingFilter
.java:139)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.travelnow.ui.stats.RequestStatsFilter.filterRequest(RequestStatsFilt
er.java:53)
DEBUG err                               at
com.travelnow.ui.filter.AbstractFilter.doFilter(AbstractFilter.java:127)
DEBUG err                               at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
DEBUG err                               at
com.caucho.server.http.Invocation.service(Invocation.java:315)
DEBUG err                               at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
DEBUG err                               at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
DEBUG err                               at
com.caucho.server.TcpConnection.run(TcpConnection.java:139)
DEBUG err                               at
java.lang.Thread.run(Thread.java:534)


Also, if it's worth nothing (which I suspect it is as this obviously
gets OpenEJB up and running) I'm using the following route to pull
InitialContext:
----------------------------------
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, 
        
"org.openejb.client.LocalInitialContextFactory");

InitialContext ctx = new InitialContext(properties);
Object obj = ctx.lookup("/Foo");
----------------------------------

Sincerely,
Cory Wilkerson
Senior Development Engineer
TravelNow.com



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to