On Jun 20, 2008, at 12:48 PM, Karan Malhi wrote:

If I have something like this in openejb.xml

<Deployments dir="D:\workspaces\eclipse\openejb\AUserIssue\src" />

And the directory D:\workspaces\eclipse\openejb\AUserIssue\src has the
META-INF directory with an ejb-jar.xml which just has an empty <ejb- jar/> element. There are interfaces and classes under src which are annotated with
@Remote and @Stateless annotations.

Shouldn't openejb discover and deploy the annotated ejb's ?

It definitely should, provided there are any. Eclipse doesn't usually put the compiled class definitions under src does it? Might be the issue right there :)

One way to check is to explicitly add an ejb definition for one of the classes you expected to be discovered. If there's something wrong with it, OpenEJB should complain.

Something like this:

  <ejb-jar>
    <enterprise-beans>
       <session>
         <ejb-name>MyBean</ejb-name>
         <ejb-class>org.superbiz.MyBean</ejb-class>
       </session>
    </enterprise-beans>
  </ejb-jar>

That would at least help you determine if the class is there.

-David

Its not happening for me. Below is my openejb.log file


2008-06-20 15:46:27,906 - INFO - openejb.home = C:\install \openejb-3.0 2008-06-20 15:46:27,906 - INFO - openejb.base = C:\install \openejb-3.0
2008-06-20 15:46:27,906 - DEBUG - Instantiating assembler class
org.apache.openejb.assembler.classic.Assembler
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=Default Security
Service, type=SecurityService, provider-id=Default Security Service)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) 2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My DataSource,
type=Resource, provider-id=Default JDBC Database)
2008-06-20 15:46:28,921 - INFO  - Configuring Service(id=My Unmanaged
DataSource, type=Resource, provider-id=Default JDBC Database)
2008-06-20 15:46:28,921 - INFO  - Configuring Service(id=jdbc/sbs,
type=Resource, provider-id=Default JDBC Database)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My JMS Resource
Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My JMS Connection
Factory, type=Resource, provider-id=Default JMS Connection Factory)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory, type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory) 2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My CMP Container,
type=Container, provider-id=Default CMP Container)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My BMP Container,
type=Container, provider-id=Default BMP Container)
2008-06-20 15:46:28,921 - INFO  - Configuring Service(id=My Stateful
Container, type=Container, provider-id=Default Stateful Container)
2008-06-20 15:46:28,921 - INFO  - Configuring Service(id=My Stateless
Container, type=Container, provider-id=Default Stateless Container)
2008-06-20 15:46:28,921 - INFO - Configuring Service(id=My MDB Container ,
type=Container, provider-id=Default MDB Container)
2008-06-20 15:46:28,937 - DEBUG - Using
openejb.deployments.classpath.include '.*/openejb-3.0/lib/.*'
2008-06-20 15:46:28,937 - DEBUG - Using
openejb.deployments.classpath.exclude '.*'
2008-06-20 15:46:28,937 - DEBUG - Using
openejb.deployments.classpath.filter.systemapps 'false'
2008-06-20 15:46:28,937 - DEBUG - Using
openejb.deployments.classpath.filter.descriptors 'false'
2008-06-20 15:46:28,937 - DEBUG - Using
openejb.deployments.classpath.require.descriptor 'true'
2008-06-20 15:46:29,046 - INFO  - Found EjbModule in classpath:
C:\install\openejb-3.0\lib\openejb-core-3.0.jar
2008-06-20 15:46:29,250 - DEBUG - URLs after filtering: 450
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-core-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/neethi-2.0.2.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/xml-resolver-1.2.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/geronimo-connector-2.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/commons-logging-1.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/commons-dbcp-all-1.3.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/commons-cli-1.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-server-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/activemq-ra-4.1.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/saaj-impl-1.3.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/javaee-api-5.0-1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-ejbd-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/xbean-finder-3.4-r636442.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-jee-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/xbean-naming-3.3.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/commons-collections-3.2.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/commons-lang-2.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/jtds-1.2.2.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/xbean-reflect-3.4-r636442.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/XmlSchema-1.3.2.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/backport-util- concurrent-2.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-client-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/serp-1.13.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-hsql-3.0.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/wsdl4j-1.6.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openjpa-1.0.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/cxf-bundle-2.0.4-incubator.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/swizzle-stream-1.0.1.jar!/
2008-06-20 15:46:29,250 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-webservices-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/log4j-1.2.12.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/jaxb-impl-2.0.5.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/howl-1.0.1-1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-loader-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/geronimo- javamail_1.4_mail-1.2.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-telnet-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-cxf-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/activeio-core-3.0.0- incubator.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/activemq-core-4.1.1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/slf4j-api-1.3.1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-javaagent-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/slf4j-jdk14-1.3.1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/wstx-asl-3.2.1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/geronimo-transaction-2.1.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/hsqldb-1.8.0.7.jar!/
2008-06-20 15:46:29,265 - DEBUG - Annotations path:
jar:file:/C:/install/openejb-3.0/lib/openejb-http-3.0.jar!/
2008-06-20 15:46:29,265 - DEBUG - Searched 45 classpath urls in 219
milliseconds.  Average 4 milliseconds per url.
2008-06-20 15:46:29,265 - DEBUG - Beginning load:
D:\workspaces\eclipse\openejb\AUserIssue\src
2008-06-20 15:46:29,359 - INFO  - Configuring app:
D:\workspaces\eclipse\openejb\AUserIssue\src
2008-06-20 15:46:29,437 - INFO  - Loaded Module:
D:\workspaces\eclipse\openejb\AUserIssue\src
2008-06-20 15:46:29,437 - DEBUG - Beginning load:
C:\install\openejb-3.0\lib\openejb-core-3.0.jar
2008-06-20 15:46:29,531 - INFO  - Configuring app:
C:\install\openejb-3.0\lib\openejb-core-3.0.jar
2008-06-20 15:46:31,375 - INFO  - Loaded Module:
C:\install\openejb-3.0\lib\openejb-core-3.0.jar
2008-06-20 15:46:31,375 - INFO - Creating ProxyFactory(id=Default JDK 1.3
ProxyFactory)
2008-06-20 15:46:31,421 - INFO - Creating TransactionManager(id=Default
Transaction Manager)
2008-06-20 15:46:31,625 - INFO  - Creating SecurityService(id=Default
Security Service)
2008-06-20 15:46:31,703 - INFO  - Creating Resource(id=My DataSource)
2008-06-20 15:46:31,734 - INFO  - Creating Resource(id=My Unmanaged
DataSource)
2008-06-20 15:46:31,750 - INFO  - Creating Resource(id=jdbc/sbs)
2008-06-20 15:46:31,750 - INFO  - Creating Resource(id=My JMS Resource
Adapter)
2008-06-20 15:46:31,812 - DEBUG - Starting ResourceAdapter(id=My JMS
Resource Adapter)
2008-06-20 15:46:32,359 - INFO - Creating Resource(id=My JMS Connection
Factory)
2008-06-20 15:46:32,359 - INFO  - Creating ConnectionManager for
Resource(id=My JMS Connection Factory)
2008-06-20 15:46:32,406 - INFO - Creating Container(id=My CMP Container) 2008-06-20 15:46:32,437 - INFO - Creating Container(id=My BMP Container)
2008-06-20 15:46:32,453 - INFO  - Creating Container(id=My Stateful
Container)
2008-06-20 15:46:32,484 - INFO  - Creating Container(id=My Stateless
Container)
2008-06-20 15:46:32,500 - INFO - Creating Container(id=My MDB Container )
2008-06-20 15:46:32,515 - INFO  - Assembling app:
D:\workspaces\eclipse\openejb\AUserIssue\src
2008-06-20 15:46:32,546 - DEBUG - Using openejb.jndiname.strategy.class
'org.apache.openejb.assembler.classic.JndiBuilder$TemplatedStrategy'
2008-06-20 15:46:32,546 - DEBUG - Using openejb.jndiname.format
'{deploymentId}{interfaceType.annotationName}'
2008-06-20 15:46:32,546 - INFO  - Deployed
Application(path=D:\workspaces\eclipse\openejb\AUserIssue\src)
2008-06-20 15:46:32,546 - INFO  - Assembling app:
C:\install\openejb-3.0\lib\openejb-core-3.0.jar
2008-06-20 15:46:32,703 - DEBUG - Using openejb.jndiname.strategy.class
'org.apache.openejb.assembler.classic.JndiBuilder$TemplatedStrategy'
2008-06-20 15:46:32,703 - DEBUG - Using openejb.jndiname.format
'{deploymentId}{interfaceType.openejbLegacyName}'
2008-06-20 15:46:32,750 - INFO  -
Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
2008-06-20 15:46:32,750 - INFO - Jndi(name=openejb/ DeployerBusinessRemote)
--> Ejb(deployment-id=openejb/Deployer)
2008-06-20 15:46:32,765 - INFO  - Jndi(name=MEJB) -->
Ejb(deployment-id=MEJB)
2008-06-20 15:46:32,765 - INFO  - Created
Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
2008-06-20 15:46:32,765 - INFO  - Created
Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My
Stateless Container)
2008-06-20 15:46:32,765 - INFO  - Created Ejb(deployment-id=MEJB,
ejb-name=MEJB, container=My Stateless Container)
2008-06-20 15:46:32,765 - INFO  - Deployed
Application(path=C:\install\openejb-3.0\lib\openejb-core-3.0.jar)
2008-06-20 15:46:32,765 - DEBUG - Containers        : 5
2008-06-20 15:46:32,765 - DEBUG - Type        Container ID
2008-06-20 15:46:32,765 - DEBUG -    MESSAGE     My MDB Container
2008-06-20 15:46:32,765 - DEBUG -    CMP ENTITY  My CMP Container
2008-06-20 15:46:32,765 - DEBUG - STATELESS My Stateless Container
2008-06-20 15:46:32,765 - DEBUG -    BMP ENTITY  My BMP Container
2008-06-20 15:46:32,765 - DEBUG -    STATEFUL    My Stateful Container
2008-06-20 15:46:32,765 - DEBUG - Deployments       : 3
2008-06-20 15:46:32,765 - DEBUG - Type        Deployment ID
2008-06-20 15:46:32,765 - DEBUG - STATELESS openejb/ ConfigurationInfo
2008-06-20 15:46:32,765 - DEBUG -    STATELESS   MEJB
2008-06-20 15:46:32,765 - DEBUG -    STATELESS   openejb/Deployer
2008-06-20 15:46:32,765 - DEBUG - SecurityService   :
org.apache.openejb.core.security.SecurityServiceImpl
2008-06-20 15:46:32,765 - DEBUG - TransactionManager:
org.apache.geronimo.transaction.manager.GeronimoTransactionManager
2008-06-20 15:46:32,765 - DEBUG - OpenEJB Container System ready.
2008-06-20 15:46:33,406 - INFO - [EMAIL PROTECTED]: [Thread[main, 5,main]]:
checkRunning(false) entered
2008-06-20 15:46:33,406 - INFO - [EMAIL PROTECTED]: [Thread[main, 5,main]]:
checkRunning(false) exited
2008-06-20 15:46:33,421 - INFO  - [EMAIL PROTECTED]: Initiating startup
sequence...
2008-06-20 15:46:33,437 - INFO - [EMAIL PROTECTED]: Server socket opened
successfully in 16 ms.
2008-06-20 15:46:33,937 - INFO - [EMAIL PROTECTED]: Database [index=0, id=0,
db=file:C:\install\openejb-3.0\data\hsqldb\hsqldb,
alias=\install\openejb-3.0\data\hsqldb\hsqldb] opened sucessfully in 500 ms.
2008-06-20 15:46:33,937 - INFO  - [EMAIL PROTECTED]: Startup sequence
completed in 516 ms.
2008-06-20 15:46:33,937 - INFO - [EMAIL PROTECTED]: 2008-06-20 15:46:33.937
HSQLDB server 1.8.0 is online
2008-06-20 15:46:33,937 - INFO  - [EMAIL PROTECTED]: To close normally,
connect and execute SHUTDOWN SQL
2008-06-20 15:46:33,937 - INFO - [EMAIL PROTECTED]: From command line, use
[Ctrl]+[C] to abort abruptly



--
Karan Singh Malhi

Reply via email to