Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001878 [Resin] minor always 07-13-07 15:11 07-26-07 15:09
Reporter sam View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.3 Product Version 3.1.1
  Product Build
Summary 0001878: EjbCompiler EjbTransactionManager javax.naming.NoInitialContextException
Description (rep by S Croco)

       <java fork="yes" jvm="${module.jdk.home.ejb}/bin/java"
             classname="com.caucho.ejb.EJBCompiler"
            taskname="ejb-cmp" failonerror="true">
            <classpath refid="ejb.ejbcompiler.classpath"/>
            <arg value="-class-dir"/>
            <arg value="${ejb.output.dir}"/>
            <arg value="${ejb.meta-inf.dir}/cmp-xdoclet.ejb"/>
            <arg value="${ejb.meta-inf.dir}/resin.ejb"/>
        </java>

  [ejb-cmp] Jul 11, 2007 1:01:10 PM
com.caucho.ejb.xa.EjbTransactionManager <init>
  [ejb-cmp] WARNING: javax.naming.NoInitialContextException: Need to
specify class name in environment or system property, or as an applet
parameter, or in an application resource file:
java.naming.factory.initial
  [ejb-cmp] javax.naming.NoInitialContextException: Need to specify
class name in environment or system property, or as an applet parameter,
or in an application resource file: java.naming.factory.initial
  [ejb-cmp] at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
  [ejb-cmp] at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  [ejb-cmp] at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:2
84)
  [ejb-cmp] at
javax.naming.InitialContext.lookup(InitialContext.java:351)
  [ejb-cmp] at
com.caucho.ejb.xa.EjbTransactionManager.<init>(EjbTransactionManager.jav
a:100)
  [ejb-cmp] at
com.caucho.ejb.EnvServerManager.<init>(EnvServerManager.java:129)
  [ejb-cmp] at
com.caucho.ejb.EjbServerManager.<init>(EjbServerManager.java:128)
  [ejb-cmp] at com.caucho.ejb.EJBCompiler.compile(EJBCompiler.java:101)
  [ejb-cmp] at com.caucho.ejb.EJBCompiler.main(EJBCompiler.java:138)
  [ejb-cmp] Jul 11, 2007 1:01:11 PM com.caucho.ejb.EnvServerManager
<init>
  [ejb-cmp] INFO: transactions are not available to EJB server
  [ejb-cmp] Exception in thread "main"
/home/harry/projects/hogwarts-online/../../www/resin/WEB-INF/cmp-xdoclet.e
jb:119: HogwartsOnline.common.ejb.BlogImageHome: 'findAll()' expects an
ejb-ql query. All find methods need queries defined in the EJB
deployment descriptor.
  [ejb-cmp] at
com.caucho.ejb.cfg.EjbEntityBean.init(EjbEntityBean.java:635)
  [ejb-cmp] at
com.caucho.ejb.cfg.EjbConfig.configure(EjbConfig.java:443)
  [ejb-cmp] at
com.caucho.ejb.EjbServerManager.build(EjbServerManager.java:674)
  [ejb-cmp] at com.caucho.ejb.EJBCompiler.compile(EJBCompiler.java:123)
  [ejb-cmp] at com.caucho.ejb.EJBCompiler.main(EJBCompiler.java:138)
  [ejb-cmp] Caused by: com.caucho.config.ConfigException:
HogwartsOnline.common.ejb.BlogImageHome: 'findAll()' expects an ejb-ql
query. All find methods need queries defined in the EJB deployment
descriptor.
  [ejb-cmp] at com.caucho.ejb.cfg.EjbBean.error(EjbBean.java:2179)
  [ejb-cmp] at
com.caucho.ejb.cfg.EjbEntityBean.validateHome(EjbEntityBean.java:1389)
  [ejb-cmp] at
com.caucho.ejb.cfg.EjbEntityBean.init(EjbEntityBean.java:625)
  [ejb-cmp] ... 4 more


My definition for findAll() in BosgImage is this:

 * @ejb.finder
 * signature="java.util.Collection findAll()"
 * query="SELECT o FROM BosgImage o ORDER BY o.id"
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002144)
ferg
07-26-07 15:09

EJBCompiler needed to initialized the environment with EnvironmentClassLoader.initializeEnvironment()
 

- Issue History
Date Modified Username Field Change
07-13-07 15:11 sam New Issue
07-26-07 15:09 ferg Note Added: 0002144
07-26-07 15:09 ferg Assigned To  => ferg
07-26-07 15:09 ferg Status new => closed
07-26-07 15:09 ferg Resolution open => fixed
07-26-07 15:09 ferg Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker