Discussion:
Basic EJB sample not working if I don't start package name with "org"
Sudhakar Vankamamidi
2018-05-24 16:24:44 UTC
Permalink
Hi,

I am trying EJB basic sample given here
http://openejb.apache.org/hello-world.html
only difference is I have changed EJB package structure to not to start
with "org". Now after deployment tomEE is not recognizing the class as EJB
and I don't see following log

03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=HelloBeanRemote) --> Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=global/hello/HelloBean!org.acme.Hello) -->
Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=global/hello/HelloBean) --> Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.969 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.Assembler.startEjbs Created
Ejb(deployment-id=HelloBean, ejb-name=HelloBean, container=Default
Stateless Container)
03-Oct-2017 15:56:51.987 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.Assembler.startEjbs Started
Ejb(deployment-id=HelloBean, ejb-name=HelloBean, container=Default
Stateless Container)

I am using TomEE Plume 7.0.3

Please guide me to make this work.

Thanks in advance.
Sudhakar
Matthew Broadhead
2018-05-24 16:28:00 UTC
Permalink
did you clean your tomee?
Post by Sudhakar Vankamamidi
Hi,
I am trying EJB basic sample given here
http://openejb.apache.org/hello-world.html
only difference is I have changed EJB package structure to not to start
with "org". Now after deployment tomEE is not recognizing the class as EJB
and I don't see following log
03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=HelloBeanRemote) --> Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=global/hello/HelloBean!org.acme.Hello) -->
Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.945 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.JndiBuilder.bind
Jndi(name=global/hello/HelloBean) --> Ejb(deployment-id=HelloBean)
03-Oct-2017 15:56:51.969 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.Assembler.startEjbs Created
Ejb(deployment-id=HelloBean, ejb-name=HelloBean, container=Default
Stateless Container)
03-Oct-2017 15:56:51.987 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.openejb.assembler.classic.Assembler.startEjbs Started
Ejb(deployment-id=HelloBean, ejb-name=HelloBean, container=Default
Stateless Container)
I am using TomEE Plume 7.0.3
Please guide me to make this work.
Thanks in advance.
Sudhakar
sudhakarvm
2018-05-24 16:52:57 UTC
Permalink
You mean deleting from work folder and deleting from webapps. Yes I have done
it. I think it is something to do with class scanning.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-24 16:57:06 UTC
Permalink
We only filtrr known packages like com.sun, whats yours?
Post by sudhakarvm
You mean deleting from work folder and deleting from webapps. Yes I have done
it. I think it is something to do with class scanning.
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
sudhakarvm
2018-05-24 17:22:26 UTC
Permalink
It will be com.{company name} I am sorry I can't disclose company name. Can't
I use any name.

Thanks
Sudhakar



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-05-24 17:24:54 UTC
Permalink
This pattern is supported until you hit exclusions as always.
Openejb.classloader.forced-load can allow you to work it around but
normally it is not needed.
Post by sudhakarvm
It will be com.{company name} I am sorry I can't disclose company name. Can't
I use any name.
Thanks
Sudhakar
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
sudhakarvm
2018-05-25 04:57:53 UTC
Permalink
Thanks a lot. It helped me, otherwise I was planning to stick to just tomcat.

Thanks
Sudhakar



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Loading...