Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1878 | minor | always | 07-13-07 15:11 | 07-26-07 15:09 | |
|
|||||
Reporter: | sam | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | urgent | OS Version: | |||
Status: | closed | Product Version: | 3.1.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|