Re: RMI From TomEE to Jboss

2018-07-11 Thread Howard W. Smith, Jr.
On Tue, Jul 10, 2018 at 7:23 PM, Jonathan S. Fisher 
wrote:

>
> A better way would be to wrap your legacy EJBs with RESTful services
> so that way you're platform independent.
>

+1 I like this approach... even though I am running 2 separate TomEE's on
same machine, they communicate via RESTful services and have been working
really well; I'm sure the code I wrote helps as well.


Re: Tomcat security issues and tomee 1.7.x

2017-04-19 Thread Howard W. Smith, Jr.
Looking forward to (and have been waiting patiently for) TomEE+ 1.7.5
release, too. Thank you in advance!


Re: Recommended Java 8 settings

2016-07-28 Thread Howard W. Smith, Jr.
My responses below/inline,

On Thu, Jul 28, 2016 at 10:23 AM, Felipe Jaekel  wrote:

> I used to run TomEE 1.7.2 with java 7 and the following config:
> -Xms1G
> -Xmx3G (server has 4G)
> -XX:MaxPermSize=1G
> -XX:+UseTLAB
> -XX:+UseConcMarkSweepGC
> -XX:+CMSIncrementalMode
> -XX:+CMSClassUnloadingEnabled
>

I used the options similar to these above for years. With these settings
(and throughout the years), I have seen memory required-and-used between
500M and 4G, depending on certain database queries/operations executed
during runtime.


>
> I upgraded to Java 8 to use TomEE 7.0.x, so I decided to try different
> settings:
> -Xmx3G (server has 4G)
> -XX:+UseG1GC
> -XX:+UseStringDeduplication
>

Recently, I changed to these options above after seeing others speak about
this in ActiveMQ (or tomcat) user mail list, and I am impressed with what I
see whenever I check memory at runtime via Java Visual VM (via JMX). Now,
quite consistently, I see memory required-and-used <= 500M (sometimes 700M,
but not really over 700M).


Re: what omnifaces version use with tomee 1.7??

2016-01-05 Thread Howard W. Smith, Jr.
Hmmm,

so earlier you said,

I had problems with OmniFaces  2.x + TomEE 1.7.2

and

On Tue, Jan 5, 2016 at 5:47 AM, Felipe Jaekel  wrote:

> MyFaces 2.2.8, but the root of the problem was that OmniFaces 2.x requires
> CDI 1.1...
>

Would probably need to know more about your stack to determine why you have
issues and myself and others are not having issues with TomEE(plus) 1.7.2
and 1.7.3 and OmniFaces 2.x.

I usually unzip tomee *plus* 1.7.x ZIP file to my hard drive, including the
openwebbeans 1.2.7 JARs that are in the tomee-plus ZIP file, and replace
myfaces JARs with latest MyFaces 2.2.x JAR files, package latest OmniFaces
2.x JAR file in my WAR file, and drop WAR file in tomee/webapps folder.

This[1] says that OpenWebBeans 1.2.7 implements CDI 1.0, but internally is
already CDI 1.1, so I believe this is why OmniFaces 2.x [just] works with
TomEE-plus 1.7.x.

What version of OpenWebBeans are you using?

[1] http://openwebbeans.apache.org/download.html#owb-12x


Re: what omnifaces version use with tomee 1.7??

2016-01-04 Thread Howard W. Smith, Jr.
Mauro, the latest OmniFaces showcase should work with tomee 1.7.2.

if you look at,
https://github.com/omnifaces/showcase/releases

Then you will see that there are only 2 showcase versions available, 1.2
and 2.0. Showcase version != OmniFaces version (1.8 or 2.0).
On Jan 4, 2016 4:08 AM, "mauro2java2011"  wrote:

> HI Howard,
> i have understand to use ominfaces 1.8 with tomee 1.7.x and myfaces 2.1.x
>
> Now i would install the showcase of omnifaces locally for use the
> documentation and examples offline.
> But the sources are with omnifaces 2.2 that use jsf2,.2
>
> SO i you ask if i copy the sources into a web proiject with netbeans and i
> use tomee 1.7.2 for compile it work with the omnifaces jar 1.8.3?
>
> Or where i can get the showcase web application of omninfaces that work
> with
> 1.8.3 of omnifaces and tomee 1.7.2?
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/what-omnifaces-version-use-with-tomee-1-7-tp4677331p4677338.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>


Re: what omnifaces version use with tomee 1.7??

2016-01-04 Thread Howard W. Smith, Jr.
Interesting. I did not have any issues. I always deploy OmniFaces JAR
in/with my WAR file. Felipe, are you using MyFaces 2.2.x or 2.1.x?
On Jan 4, 2016 7:27 AM, "Felipe Jaekel" <fkjae...@gmail.com> wrote:

> I had problems with OmniFaces  2.x + TomEE 1.7.2
>
> https://issues.apache.org/jira/browse/TOMEE-1634
>
> Currently I'm using OmniFaces 1.11
>
> 2016-01-04 9:57 GMT-02:00 Howard W. Smith, Jr. <smithh032...@gmail.com>:
>
> > Mauro, the latest OmniFaces showcase should work with tomee 1.7.2.
> >
> > if you look at,
> > https://github.com/omnifaces/showcase/releases
> >
> > Then you will see that there are only 2 showcase versions available, 1.2
> > and 2.0. Showcase version != OmniFaces version (1.8 or 2.0).
> > On Jan 4, 2016 4:08 AM, "mauro2java2011" <mauro2java2...@gmail.com>
> wrote:
> >
> > > HI Howard,
> > > i have understand to use ominfaces 1.8 with tomee 1.7.x and myfaces
> 2.1.x
> > >
> > > Now i would install the showcase of omnifaces locally for use the
> > > documentation and examples offline.
> > > But the sources are with omnifaces 2.2 that use jsf2,.2
> > >
> > > SO i you ask if i copy the sources into a web proiject with netbeans
> and
> > i
> > > use tomee 1.7.2 for compile it work with the omnifaces jar 1.8.3?
> > >
> > > Or where i can get the showcase web application of omninfaces that work
> > > with
> > > 1.8.3 of omnifaces and tomee 1.7.2?
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/what-omnifaces-version-use-with-tomee-1-7-tp4677331p4677338.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
>


Re: what omnifaces version use with tomee 1.7??

2015-12-31 Thread Howard W. Smith, Jr.
Mauro, I use tomee+ 1.7.x with latest version of OmniFaces 2.x, and replace
tomee/lib/myfaces JAR files with latest MyFaces 2.2.x files, always.


Re: what omnifaces version use with tomee 1.7??

2015-12-31 Thread Howard W. Smith, Jr.
Try OmniFaces 1.8
On Dec 31, 2015 7:02 AM, "mauro2java2011"  wrote:

> But if i not change the jsf jars from version 2.1 at 2.2 i have to use 1.8?
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/what-omnifaces-version-use-with-tomee-1-7-tp4677331p4677336.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>


Re: Performance problems in tomee 7.0.0

2015-12-23 Thread Howard W. Smith, Jr.
Interesting discussion. I am eclipselink and PrimeFaces user, currently
using TomEE 1.7.3, and hope to use tomee 7.0.0 sometime in the future.
On Dec 23, 2015 9:05 AM, "Romain Manni-Bucau"  wrote:

> Yep issue is primefaces validator usage which is not compatible with bval
> caching - strictly speaking both are right even if primefaces usage is
> surprising (they use an internal validator that they create and recreate
> without any config change from the quick code i saw).
> Le 23 déc. 2015 15:00, "cocorossello"  a écrit :
>
> > 2.6.1
> >
> > But the problem is not only with eclipselink, it just becomes more
> evident
> > with it.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/Performance-problems-in-tomee-7-0-0-tp4677292p4677296.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>


Re: Performance problems in tomee 7.0.0

2015-12-23 Thread Howard W. Smith, Jr.
On Dec 23, 2015 6:57 AM, "cocorossello"  wrote:
>
> We are hitting performance problems with primefaces datatables with
> checkboxes in it listing eclipselink entities, 10 or 20 seconds to render
a
> page.
>

May I ask which version of eclipselink are you using with tomee 7.0.0?


Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 2, 2015 4:56 PM, "Romain Manni-Bucau"  wrote:
>
> it doesnt exit yet but staging repo is there
>
https://repository.apache.org/content/repositories/orgapachetomee-1071/org/apache/openejb/apache-tomee/1.7.3/
>
>

*404 - Repository with ID="orgapachetomee-1071" not found*

Repository with ID="orgapachetomee-1071" not found


Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 3, 2015 6:18 AM, "Violeta Georgieva"  wrote:
>
> smithh032772 wrote
> > On Dec 1, 2015 2:48 PM, "Violeta Georgieva" 
>
> > violetagg@
>
> >  wrote:
> >>
> >>
> >> I'm testing with TomEE 1.7.3
> >
> > Is TomEE 1.7.3 available via tomee downloads page or somewhere else?
>
> I tested with the staged binaries from the mail that called for 1.7.3
voting
>
>
>

Will have to look for that email, thanks.


Re: Resource and UseAppClassLoader question

2015-12-03 Thread Howard W. Smith, Jr.
On Dec 3, 2015 10:01 AM, "Howard W. Smith, Jr." <smithh032...@gmail.com>
wrote:
>
>
> On Dec 3, 2015 6:18 AM, "Violeta Georgieva" <violet...@apache.org> wrote:
> >
> > smithh032772 wrote
> > > On Dec 1, 2015 2:48 PM, "Violeta Georgieva" 
> >
> > > violetagg@
> >
> > >  wrote:
> > >>
> > >>
> > >> I'm testing with TomEE 1.7.3
> > >
> > > Is TomEE 1.7.3 available via tomee downloads page or somewhere else?
> >
> > I tested with the staged binaries from the mail that called for 1.7.3
voting
> >
> >
> >
>
> Will have to look for that email, thanks.

Found it.[1]

[1]
http://tomee-openejb.979440.n4.nabble.com/VOTE-staging-1071-tomee-1-7-3-td4676997.html


Re: Resource and UseAppClassLoader question

2015-12-02 Thread Howard W. Smith, Jr.
On Dec 1, 2015 2:48 PM, "Violeta Georgieva"  wrote:
>
>
> I'm testing with TomEE 1.7.3

Is TomEE 1.7.3 available via tomee downloads page or somewhere else?


Re: JCache using TomEE 7.0.0 example project

2015-11-23 Thread Howard W. Smith, Jr.
Thanks for sharing!


Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread Howard W. Smith, Jr.
Interesting thread (discussion, findings, etc...). Thanks to all.


Re: TomEE vs commercial offering: No need?

2015-10-24 Thread Howard W. Smith, Jr.
On Oct 24, 2015 7:09 AM, "Romain Manni-Bucau"  wrote:
>
> Hi Mikael
>
> Let s try to answer even if it looks like a spam: if you ask precise
> questions instead of asking us to do your work we can refine what we
> already said you if needed.

+1 Does look like spam.


Re: singleton initializing twice? (1.6.0-stable)

2015-09-28 Thread Howard W. Smith, Jr.
On Mon, Sep 28, 2015 at 3:55 PM, Romain Manni-Bucau 
wrote:

> got it but knowing 1.7.2 has the same issue helps to identify if we need to
> solve an unidentified issue or a fixed issue with potentially a workwround.
>
>
hmmm, i've been using tomee 1.7.2 (in production) ever since June 2015, and
I think I saw this behavior, too, recently (once or twice). Let me check my
log files and confirm.


Re: singleton initializing twice? (1.6.0-stable)

2015-09-28 Thread Howard W. Smith, Jr.
My apologies, I did not see that behavior.

On Mon, Sep 28, 2015 at 4:15 PM, Howard W. Smith, Jr. <
smithh032...@gmail.com> wrote:

>
>
> On Mon, Sep 28, 2015 at 3:55 PM, Romain Manni-Bucau <rmannibu...@gmail.com
> > wrote:
>
>> got it but knowing 1.7.2 has the same issue helps to identify if we need
>> to
>> solve an unidentified issue or a fixed issue with potentially a
>> workwround.
>>
>>
> hmmm, i've been using tomee 1.7.2 (in production) ever since June 2015,
> and I think I saw this behavior, too, recently (once or twice). Let me
> check my log files and confirm.
>
>
What I saw was my app attempting to send multiple emails via my JavaMail
POJO, invoked by some non-JMS code and immediately after via some JMS/MDB
code, initializing twice,

Sep 23, 2015 11:02:06 PM utils.mail.JavaMail initMailSession
INFO: JavaMail.initMailSession(): initializing DEFAULT instance of
mailSession
Sep 23, 2015 11:02:06 PM utils.mail.JavaMail initMailSession
INFO: JavaMail.initMailSession(): initializing DEFAULT instance of
mailSession

and then initialized,

Sep 23, 2015 11:02:06 PM utils.mail.JavaMail initMailSession
INFO: JavaMail.initMailSession(): initialized DEFAULT instance of
mailSession
Sep 23, 2015 11:02:06 PM utils.mail.JavaMail initMailSession
INFO: JavaMail.initMailSession(): initialized DEFAULT instance of
mailSession


Re: WebServlet match on root

2015-09-03 Thread Howard W. Smith, Jr.
On Thu, Sep 3, 2015 at 12:08 PM, tonywestonuk  wrote:

>
>   Its been a good day! :-D
>

Sounds like it's been a TomEE day!  :-D


Re: JSR-107, JCache

2015-08-18 Thread Howard W. Smith, Jr.
Steve,

On Tue, Aug 18, 2015 at 10:38 AM, Steve Goldsmith sgj...@gmail.com wrote:

 Are there any good examples? I'll promise to add it my test project on
 Github, so others can benefit as well.


I like how you share code for others to benefit, and I love TomEE (user
list) just as well!

I searched google for

jcache tutorial java

and found the following:

https://cloud.google.com/appengine/docs/java/memcache/usingjcache

https://dzone.com/articles/introduction-jcache-jsr-107

https://abhirockzz.wordpress.com/2015/02/09/sneak-peek-into-the-jcache-api-jsr-107/

hope that helps.


No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
When I had 1 or 2 web applications on 1 tomee instance (and default tomee
ActiveMQ configuration),

app1
- has MDBs, using ActiveMQ JMS
- JAX RS (web) client to execute REST service on app2

app2
- has MDBs, using ActiveMQ JMS
- REST service running, uses MDBs to execute business logic

This works great on 1 tomee instance, but when I create a 2nd tomee
instance for app2 (above), I am getting the exception below.

For tomee 2nd instance, I changed server shutdown port, connector port, and
add the following to tomee.xml:

tomee
Resource id=MyJmsResourceAdapter type=ActiveMQResourceAdapter
BrokerXmlConfig =  broker:(tcp://someHostName:61616)
ServerUrl   =  tcp://someHostName:61616
/Resource

Resource id=MyJmsConnectionFactory type=javax.jms.ConnectionFactory
ResourceAdapter = MyJmsResourceAdapter
/Resource

Container id=MyJmsMdbContainer ctype=MESSAGE
ResourceAdapter = MyJmsResourceAdapter
/Container
/tomee

as per

Internal ActiveMQ Broker
http://tomee.apache.org/jms-resources-and-mdb-container.html

app1 on tomee 1 starts and runs well

app2 on tomee 2 starts, but has the following exception:


Aug 05, 2015 5:22:38 PM
com.mcms.googleCalendar.GoogleCalendarUpdateQueueBean
updateGoogleCalendarViaSchedule
INFO: Error occurred while adding 07/20/2018 to the Google Calendar update
queue
javax.jms.JMSException: Object is not a primitive:
com.mcms.googleCalendar.GoogleCalendarEvent@715c993d
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)
at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1435)
at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1345)
at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1904)
at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:289)
at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:224)
at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
at
com.mcms.application.ApplicationMessageBean.updateGoogleCalendar(ApplicationMessageBean.java:150)
at
com.mcms.application.ApplicationMessageBean$$OwbNormalScopeProxy0.updateGoogleCalendar(com/mcms/application/ApplicationMessageBean.java)
at
com.mcms.application.ApplicationScopeBean.sendUpdateGoogleCalendarMsg(ApplicationScopeBean.java:217)
at
com.mcms.application.ApplicationScopeBean$$OwbNormalScopeProxy0.sendUpdateGoogleCalendarMsg(com/mcms/application/ApplicationScopeBean.java)
at
com.mcms.googleCalendar.GoogleCalendarUpdateQueueBean.updateGoogleCalendarViaSchedule(GoogleCalendarUpdateQueueBean.java:425)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
at
org.apache.openejb.monitoring.StatsInterceptor.AroundTimeout(StatsInterceptor.java:145)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
at
org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
at
org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
at
org.apache.openejb.core.timer.EjbTimerServiceImpl.ejbTimeout(EjbTimerServiceImpl.java:803)
at
org.apache.openejb.core.timer.EjbTimeoutJob.execute(EjbTimeoutJob.java:39)
at org.apache.openejb.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Object is not a primitive:
com.mcms.googleCalendar.GoogleCalendarEvent@715c993d
at
org.apache.activemq.util.MarshallingSupport.marshalPrimitive(MarshallingSupport.java:156)
at
org.apache.activemq.util.MarshallingSupport.marshalPrimitiveList(MarshallingSupport.java:107)
at
org.apache.activemq.util.MarshallingSupport.marshalPrimitive(MarshallingSupport.java:154)
at
org.apache.activemq.util.MarshallingSupport.marshalPrimitiveMap(MarshallingSupport.java:64)
at 

Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Below, is what is in my tomee.xml for tomee 2nd instance,

On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. smithh032...@gmail.com
 wrote:

 For tomee 2nd instance, I changed server shutdown port, connector port,
 and add the following to tomee.xml:


!--
 Internal ActiveMQ Broker
 http://tomee.apache.org/jms-resources-and-mdb-container.html
--
Resource id=MyJmsResourceAdapter type=ActiveMQResourceAdapter
  BrokerXmlConfig =  broker:(tcp://localhost:62616)
  ServerUrl   =  tcp://localhost:62616
/Resource

Resource id=MyJmsConnectionFactory type=javax.jms.ConnectionFactory
  ResourceAdapter = MyJmsResourceAdapter
/Resource

Container id=MyJmsMdbContainer ctype=MESSAGE
  ResourceAdapter = MyJmsResourceAdapter
/Container


Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Okay, I just recognized that after searching internet, but I still wonder
why the code below works when I have one tomee (activemq) instance. Prior
to today, GoogleCalendarEvent did not need to implement Serializable.

public void updateGoogleCalendar(ListGoogleCalendarEvent eventsToAdd)
throws Exception {
Message message = session.createMessage();
/*
 *
http://stackoverflow.com/questions/6904048/object-with-collection-containing-serializable-non-primitive-objects-cant-be-s
 */
message.setObjectProperty(ListGoogleCalendarEvent, eventsToAdd);
gCalProducer.send(message);
}


On Wed, Aug 5, 2015 at 6:52 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Surely cause not serialized
 Le 5 août 2015 14:40, Howard W. Smith, Jr. smithh032...@gmail.com a
 écrit :

  Below, is what is in my tomee.xml for tomee 2nd instance,
 
  On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. 
  smithh032...@gmail.com
   wrote:
 
   For tomee 2nd instance, I changed server shutdown port, connector port,
   and add the following to tomee.xml:
  
 
  !--
   Internal ActiveMQ Broker
   http://tomee.apache.org/jms-resources-and-mdb-container.html
  --
  Resource id=MyJmsResourceAdapter type=ActiveMQResourceAdapter
BrokerXmlConfig =  broker:(tcp://localhost:62616)
ServerUrl   =  tcp://localhost:62616
  /Resource
 
  Resource id=MyJmsConnectionFactory type=javax.jms.ConnectionFactory
ResourceAdapter = MyJmsResourceAdapter
  /Resource
 
  Container id=MyJmsMdbContainer ctype=MESSAGE
ResourceAdapter = MyJmsResourceAdapter
  /Container
 



Re: No exception until attempt to use ActiveMQ on 2 separate tomee instances

2015-08-05 Thread Howard W. Smith, Jr.
Interesting, okay.


On Wed, Aug 5, 2015 at 6:58 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Local transport  can skip serialization in some cases
 Le 5 août 2015 15:57, Howard W. Smith, Jr. smithh032...@gmail.com a
 écrit :

  Okay, I just recognized that after searching internet, but I still wonder
  why the code below works when I have one tomee (activemq) instance. Prior
  to today, GoogleCalendarEvent did not need to implement Serializable.
 
  public void updateGoogleCalendar(ListGoogleCalendarEvent
 eventsToAdd)
  throws Exception {
  Message message = session.createMessage();
  /*
   *
 
 
 http://stackoverflow.com/questions/6904048/object-with-collection-containing-serializable-non-primitive-objects-cant-be-s
   */
  message.setObjectProperty(ListGoogleCalendarEvent,
  eventsToAdd);
  gCalProducer.send(message);
  }
 
 
  On Wed, Aug 5, 2015 at 6:52 PM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
   Surely cause not serialized
   Le 5 août 2015 14:40, Howard W. Smith, Jr. smithh032...@gmail.com
 a
   écrit :
  
Below, is what is in my tomee.xml for tomee 2nd instance,
   
On Wed, Aug 5, 2015 at 5:37 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com
 wrote:
   
 For tomee 2nd instance, I changed server shutdown port, connector
  port,
 and add the following to tomee.xml:

   
!--
 Internal ActiveMQ Broker
 http://tomee.apache.org/jms-resources-and-mdb-container.html
--
Resource id=MyJmsResourceAdapter type=ActiveMQResourceAdapter
  BrokerXmlConfig =  broker:(tcp://localhost:62616)
  ServerUrl   =  tcp://localhost:62616
/Resource
   
Resource id=MyJmsConnectionFactory
  type=javax.jms.ConnectionFactory
  ResourceAdapter = MyJmsResourceAdapter
/Resource
   
Container id=MyJmsMdbContainer ctype=MESSAGE
  ResourceAdapter = MyJmsResourceAdapter
/Container
   
  
 



Re: netbeans annoyance

2015-06-11 Thread Howard W. Smith, Jr.
On Tue, Jun 2, 2015 at 3:09 PM, hwaastad he...@waastad.org wrote:

 I discovered that starting tomee 1.7.2 (plus) as a server in netbeans,
 netbeans is not too happy about the server=Apache TomEE config on the
 8080
 connector.
 So by removing this one startup is OK again.


can you please clarify this? what did you do? did you rename server name
from Apache TomEE to something else? or did you specify another port
instead of 8080?

I am experiencing this issue now, too, since I am using latest NetBeans and
TomEE+ 1.7.2.

Thanks,
Howard


Re: netbeans annoyance

2015-06-11 Thread Howard W. Smith, Jr.
On Thu, Jun 11, 2015 at 10:49 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:


 On Tue, Jun 2, 2015 at 3:09 PM, hwaastad he...@waastad.org wrote:

 I discovered that starting tomee 1.7.2 (plus) as a server in netbeans,
 netbeans is not too happy about the server=Apache TomEE config on the
 8080
 connector.
 So by removing this one startup is OK again.


 can you please clarify this? what did you do? did you rename server name
 from Apache TomEE to something else? or did you specify another port
 instead of 8080?

 I am experiencing this issue now, too, since I am using latest NetBeans
 and TomEE+ 1.7.2.

 Thanks,
 Howard


The fix[1] for me.

[1] http://stackoverflow.com/a/30788322/933054


Re: Stateless dead lock

2015-06-10 Thread Howard W. Smith, Jr.
On Wed, Jun 10, 2015 at 1:18 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Hi Matej

 looks like a database issue for me (stateless pool is waiting for the
 stateless trying to get the db connection to be released), hasnt the DB
 connection be lost or something like that?


what is the best way for Matej to improve that? tomcat jdbc pool settings?


Re: BUG ON APACHE TOMCAT 8, 7, AND TOMEE 1.7

2015-05-29 Thread Howard W. Smith, Jr.
2015-05-29 0:31 GMT-04:00 JESUS GEIDER GUERRA HERNANDEZ 
jgguer...@misena.edu.co:

 I create a Session Beans For Entity Classess, the message show up this:

 Cannot be generated for Java EE 6 sources without server with complete
  Java EE 6 Web Profile support (at least EJB Lite support).


I see that message too, since/when I use NetBeans (version 7.x, 8.x) with
TomEE+.

When I used NetBeans with Glassfish 3.1.x (years ago), I did not
see/experience that error.


Re: primefaces5-1.war not work

2015-03-23 Thread Howard W. Smith, Jr.
Felipe, he is trying to run the PrimeFaces 5.1 showcase WAR file in tomee.
See below.

Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.OpenEJBException: Unable to load servlet filter class:
org.primefaces.showcase.filter.CharacterEncodingFilter:
org.primefaces.showcase.filter.CharacterEncodingFilter
On Mar 23, 2015 7:51 AM, Felipe Jaekel fkjae...@gmail.com wrote:

 I pack PrimeFaces inside WEB-INF/lib, works fine with 1.7.1.

 2015-03-21 7:20 GMT-03:00 mauro2java2011 mauro2java2...@gmail.com:

  Hi all. i have tired to use the primefaces 5.1 war into tomee
  but it not working.
  i ahave removed the fiels for validation 1.,1 ( already rpesent the
  validation 1.o nto tomee).
  But i get error.
 
 
  .
 
  INFORMAZIONI: Manager: list: Listing contexts for virtual host
 'localhost'
  mar 21, 2015 11:26:10 AM org.apache.catalina.core.ApplicationContext log
  INFORMAZIONI: Manager: list: Listing contexts for virtual host
 'localhost'
  mar 21, 2015 11:26:15 AM org.apache.catalina.core.ApplicationContext log
  INFORMAZIONI: Manager: start: Starting web application '/showcase-5.1'
  mar 21, 2015 11:26:18 AM org.apache.catalina.core.ApplicationContext log
  GRAVE: FAIL - Application at context path /showcase-5.1 could not be
  started
  org.apache.catalina.LifecycleException: Failed to start component
 
 
 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/showcase-5.1]]
  at
  org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  at
 
 org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1291)
  at
  org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:390)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  at
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  at
 
 
 org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  at
 
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  at
  org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
  at
 
 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
  at
 
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  at
 
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
  at
 
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  at
 
 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
  at
 
 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
  at
 
 
 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
  at
 
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at
 
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at
 
 
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  at java.lang.Thread.run(Thread.java:744)
  Caused by: org.apache.tomee.catalina.TomEERuntimeException:
  org.apache.openejb.OpenEJBException: Unable to load servlet filter class:
  org.primefaces.showcase.filter.CharacterEncodingFilter:
  org.primefaces.showcase.filter.CharacterEncodingFilter
  at
 
 
 org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1257)
  at
 
 
 org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087)
  at
 
 
 org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
  at
 
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  at
 
 
 

Re: Tomee 1.7.1 compatible in Java 8

2015-02-19 Thread Howard W. Smith, Jr.
Agreed. Should not be too hard, since tomee has jodatime 1.6.2 dependency
for years now. Right?

Java 8 new Date time API = jodatime
 On Feb 19, 2015 1:24 PM, cchacin ccha...@gmail.com wrote:

 Also we need to make some hacks to use new Date  Time API.

 On Thu, Feb 19, 2015, 10:13 AM Romain Manni-Bucau [via TomEE  OpenEJB] 
 ml-node+s979440n4673801...@n4.nabble.com wrote:

  OpenJPA just tolerate java 8 bytecode but doesn't support new Java 8
  API so if you use them entity lifecycle can be broken. typically if
  you modify a collection using stream API instead of Collection API
  then the relationship will not get updated as exepected in the
  database. Rarely an issue in practise but abusing of JPA as domain
  objects with java 8 can lead to such issues.
 
 
  Romain Manni-Bucau
  @rmannibucau
  http://www.tomitribe.com
  http://rmannibucau.wordpress.com
  https://github.com/rmannibucau
 
 
  2015-02-19 19:08 GMT+01:00 Suzanne Genod [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=0:
 
   Hi,
  
   Would you please expand on what are TomE 1.7.1 limitations with JPA
   entities when running with Java 8?
  
   Thanks,
   Suz
  
   On Thu, Feb 19, 2015 at 5:59 PM, Romain Manni-Bucau [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=1
   wrote:
  
   Just a side note: it works while you don't abuse of it in JPA entities
   (it is only tolerated here)
  
  
   Romain Manni-Bucau
   @rmannibucau
   http://www.tomitribe.com
   http://rmannibucau.wordpress.com
   https://github.com/rmannibucau
  
  
   2015-02-19 17:54 GMT+01:00 Jean-Louis Monteiro [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=2:
Thx for the feedback Vincenzo.
   
Very cool to see users answering questions from other users. That's
  very
important.
   
and btw, you are right. All the bytecode processing has been updated
  to
support Java 8
   
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com
   
On Thu, Feb 19, 2015 at 5:40 PM, Vincenzo D'Amore [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=3
wrote:
   
Hi, yes, I'm actively using it with Java 8.
   
On Thu, Feb 19, 2015 at 5:26 PM, [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=4 [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=5
   
wrote:
   
 Hi all,

 Is Tomee 1.7.1 is compatible in Java 8?

 Thanks
 Kayal



 --
 View this message in context:

   
  
 
 http://tomee-openejb.979440.n4.nabble.com/Tomee-1-7-1-compatible-in-Java-8-tp4673794.html
 Sent from the TomEE Users mailing list archive at Nabble.com.

   
   
   
--
Vincenzo D'Amore
email: [hidden email]
  http:///user/SendEmail.jtp?type=nodenode=4673801i=6
skype: free.dev
mobile: +39 349 8513251
   
  
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://tomee-openejb.979440.n4.nabble.com/Tomee-1-7-1-compatible-in-Java-8-tp4673794p4673801.html
   To start a new topic under TomEE Users, email
  ml-node+s979440n979441...@n4.nabble.com
  To unsubscribe from TomEE Users, click here
  
 http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=979441code=Y2NoYWNpbkBnbWFpbC5jb218OTc5NDQxfDE2NzcwMDYzOTY=
 
  .
  NAML
  
 http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
 




 -
 Carlos Chacin
 http://github.com/cchacin
 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/Tomee-1-7-1-compatible-in-Java-8-tp4673794p4673802.html
 Sent from the TomEE Users mailing list archive at Nabble.com.


Re: Just curious, what parts of JEE is everyone using?

2015-02-08 Thread Howard W. Smith, Jr.
i'm doing the following:

On Sun, Feb 8, 2015 at 4:41 PM, Lars-Fredrik Smedberg itsme...@gmail.com
wrote:

 For us...

 EJB3 (Singleton, Stateless, MessageDriven mostly - Tx, @Asynchronous, EJB
 @Schedule)



 JMS (Active MQ bundled with TomEE++)



 CDI @ApplicationScoped, @RequestScoped, @SessionScoped, @ViewScoped



 JTA
 Bean Validation
 Servlets / Filters


JSF 2.2 (MyFaces)


Re: Eclipselink question

2015-01-22 Thread Howard W. Smith, Jr.
Collections work well when I check isEmpty(), but I'm not using that
notation. I'm still using eclipselink 2.3.2.
On Jan 22, 2015 1:04 PM, karl.kil...@gmail.com wrote:

 Hello! I think something is weird in eclipselink. I need to reproduce but
 if you do select item where supplier = selectedSupplier It is one select
 per item even if item only has a elementcollection with a few values...

 Seems any kind of collection is unusable. Thanks for your input
 Skickat från min iPhone

  22 jan 2015 kl. 14:20 skrev Andy Gumbrecht agumbre...@tomitribe.com:
 
  Hi Karl,
 
  Firstly Ouch, I know it is always tempting to use things like this
 but I would not use it unless there was a really really good reason to use
 it. It is not compatible with anything other than EL.
 
  If your child objects start to become so many that you are thinking of
 batching the load then opt for a 'fetch = FetchType.LAZY' instead. This
 means you would need to add an additional method to your service layer to
 get the child objects. This is basically how you'd do it using JDBC too.
 
  final Parent p = service.getParent(long id);
 
  //ListChild lc = p.getChildren(); -- Hundreds of children, but null
 list here if lazy loaded and detached...
 
  ListChild lc = service.getChildren(p);
 
  If you still want to batch then do it manually:
 
  ListChild lc = service.getChildren(p, start, end); //Pretty easy to
 write your retrieval own loop here... eg. while !lc.isEmpty()
 
  Andy.
 
  On 21/01/2015 18:17, karl.kil...@gmail.com wrote:
  Hello! Those of You who use eclipselink have been a real help before.
 How do you manage
 http://eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_batchfetch.htm
 
  You need this everywhere to get decent behavior but it cannot be
 configured globally :(
 
  Cheers
 
  Skickat från min iPhone
 
  --
   Andy Gumbrecht
   https://twitter.com/AndyGeeDe
   http://www.tomitribe.com
 



Re: Eclipselink question

2015-01-22 Thread Howard W. Smith, Jr.
On Thu, Jan 22, 2015 at 5:59 PM, Andy Gumbrecht agumbre...@tomitribe.com
wrote:

 What do your actual db tables and entities look like? Can you supply some
 details?

 Andy.


 On 22/01/2015 19:10, Howard W. Smith, Jr. wrote:

 Collections work well when I check isEmpty(), but I'm not using that
 notation. I'm still using eclipselink 2.3.2.


In my app,

ORDERS has Destinations, Origins, Customer, OrderCostDetails, etc...

destinations and origins have address
address has address lines, city, state, postal code (or zip code), country

So, what I was referring to, earlier, was the following comment in my
code[1] which is referenced when generating and doing processing related to
an 'annual report' of previous year data.

/*
 * Using isEmpty() on collections, instantiates the
object; see below
 * http://stackoverflow.com/a/12100628/933054[2]
 */

EclipseLink isEmpty() showed up in jvisualvm[3] when I was doing some
performance monitoring of JSF pages in my app that is used by enduser to
develop this annual report.

[1] https://gist.github.com/8169ee34793a4babb502.git
[2] http://stackoverflow.com/a/12100628/933054
[3] http://s3.postimg.org/4vhkyquv7/20150112_perf_edit_Rolling_Stock.png


Re: Tomee 1.7.2 Release Date

2014-12-04 Thread Howard W. Smith, Jr.
Also, will TomEE 1.7.2 include the latest Tomcat 7 release?

Tomcat 7.0.57 was released 2014-11-11.


On Thu, Dec 4, 2014 at 9:50 AM, ivan_nikitsenka nikitse...@gmail.com
wrote:

 Hello

 When Tomee 1.7.2 will be released?

 It will be great if you can provide approximate date or month

 Thanks,
 Ivan



 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/Tomee-1-7-2-Release-Date-tp4673133.html
 Sent from the TomEE Users mailing list archive at Nabble.com.



Re: testing with eclipselink.

2014-11-12 Thread Howard W. Smith, Jr.
On Wed, Nov 12, 2014 at 9:20 AM, Romain Manni-Bucau 
rmannibu...@tomitribe.com wrote:

 Site note: we have an openejb-core-eclipselink replacing openejb-core
 which comes with eclipselink out of the box


Was openejb-core-eclipselink added for Plume (mojarra/eclipselink)? what
version of eclipselink is it?


Re: CDI container performance

2014-10-21 Thread Howard W. Smith, Jr.
On Tue, Oct 21, 2014 at 6:00 AM, Romain Manni-Bucau 
rmannibu...@tomitribe.com wrote:

  OWB-1.5.0 is and/or will be bundled with TomEE+ 2.x 'and' future TomEE+
  1.7.x releases?
 

 It is in TomEE 2


Nice to hear, thanks Romain!  :)


Re: TomEE JavaMail problems

2014-10-19 Thread Howard W. Smith, Jr.
You did the right thing. For years, I have been posting to this list about
my issues with geronimo javamail (which is shipped/bundled with tomee+) and
the workaround is to remove-and-replace geronimo javamail JAR with (Oracle)
JavaMail JAR.

Now, my endusers don't like the few seconds wait/delay that it takes to
sendMail via (Oracle) JavaMail, so I am using MessageDrivenBean via Apache
MQ (bundled with TomEE+) to send the mail after user click Send Mail button
in webapp.


On Sat, Oct 18, 2014 at 9:59 PM, iluvtr ilu...@gmail.com wrote:

 I use a Tomcat 7, recently I considered to use TomEE in order to get full
 power of Java EE without all that plumbing that comes with plain Tomcat.

 The bad news came with email sending, because compared it was taking a
 long,
 long time compared with plain Tomcat with Oracle JavaMail.

 Sending email with TomEE: 116393 ms
 Sending email with Tomcat 7: 4557 ms

 I thought it was a bug and filed here
 https://issues.apache.org/jira/browse/TOMEE-1413, but TomEE team couldn't
 reproduce the failure and told me that maybe it was some network problem.

 I have disabled antivirus, firewall, everything, and tested in two
 different
 computers one in my home and other in my work, but still having that
 problem,
 This problem doesn't occur in plain Tomcat 7, I even tested the same code
 in
 Glassfish 3.1 and works pretty well there.

 Recently I replaced Geronimo JavaMail with Oracle JavaMail and all my
 problems went away, so I think that this problem has something to do with
 Geronimo implementation

 I added geronimo-osgi-locator-1.1.jar to TOMEE/lib
 I removed geronimo-javamail_1.4_mail-1.8.3.jar in TOMEE/lib
 I added mail.jar (Oracle JavaMail)


 What do you think: Is the change I made will affect badly TomEE ?
 Thank you so much





 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/TomEE-JavaMail-problems-tp4672429.html
 Sent from the TomEE Users mailing list archive at Nabble.com.



Re: TomEE JavaMail problems

2014-10-19 Thread Howard W. Smith, Jr.
On Sun, Oct 19, 2014 at 7:46 AM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 2014-10-19 13:44 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  You did the right thing. For years, I have been posting to this list
 about
  my issues with geronimo javamail (which is shipped/bundled with tomee+)
 and
  the workaround is to remove-and-replace geronimo javamail JAR with
 (Oracle)
  JavaMail JAR.
 

 Guys please help us to resolve it, we have many users (and us as well
 ;)) not having issues to we need you to dig into it.


I think I created a bug against geronimo javamail when I started using
TomEE. I don't know if that bug was resolved yet or not.


  Now, my endusers don't like the few seconds wait/delay that it takes to
  sendMail via (Oracle) JavaMail, so I am using MessageDrivenBean via
 Apache
  MQ (bundled with TomEE+) to send the mail after user click Send Mail
 button
  in webapp.
 

 @Asynchronous instead of a JMS MDB looks more appropriated ;)


you tell me that all the time, thanks for the reminder. BIG :D


Re: TomEE JavaMail problems

2014-10-19 Thread Howard W. Smith, Jr.
On Sun, Oct 19, 2014 at 7:56 AM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 2014-10-19 13:51 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  On Sun, Oct 19, 2014 at 7:46 AM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
  2014-10-19 13:44 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com
 :
   You did the right thing. For years, I have been posting to this list
  about
   my issues with geronimo javamail (which is shipped/bundled with
 tomee+)
  and
   the workaround is to remove-and-replace geronimo javamail JAR with
  (Oracle)
   JavaMail JAR.
  
 
  Guys please help us to resolve it, we have many users (and us as well
  ;)) not having issues to we need you to dig into it.
 
 
  I think I created a bug against geronimo javamail when I started using
  TomEE. I don't know if that bug was resolved yet or not.
 

 As said the bug is linked to your environment so we can't work on it
 if you don't help :(


https://issues.apache.org/jira/browse/GERONIMO-6421


Re: Apache TomEE 1.7.0 Release

2014-10-14 Thread Howard W. Smith, Jr.
Okay, here it is, Andy/Romain. tomee 1.7.0 release stated the following;
so, I did read/remember it wrong. :)

On Fri, Aug 15, 2014 at 8:58 AM, Andy Gumbrecht agumbre...@tomitribe.com
wrote:

 Core development will now move to the TomEE 2.x EE7 binaries, but the
 1.7.x branch will also be a active for the foreseeable future.


Re: Regarding @Inject vs @EJB for EJB

2014-10-03 Thread Howard W. Smith, Jr.
Yes, I remember when I became TomEE user, I think Romain advised me that I
can use @Inject or @EJB. I decided to only use @EJB for EJBs and @Inject
for @SessionScoped, @ApplicationScoped, @RequestScoped beans.


On Fri, Oct 3, 2014 at 10:49 AM, karl.kil...@gmail.com wrote:

 Hi,
 I am not sure about that Alex. I use @Inject only and Stateless and stuff
 is  working fine

 Skickat från min iPhone

  3 okt 2014 kl. 15:30 skrev Alex Soto asot...@gmail.com:
 
  Well I don't know exactly how EJB and CDI is managed internally by TomEE.
  But using @Inject whatever the class is will mean that the lifecycle of
  that instance will be managed by CDI container. On the other side if you
  use @EJB the bean will be managed by EJB container, and this means EJB
  lifecycle, and of course that your bean wil be transactional and you will
  be able to apply security concerns.
 
  Note that @Inject will make your bean be treated as POJO meanwhile @EJB
  will mean that your bean will be treated as Enterprise Java Bean.
 
  As I said I am not 100% sure but I think this is how it works.
 
  2014-10-03 14:19 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com:
 
  Hi!
 
  I'm trying to understand how I can use @Inject to inject EJBs.
 
  1. If I want to inject an EJB that is packaged in the WAR together with
 the
  code trying to inject it i assume I can use @Inject, correct?
  2. As 1 but the EJB is packaged in a separate ejb-jar. I assume I can
 still
  use @Inject correct?
  3. If the EJB is packaged in another WAR inside the same EAR or in
 another
  EAR I need to use @EJB correct?
  4. In case 3 how do I adress the EJB? Where can I read more about the
  naming standard?
 
  Regards
  LF
 
  --
  Med vänlig hälsning / Best regards
 
  Lars-Fredrik Smedberg
 
  STATEMENT OF CONFIDENTIALITY:
  The information contained in this electronic message and any
  attachments to this message are intended for the exclusive use of the
  address(es) and may contain confidential or privileged information. If
  you are not the intended recipient, please notify Lars-Fredrik Smedberg
  immediately at itsme...@gmail.com, and destroy all copies of this
  message and any attachments.
 
 
 
 
  --
  +--+
   Alex Soto Bueno - Computer Engineer
   www.lordofthejars.com
  +--+



Re: Apache TomEE 1.7.1 Released!

2014-09-17 Thread Howard W. Smith, Jr.
Andy/Romain,

is the following still required with this TomEE 1.7.1 release (which was a
bug/regression introduced in the tomEE 1.7.0 release)?


TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError:
org/apache/geronimo/osgi/locator/ProviderLocator

On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau rmannibu...@gmail.com
 wrote:

 Just replace geronimo javamail by

 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
 and maybe
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
 + mail.jar you want





On Wed, Sep 17, 2014 at 11:29 AM, Andy Gumbrecht agumbre...@tomitribe.com
wrote:

 Hi everyone,

 Pushing this out on the mailing lists to make sure everyone gets the
 message. Please promote by Tweet, Google+, Facebook and any other social
 media you use. In fact, please get back to me with suggestions on any other
 promotion channels you think we should be using to reach out on?

 After the huge buzz getting version 1.7.0 off the press it is time to get
 back to the day to day. As promised we are committed to providing the best
 for our community, and so without further a do here is TomEE 1.7.1 - This
 is a maintenance release that fixes some minor issues and a few tweaks (We
 understand it is not so minor if you are waiting for it, so thanks for your
 patience). This version is still shipped upon Apache Tomcat 7.0.55

 Please note that the TomEE 1.7.1 drop in WAR file will not work on Apache
 Tomcat 8. If you are interested in a Tomcat 8.x version then please feel
 free to check out and contribute to the developer branch 
 http://tomee.apache.org/contribute.html - We are always interested in
 any help from the community that we can get.

 The Apache TomEE 1.7.1 release files can be downloaded from here:

 http://tomee.apache.org/downloads.html

 Note: Issue TOMEE-1339 https://issues.apache.org/jira/browse/TOMEE-1339
 introduced a default (but configurable) check for a static /index.html/
 file when an empty JAX-RS resource URL is specified by a client. You can
 use this file to return a descriptive response to the client for example.
 Make sure that this optional file does not contain sensitive information
 when made available. Currently it is not a JSP and it is not parsed in any
 way by the Servlet container - This may change in the next version.

 Simply update your existing Maven JavaEE-API, OpenEJB and or TomEE pom.xml
 entries to point to the latest versions.

 Andy.

 --
   Andy Gumbrecht
   https://twitter.com/AndyGeeDe
   http://www.tomitribe.com




Re: TomEE 1.6.0 + MyFaces 2.2.0 + javax.faces.view.ViewScoped

2014-09-04 Thread Howard W. Smith, Jr.
Tomee 1.7 comes bundled with MyFaces 2.1.5 in tomee/lib. I usually replace
those jars with MyFaces 2.2 jars. Are you doing the same? Do you have
MyFaces in ear and tomee/lib?
 On Sep 4, 2014 10:31 AM, José Luis Cetina maxtorz...@gmail.com wrote:

 @Romain any suggestions?


 2014-09-03 23:59 GMT-05:00 Romain Manni-Bucau rmannibu...@gmail.com:

  Surely right if mf is in the ear and not the war but not a bug neither
  Le 3 sept. 2014 22:16, José Luis Cetina maxtorz...@gmail.com a
 écrit :
 
   This was the Last response from Leonardo:
  
   Hi
  
   It looks like something not directly related to MyFaces, it is like if
   the classpath is scanned twice, or like the bean is subscribed twice.
   I suppose it is a bug in OWB or in TomEE. Maybe you should report it
   in:
  
   https://issues.apache.org/jira/browse/TOMEE
  
   regards,
  
   Leonardo Uribe
  
   2014/1/15 José Luis Cetina maxtorz...@gmail.com:
El 03/09/2014 15:55, Howard W. Smith, Jr. smithh032...@gmail.com
   escribió:
  
Does Leonardo follow this list when people discuss MyFaces (2.2)? I
  think
Mark Struberg monitors this list when MyFaces is discussed here.
   
José, it will definitely be good to post this issue on the myfaces
 user
list.
   
   
   
   
On Wed, Sep 3, 2014 at 4:50 PM, Romain Manni-Bucau 
   rmannibu...@gmail.com
wrote:
   
 think so but more a MF issue this time I think


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-09-03 22:27 GMT+02:00 José Luis Cetina maxtorz...@gmail.com
 :
  Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS,
  finally i remove all CODI sttuf from my webapp, i want to use
  myfaces
 2.2.4
  because i want to use the @javax.faces.view.ViewScoped (i use the
 omnifaces
  viewscoped) and the f:viewAction.
 
  But again im getting
 javax.enterprise.inject.AmbiguousResolutionException:
  Ambiguous resolution exception that i reported a few months ago,
 apparently
  myfaces 2.2.4 is not working with ears in tomee 1.7.0
 
 
 
  2014-01-15 21:54 GMT-06:00 Howard W. Smith, Jr. 
smithh032...@gmail.com
 :
 
  Is it working for you, now?
  On Jan 15, 2014 6:00 PM, José Luis Cetina 
 maxtorz...@gmail.com
  
 wrote:
 
   I will try right now
  
  
   2014/1/15 Romain Manni-Bucau rmannibu...@gmail.com
  
Hi
   
Fo you get it on trunk as well?
   
Le mercredi 15 janvier 2014, José Luis Cetina 
maxtorz...@gmail.com
 a
écrit :
 Hi. I use TomEE 1.6.0 Final release with myfaces 2.1.13
 and
   jdk
 1.7
   with
 this i was using the org.omnifaces.cdi.ViewScoped
 annotation
with
 any
 problem, with the new release of myfaces 2.2.0 i decide to
change
 from org.omnifaces.cdi.ViewScoped to
   javax.faces.view.ViewScoped
 then
   im
 gettin this AmbiguousResolutionException.


 This error only happend in Linux environment, if i run the
   same
  project
in
 Windows this error never appears.


 I removed my faces 2.1.13 jars (api and imp) from tomee
 lib
   and
 add
myfaces
 api and impl 2.2.0


 What could be wrong?

 Log:

 javax.enterprise.inject.AmbiguousResolutionException:
   Ambiguous
resolution
 found beans:
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API

   
   
  
 

   
  
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],

  

  
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from
   
   
  
 

   
  
 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API

   
   
  
 

   
  
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],

  

  
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from
   
   
  
 

   
  
 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class

   
   
  
 

   
  
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)

   
   
  
 

   
  
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException

Re: Problem with NoClassDefFoundError: CometProcessor

2014-09-04 Thread Howard W. Smith, Jr.
Felipe, can you please share why you are using tomee + atmosphere runtime
native + (tomcat7 native) comet?

does your app require comet, because some of your enduser browsers require
comet and do not support websocket?

tomee/tomcat7 + atmosphere runtime + websocket works great



On Thu, Sep 4, 2014 at 1:27 PM, Felipe Jaekel fkjae...@gmail.com wrote:

 Hi,

 I'm trying to run an existing application in TomEE plus 1.7.0. It uses
 atmosphere runtime native 2.1.8.

 Unless I copy atmosphere JARs to TomEE lib folder, I get
 a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.

 The same application run fine in a regular Tomcat 7.0.55 packing atmosphere
 JARs in WEB-INF/lib(compat jars pulled by maven).

 Any ideas?

 Thanks



Re: Does anyone uses atmosphere-runtime in production?

2014-09-03 Thread Howard W. Smith, Jr.
I use it, since I am using PrimeFaces Push in my web app.

what problems are you having? how are you deploying and/or packaging
atmosphere-runtime?



On Wed, Sep 3, 2014 at 3:16 PM, Felipe Jaekel fkjae...@gmail.com wrote:

 Hi,

 Does anyone uses atmosphere-runtime in production with TomEE plus 1.7.0? I
 had some problems when I tried it in a regular Tomcat 7 some time ago.

 Thanks



Re: TomEE 1.6.0 + MyFaces 2.2.0 + javax.faces.view.ViewScoped

2014-09-03 Thread Howard W. Smith, Jr.
Does Leonardo follow this list when people discuss MyFaces (2.2)? I think
Mark Struberg monitors this list when MyFaces is discussed here.

José, it will definitely be good to post this issue on the myfaces user
list.




On Wed, Sep 3, 2014 at 4:50 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 think so but more a MF issue this time I think


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-09-03 22:27 GMT+02:00 José Luis Cetina maxtorz...@gmail.com:
  Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS,
  finally i remove all CODI sttuf from my webapp, i want to use myfaces
 2.2.4
  because i want to use the @javax.faces.view.ViewScoped (i use the
 omnifaces
  viewscoped) and the f:viewAction.
 
  But again im getting
 javax.enterprise.inject.AmbiguousResolutionException:
  Ambiguous resolution exception that i reported a few months ago,
 apparently
  myfaces 2.2.4 is not working with ears in tomee 1.7.0
 
 
 
  2014-01-15 21:54 GMT-06:00 Howard W. Smith, Jr. smithh032...@gmail.com
 :
 
  Is it working for you, now?
  On Jan 15, 2014 6:00 PM, José Luis Cetina maxtorz...@gmail.com
 wrote:
 
   I will try right now
  
  
   2014/1/15 Romain Manni-Bucau rmannibu...@gmail.com
  
Hi
   
Fo you get it on trunk as well?
   
Le mercredi 15 janvier 2014, José Luis Cetina maxtorz...@gmail.com
 a
écrit :
 Hi. I use TomEE 1.6.0 Final release with myfaces 2.1.13 and jdk
 1.7
   with
 this i was using the org.omnifaces.cdi.ViewScoped annotation with
 any
 problem, with the new release of myfaces 2.2.0 i decide to change
 from org.omnifaces.cdi.ViewScoped to javax.faces.view.ViewScoped
 then
   im
 gettin this AmbiguousResolutionException.


 This error only happend in Linux environment, if i run the same
  project
in
 Windows this error never appears.


 I removed my faces 2.1.13 jars (api and imp) from tomee lib and
 add
myfaces
 api and impl 2.2.0


 What could be wrong?

 Log:

 javax.enterprise.inject.AmbiguousResolutionException: Ambiguous
resolution
 found beans:
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API

   
   
  
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],

  
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from
   
   
  
 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API

   
   
  
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],

  
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from
   
   
  
 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class

   
   
  
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)

   
   
  
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:94)

   
   
  
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:71)

   
   
  
 
 org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:699)

   
   
  
 
 org.apache.webbeans.container.BeanManagerImpl.resolve(BeanManagerImpl.java:925)

   
   
  
 
 org.apache.webbeans.container.InjectableBeanManager.resolve(InjectableBeanManager.java:201)

   
   
  
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:413)

   
   
  
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:144)

   
   
  
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.getViewScopeBeanHolder(CDIManagedBeanHandlerImpl.java:64)

   
   
  
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.generateViewScopeId(CDIManagedBeanHandlerImpl.java:92)

   
   
  
 
 org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76)

   
 
 org.apache.myfaces.view.ViewScopeProxyMap.size(ViewScopeProxyMap.java:89)

   javax.faces.component.UIViewRoot.saveState(UIViewRoot.java:1498)

   
   
  
 
 org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:846)

   
   
  
 
 org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:351)

   
   
  
 
 org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:470)

   
   
  
 
 org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301

Re: Upgrade myfaces version in Tomee 1.7.0

2014-08-29 Thread Howard W. Smith, Jr.
Also, you may want the non-PLUME release of TomEE(+) 1.7.0, and replace
myfaces 2.1.15 JARs with myfaces 2.2.4 (api/impl) JARs.

I think TomEE PLUME release may have config + jars to make it work
specifically for Mojarra users. Of course, non-PLUME release will not have
that config + jars. :)



On Thu, Aug 28, 2014 at 5:29 PM, Felipe Jaekel fkjae...@gmail.com wrote:

 TomEE works fine with MyFaces 2.2, just replace the 2.1 jar with it.

 One observation is that in my case when I changed from Mojarra 2.1 to
 MyFaces 2.1 I had to do some adjustments in my applications, and some more
 adjustments when I changed from MyFaces 2.1 to 2.2, so I would recommend
 you to test your whole application with MyFaces before deploying it in
 production.


 2014-08-28 17:53 GMT-03:00 cocorossello cocorosse...@gmail.com:

  Hi,
 
  I'm moving from glassfish 4.1 to tomEE 1.7.0. I started with PLUME for an
  easier start, but now I want to use myfaces instead of mojarra (I've seen
  some performance problems that might be my fault, but it improves a lot
  with
  myfaces).
 
  My question is if it's safe to just upgrade myfaces to last version
 (2.2.4)
  or if I should stick with 2.1.x
 
  Thank you.
 
 
 
  --
  View this message in context:
 
 http://tomee-openejb.979440.n4.nabble.com/Upgrade-myfaces-version-in-Tomee-1-7-0-tp4671458.html
  Sent from the TomEE Users mailing list archive at Nabble.com.
 



Re: Apache TomEE web server does not allow generation of Primefaces pages from Entity Classes

2014-08-27 Thread Howard W. Smith, Jr.
Kay, atmosphere library had a fix for detecting tomcat and tomee versions.
Romain may remember that discussion. Add atmosphere runtime dependency to
your app, start tomee and look for tomee tomcat version in a one line
string in atmosphere log lines in log file.
On Aug 27, 2014 5:06 AM, Kay Wrobel kay.wro...@gmx.net wrote:

 Thanks, Romain.

 Kay

 On 08/27/2014 04:00 AM, Romain Manni-Bucau wrote:

 FYI informations are in maven properties in jars so it is surely an
 easier way to support coming version.




 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-08-27 10:53 GMT+02:00 Kay Wrobel kay.wro...@gmx.net:

 Hi.

 I am the author of the PrimeFaces CRUD Generator dedicated plugin (a.k.a.
 nbpfcrudgen, not the one that's built into NetBeans since 8 but the one
 I'm
 hosting on SourceForge) and have been asked this question recently on
 Facebook. The problem is with NetBeans 8 and how it detects a proper
 TomEE
 version. Unfortunately, the team has hard-coded version strings in their
 source. They are looking for the tomee-common-x.x.x.jar and make a
 determination from that version. But they only test for 1.5.x and 1.6.x,
 not
 1.7.x. I have filed a bug report with NetBeans here:
 https://netbeans.org/bugzilla/show_bug.cgi?id=246523

 As a workaround, and I know the TomEE team discourages this, you could
 rename the tomee-common-1.7.0.jar to tomee-common-1.6.0.jar and NetBeans
 will detect it properly. TomEE will not fail to start up in my
 experience.
 NetBeans has not yet acknowledged the bug report and no one is assigned
 to
 it.

 Try renaming that file and see what your experience is with it.

 Kay


 On 08/27/2014 03:43 AM, User57 wrote:

 I am trying to generate PrimeFaces pages from Entity classes for a Java
 EE
 web project. My web server is Apache TomEE 1.7 and I'm using Netbeans 8
 as
 an IDE.

 When I run the wizard to generate the pages I get this error Cannot be
 generated for Java EE 6 sources without server with complete  Java EE 6
 Web
 Profile support (at least EJB Lite support).

 Netbeans 8 supports TomEE and posts about this error say that it should
 be
 fixed with the release of the 8th version of Netbeans.

 What should I do to fix this problem ?



 --
 View this message in context:
 http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-
 web-server-does-not-allow-generation-of-Primefaces-
 pages-from-Entity-Classes-tp4671397.html
 Sent from the TomEE Users mailing list archive at Nabble.com.






Re: Best way to upgrade?

2014-08-27 Thread Howard W. Smith, Jr.
-- Forwarded message --
From: Romain Manni-Bucau rmannibu...@gmail.com
Date: Fri, Aug 15, 2014 at 1:46 PM
Subject: Re: TomEE 1.7.0 Release: xbean error caused by
NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator
To: users@tomee.apache.org users@tomee.apache.org


Just replace geronimo javamail by
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
and maybe
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
+ mail.jar you want


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


On Wed, Aug 27, 2014 at 11:45 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 Can you search google for

 tomee 1.7 Geronimo

 I initiated a discussion here on this list about it. Romain provided URL
 to download a jar to fix the issue.
  On Aug 27, 2014 10:48 AM, Felipe Jaekel fkjae...@gmail.com wrote:

 Thanks, I'll do that.

 How do you remove Geronimo JavaMail? Tried it in 1.7.0 plus to solve some
 issues and the server don't start anymore:

 GRAVE: FATAL ERROR: Unknown error in Assembler.  Please send the following
 stack trace and this message to us...@openejb.apache.org :
  org.apache.xbean.recipe.ConstructionException: Error invoking
 constructor:
 public org.apache.tomee.catalina.TomcatSecurityService()
 at

 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:968)
  at
 org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
  at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
  at

 org.apache.openejb.assembler.classic.Assembler.createSecurityService(Assembler.java:2517)
 at

 org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:498)
  at
 org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
 at org.apache.openejb.OpenEJB$Instance.init(OpenEJB.java:150)
  at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
 at
 org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
  at
 org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
 at

 org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
  at

 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at

 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at

 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/geronimo/osgi/locator/ProviderLocator
 at

 javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:89)
  at java.security.AccessController.doPrivileged(Native Method)
 at

 javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:80)
  at

 org.apache.openejb.core.security.AbstractSecurityService.installJacc(AbstractSecurityService.java:314)
 at

 org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:77)
  at

 org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:71)
 at

 org.apache.tomee.catalina.TomcatSecurityService.init(TomcatSecurityService.java:51)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at

 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at

 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  at

 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
 ... 24 more
 Caused by: java.lang.ClassNotFoundException:
 org.apache.geronimo.osgi.locator.ProviderLocator
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass

Re: Best way to upgrade?

2014-08-22 Thread Howard W. Smith, Jr.
Felipe, how often is your app(s) impacted by upgrading to latest version of
tomcat7?

if your app is never impacted by newer/newest version of tomcat7, 'and'
since you have already migrated to TomEE+ 1.6.0.2, I don't think your app
will be impacted when you migrate from TomEE+ 1.6.0.2 to 1.7.0.



On Fri, Aug 22, 2014 at 10:37 AM, Felipe Jaekel fkjae...@gmail.com wrote:

 In Tomcat I used to check the file differences here
 http://tomcat.apache.org/migration-7.html#Upgrading_7.0.x and override
 the JAR files.

 I recently started to use TomEE Plus 1.6.0.2, and now I'd like to upgrade
 it to 1.7.0.

 What would be the best way to do it?

 Thanks



Re: tomee+hibernate+java8 possible?

2014-08-21 Thread Howard W. Smith, Jr.
My response may be inappropriate but I have been using

- tomee+ 1.5.1  + eclipselink 2.3.2 + apache derby 10.x + JDK7

- tomee+ 1.6.x  + eclipselink 2.3.2 + apache derby 10.x + JDK7

and now

- tomee+ 1.7.0  + eclipselink 2.3.2 + apache derby 10.x + JDK8

and the stack is working great, and I'm loving it!






On Thu, Aug 21, 2014 at 8:46 AM, Emmanuel Touzery 
emmanuel.touz...@lecip-its.com wrote:

 Hello,

  thank you. Right now we think that hibernate 4.2.x ought to work with
 java8 so we'll try that setup first. But we'll remember this in case we
 find out that's not the case.

  Regards,

 Emmanuel


 On 18/08/14 13:50, Romain Manni-Bucau wrote:

 Hi

 If you add jpa 2.1 api replacing javee api jar by geronimo jar (javee api
 is just a shade of geronimos ones) it should work
 Le 18 août 2014 10:46, Emmanuel Touzery emmanuel.touz...@lecip-its.com
 
 a écrit :

  Hello,

  we are using tomee 1.6 with hibernate 4.2. Now that 1.7 is out, we
 are
 interested to migrate to it, and start using the new java8 features. We
 are
 not sure which hibernate version introduced support for java8 (it turns
 out
 extremely difficult to come to that information...), so we planned to
 move
 to the latest hibernate 4.3 version, however we found this:
 http://stackoverflow.com/a/15771969/516188

  There it's written /However, Hibernate 4.3+ (JPA 2.1) is not
 supported by TomEE, because it's Java EE 7./. I wonder, is that true?
 That
 we can't use hibernate 4.3+ with tomee 1.x? We definitely don't want to
 use
 JEE7 features until all is ready. We are looking for a supported
 configuration.

  If that is true, does anyone know whether that prevents us from
 using
 tomee 1.x+hibernate+java8? Or maybe hibernate 4.2.x is enough for that?
 (yes, this last question I guess I should rather ask in a hibernate
 forum,
 but I can try asking here just in case someone happens to know)

  Regards,

 Emmanuel





Re: tomee+hibernate+java8 possible?

2014-08-21 Thread Howard W. Smith, Jr.
Good question. Tried to, but ran into some migration issues, known bugs
etc. Let's not discuss that here. Don't want to hijack this thread, and
it's not a requirement for me to upgrade yet. :-)
On Aug 21, 2014 11:58 AM, Karl Kildén karl.kil...@gmail.com wrote:

 Howard, very interesting thanks. When do you plan to upgrade eclipselink?
 ;)

 TomEE 1.7 seems really awesome.


 On 21 August 2014 17:03, helio frota 00h...@gmail.com wrote:

  - tomee+ 1.7.0  + eclipselink 2.3.2 + apache derby 10.x + JDK8
 
  Awesome !
 
 
 
 
  On Thu, Aug 21, 2014 at 11:00 AM, Howard W. Smith, Jr. 
  smithh032...@gmail.com wrote:
 
   My response may be inappropriate but I have been using
  
   - tomee+ 1.5.1  + eclipselink 2.3.2 + apache derby 10.x + JDK7
  
   - tomee+ 1.6.x  + eclipselink 2.3.2 + apache derby 10.x + JDK7
  
   and now
  
   - tomee+ 1.7.0  + eclipselink 2.3.2 + apache derby 10.x + JDK8
  
   and the stack is working great, and I'm loving it!
  
  
  
  
  
  
   On Thu, Aug 21, 2014 at 8:46 AM, Emmanuel Touzery 
   emmanuel.touz...@lecip-its.com wrote:
  
Hello,
   
 thank you. Right now we think that hibernate 4.2.x ought to work
 with
java8 so we'll try that setup first. But we'll remember this in case
 we
find out that's not the case.
   
 Regards,
   
Emmanuel
   
   
On 18/08/14 13:50, Romain Manni-Bucau wrote:
   
Hi
   
If you add jpa 2.1 api replacing javee api jar by geronimo jar
 (javee
   api
is just a shade of geronimos ones) it should work
Le 18 août 2014 10:46, Emmanuel Touzery 
   emmanuel.touz...@lecip-its.com

a écrit :
   
 Hello,
   
 we are using tomee 1.6 with hibernate 4.2. Now that 1.7 is
 out,
  we
are
interested to migrate to it, and start using the new java8
 features.
  We
are
not sure which hibernate version introduced support for java8 (it
  turns
out
extremely difficult to come to that information...), so we planned
 to
move
to the latest hibernate 4.3 version, however we found this:
http://stackoverflow.com/a/15771969/516188
   
 There it's written /However, Hibernate 4.3+ (JPA 2.1) is not
supported by TomEE, because it's Java EE 7./. I wonder, is that
  true?
That
we can't use hibernate 4.3+ with tomee 1.x? We definitely don't
 want
  to
use
JEE7 features until all is ready. We are looking for a supported
configuration.
   
 If that is true, does anyone know whether that prevents us
 from
using
tomee 1.x+hibernate+java8? Or maybe hibernate 4.2.x is enough for
  that?
(yes, this last question I guess I should rather ask in a hibernate
forum,
but I can try asking here just in case someone happens to know)
   
 Regards,
   
Emmanuel
   
   
   
  
 



Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Howard W. Smith, Jr.
Romain is 'always' fast! :D

On Mon, Aug 18, 2014 at 2:33 PM, Bjorn Danielsson 
bjorn-apa...@lists.cuspycode.com wrote:

 Wow! That was fast ;-)


Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Howard W. Smith, Jr.
Is this (openejb.eclipselink.jmx=false) added as part of the fix, or
is openejb.eclipselink.jmx=false available in tomee 7.0 final release,
already?


On Mon, Aug 18, 2014 at 2:36 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 you can also disable it setting openejb.eclipselink.jmx=false


Re: Switching to Eclipselink in TomEE plus?

2014-08-18 Thread Howard W. Smith, Jr.
okay, i just confirmed that with my app and tomee+ 1.7.0. i added the
following to my java [startup] options

-Dopenejb.eclipselink.jmx=false

and i see the following in the log file:

2014-08-18 15:14:00 Commons Daemon procrun stdout initialized
[EL Info]: 2014-08-18 15:14:34.656--ServerSession(9569)--EclipseLink,
version: Eclipse Persistence Services - 2.3.2.v2025-r10461
[EL Info]: 2014-08-18
15:14:35.246--ServerSession(9569)--file:/C:/apache-tomee-plus-1.7.0/webapps/mcmsweb/WEB-INF/classes/_mcmsPU
login successful

That fixed the EclipseLink NullPointerException.



On Mon, Aug 18, 2014 at 3:01 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 it is in 1.7


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-08-18 21:00 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  Is this (openejb.eclipselink.jmx=false) added as part of the fix, or
  is openejb.eclipselink.jmx=false available in tomee 7.0 final release,
  already?
 
 
  On Mon, Aug 18, 2014 at 2:36 PM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
  you can also disable it setting openejb.eclipselink.jmx=false



Re: Switching to Eclipselink in TomEE plus?

2014-08-17 Thread Howard W. Smith, Jr.
Karl, I informed the list (in another topic/thread) that I saw that
nullpointerexception too, since I have eclipselink in my project. I only
see this on my DEV server (windows 2008 server, standard edition, 64-bit,
JDK 8.0_11).

I don't see the exception onmy production server (windows 2008 server, R2,
64-bit, JDK 8.0_11).

I use eclipselink 2.3.2 and Apache Derby 10.x.



On Sun, Aug 17, 2014 at 3:14 PM, Karl Kildén karl.kil...@gmail.com wrote:

 Seems to work fine but I do get this in the log:

 [EL Info]: 2014-08-17

 18:57:56.333--ServerSession(2103498909)--file:/C:/raindance/mp/mp/web/target/mp-web-1.0.0-SNAPSHOT/WEB-INF/lib/mp-domain-1.0.0-SNAPSHOT.jar_ref
 login successful
 [EL Warning]: 2014-08-17 18:57:56.338--ServerSession(2103498909)--Problem
 while registering MBean: java.lang.NullPointerException

 You never want NPE in your boot log, anyone knows whats up?


 On 16 August 2014 21:55, Karl Kildén karl.kil...@gmail.com wrote:

  Thanks guys!
 
 
  On 16 August 2014 19:57, Bjorn Danielsson 
  bjorn-apa...@lists.cuspycode.com wrote:
 
  I've been switching back and forth between Eclipselink and OpenJPA
  for various reasons. All I do to enable Eclipselink is put a copy
  of eclipselink.jar in tomee/lib, in addition to changing the provider
  in my app's persistence.xml. If you don't want to use plume, just
  copy the eclipselink jar from that distribution.
 
  --
  Bjorn Danielsson
  Cuspy Code AB
 
 
  Karl Kildén karl.kil...@gmail.com wrote:
   Hello, I know this is supposed to be trivial. This shows config
 changes:
  
   http://tomee.apache.org/examples-trunk/jpa-eclipselink/README.html
  
   But what about lib changes? Anyone have good advice on what to add and
   possibly remove?
  
   cheers
 
 
 



Re: Primefaces Push not working for me

2014-08-17 Thread Howard W. Smith, Jr.
Karl,

Please see PrimeFaces 5.0 user guide, page 530, section 9.5.1 Counter, and
then scroll down and look for,

package org.primefaces.examples.push.counter;

import org.primefaces.push.annotation.OnMessage;
import org.primefaces.push.annotation.PushEndpoint;
import org.primefaces.push.impl.JSONEncoder;

@PushEndpoint(/counter)
public class CounterResource {
@OnMessage(encoders = {JSONEncoder.class})
public String onMessage(String count) {
return count;
}
}


do you have a class like this defined in your app? you should try to deploy
the PrimeFaces 5.0 Push - Counter example, test the example, and make
appropriate code changes to your PrimeFaces Push logic.




On Sun, Aug 17, 2014 at 1:12 PM, Karl Kildén karl.kil...@gmail.com wrote:

 Hello,

 Running various versions of TomEE with Primefaces 5 all results in this
 problem: ERROR  org.primefaces.push.PushServlet: No Annotated class using
 @PushEndpoint found. Push will not work.

 Full boot log is here:
 https://gist.github.com/karlkilden/5b7c1dfe7ba5e5c2bd99

 I tried various configurations of Primepush and I had it working with
 primefaces 4. I also tried various versions of the atmosphere runtime.
 Anyone using this that would care to share configuration? I will try to get
 a minimal demo app together soon.

 This is what I tried most recently:

 dependency
 groupIdorg.atmosphere/groupId
 artifactIdatmosphere-runtime/artifactId
 version2.1.8/version
 /dependency


 servlet

 servlet-namePush Servlet/servlet-name

 servlet-classorg.primefaces.push.PushServlet/servlet-class
 init-param

 param-nameorg.atmosphere.cpr.broadcasterCacheClass/param-name

 param-valueorg.atmosphere.cache.UUIDBroadcasterCache/param-value
 /init-param
 init-param
 param-nameorg.atmosphere.annotation.packages/param-name
 param-valueorg.primefaces.push/param-value
 /init-param
 init-param
 param-nameorg.atmosphere.cpr.packages/param-name
 param-valuecom.kildeen.ref/param-value
 /init-param
 async-supportedtrue/async-supported
 /servlet

 servlet-mapping
 servlet-namePush Servlet/servlet-name
 url-pattern/primepush/*/url-pattern
 /servlet-mapping



 cheers



Re: Primefaces Push not working for me

2014-08-17 Thread Howard W. Smith, Jr.
Karl, your web.xml looks okay, but my web.xml does not include the
following:


init-param
param-nameorg.atmosphere.annotation.packages/param-name
param-valueorg.primefaces.push/param-value
/init-param
init-param
param-nameorg.atmosphere.cpr.packages/param-name
param-valuecom.kildeen.ref/param-value
/init-param



On Sun, Aug 17, 2014 at 5:58 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 Karl,

 Please see PrimeFaces 5.0 user guide, page 530, section 9.5.1 Counter, and
 then scroll down and look for,

 package org.primefaces.examples.push.counter;

 import org.primefaces.push.annotation.OnMessage;
 import org.primefaces.push.annotation.PushEndpoint;
 import org.primefaces.push.impl.JSONEncoder;

 @PushEndpoint(/counter)
 public class CounterResource {
 @OnMessage(encoders = {JSONEncoder.class})
 public String onMessage(String count) {
 return count;
 }
 }


 do you have a class like this defined in your app? you should try to
 deploy the PrimeFaces 5.0 Push - Counter example, test the example, and
 make appropriate code changes to your PrimeFaces Push logic.




 On Sun, Aug 17, 2014 at 1:12 PM, Karl Kildén karl.kil...@gmail.com
 wrote:

 Hello,

 Running various versions of TomEE with Primefaces 5 all results in this
 problem: ERROR  org.primefaces.push.PushServlet: No Annotated class using
 @PushEndpoint found. Push will not work.

 Full boot log is here:
 https://gist.github.com/karlkilden/5b7c1dfe7ba5e5c2bd99

 I tried various configurations of Primepush and I had it working with
 primefaces 4. I also tried various versions of the atmosphere runtime.
 Anyone using this that would care to share configuration? I will try to
 get
 a minimal demo app together soon.

 This is what I tried most recently:

 dependency
 groupIdorg.atmosphere/groupId
 artifactIdatmosphere-runtime/artifactId
 version2.1.8/version
 /dependency


 servlet

 servlet-namePush Servlet/servlet-name

 servlet-classorg.primefaces.push.PushServlet/servlet-class
 init-param

 param-nameorg.atmosphere.cpr.broadcasterCacheClass/param-name

 param-valueorg.atmosphere.cache.UUIDBroadcasterCache/param-value
 /init-param
 init-param
 param-nameorg.atmosphere.annotation.packages/param-name
 param-valueorg.primefaces.push/param-value
 /init-param
 init-param
 param-nameorg.atmosphere.cpr.packages/param-name
 param-valuecom.kildeen.ref/param-value
 /init-param
 async-supportedtrue/async-supported
 /servlet

 servlet-mapping
 servlet-namePush Servlet/servlet-name
 url-pattern/primepush/*/url-pattern
 /servlet-mapping



 cheers





Re: Apache TomEE 1.7.0 Release

2014-08-15 Thread Howard W. Smith, Jr.
Congratulations and thank you for TomEE!!! Especially, for posting the
release to the mail list, which I follow more than any other TomEE channel.
:)



On Fri, Aug 15, 2014 at 8:58 AM, Andy Gumbrecht agumbre...@tomitribe.com
wrote:

 Boom!!! @ApacheTomEE 1.7.0 release rocks @TheASF world today -
 http://tomee.apache.org http://t.co/ahbu6794su

 Hi Absolutely Everyone,

 Finally, we made it through the vote. We are so proud and extremely happy
 to bring you Apache TomEE 1.7.0 today.

 Thanks go out to everyone for making the TomEE community such a great
 place to work. You all deserve a huge pat on the back.

 We sincerely hope that this release brings smiles to your faces and
 performance to your world.

 Please tweet and announce the news to all your circles and friends and
 followers. We really appreciate your support.

 The Maven 1.7.0 binaries may take a day or so to filter out to Maven
 Central, so please be patient when trying to build your Maven projects.

 Core development will now move to the TomEE 2.x EE7 binaries, but the
 1.7.x branch will also be a active for the foreseeable future.

 Have a great weekend, and enjoy!

 Andy.

 --
   Andy Gumbrecht

   http://www.tomitribe.com
   agumbre...@tomitribe.com
   https://twitter.com/AndyGeeDe

   TomEE treibt Tomitribe! | http://tomee.apache.org




Re: Apache TomEE 1.7.0 Release

2014-08-15 Thread Howard W. Smith, Jr.
On Fri, Aug 15, 2014 at 9:57 AM, Hendrik Dev hendrikde...@gmail.com wrote:

 Is there a roadmap for making TomEE JEE 7 compliant?


Quote below from http://t.co/ahbu6794su (at top of Andy's email, which
resolves to http://tomee.apache.org/tomee-1.7.0.html)

Java EE7 and Beyond

From this point on the TomEE community will be focusing most of it's
efforts on TomEE 2.0.x, which will be the first TomEE Java EE 7 driven
version running on Apache Tomcat 8.x. It is more than likely that support
for Java SE 6 will be dropped so that Java SE 7 features can finally be
leveraged during the development process. We will of course continue to
maintain the 1.7.x branch for the foreseeable future.


TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
I just downloaded TomEE 1.7.0 release, and I get the exception stack trace
below, when I start tomEE 1.7.0 (and java 8 update 11) after deploying my
webapp to tomee 1.7.0. Please advise.


INFO: Enterprise application openejb loaded.
Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following
stack trace and this message to us...@openejb.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.tomee.catalina.TomcatSecurityService()
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:968)
at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
at
org.apache.openejb.assembler.classic.Assembler.createSecurityService(Assembler.java:2517)
at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:498)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
at org.apache.openejb.OpenEJB$Instance.init(OpenEJB.java:150)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
at org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: java.lang.NoClassDefFoundError:
org/apache/geronimo/osgi/locator/ProviderLocator
at
javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:89)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:80)
at
org.apache.openejb.core.security.AbstractSecurityService.installJacc(AbstractSecurityService.java:314)
at
org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:77)
at
org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:71)
at
org.apache.tomee.catalina.TomcatSecurityService.init(TomcatSecurityService.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
... 24 more
Caused by: java.lang.ClassNotFoundException:
org.apache.geronimo.osgi.locator.ProviderLocator
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 36 more

Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance init
SEVERE: OpenEJB has encountered a fatal error and cannot be started:
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
constructor: public org.apache.tomee.catalina.TomcatSecurityService()
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
at org.apache.openejb.OpenEJB$Instance.init(OpenEJB.java:150)
at 

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
tomee/lib. I do not like using this JAR, because of javamail sendmail
issues that I have experienced with TomEE 1.5.x and 1.6.x.

Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
tomee/lib to run/start properly?

My preference is to use Sun/Oracle's javamail.jar instead
of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
tomee/lib?




On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 I just downloaded TomEE 1.7.0 release, and I get the exception stack trace
 below, when I start tomEE 1.7.0 (and java 8 update 11) after deploying my
 webapp to tomee 1.7.0. Please advise.


 INFO: Enterprise application openejb loaded.
 Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
 createRecipe
 INFO: Creating TransactionManager(id=Default Transaction Manager)
 Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
 createRecipe
 INFO: Creating SecurityService(id=Tomcat Security Service)
 Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
 handleUnknownError
 SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
 following stack trace and this message to us...@openejb.apache.org :
  org.apache.xbean.recipe.ConstructionException: Error invoking
 constructor: public org.apache.tomee.catalina.TomcatSecurityService()
 at
 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:968)
  at
 org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
  at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
  at
 org.apache.openejb.assembler.classic.Assembler.createSecurityService(Assembler.java:2517)
 at
 org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:498)
  at
 org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
 at org.apache.openejb.OpenEJB$Instance.init(OpenEJB.java:150)
  at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
 at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
  at
 org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
 at
 org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:483)
  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/geronimo/osgi/locator/ProviderLocator
 at
 javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:89)
  at java.security.AccessController.doPrivileged(Native Method)
 at
 javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:80)
  at
 org.apache.openejb.core.security.AbstractSecurityService.installJacc(AbstractSecurityService.java:314)
 at
 org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:77)
  at
 org.apache.openejb.core.security.AbstractSecurityService.init(AbstractSecurityService.java:71)
 at
 org.apache.tomee.catalina.TomcatSecurityService.init(TomcatSecurityService.java:51)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
  at
 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
 ... 24 more
 Caused by: java.lang.ClassNotFoundException:
 org.apache.geronimo.osgi.locator.ProviderLocator
 at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
)
at
org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.mail.MessagingException: Connection error
(java.net.ConnectException: Connection timed out: connect)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
at javax.mail.Service.connect(Service.java:274)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at javax.mail.Transport.send(Transport.java:94)
... 55 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.init(Socket.java:434)
at java.net.Socket.init(Socket.java:286)
at
org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
at
org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
... 60 more





On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
 tomee/lib. I do not like using this JAR, because of javamail sendmail
 issues that I have experienced with TomEE 1.5.x and 1.6.x.

 Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
 tomee/lib to run/start properly?

 My preference is to use Sun/Oracle's javamail.jar instead
 of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
 javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
 tomee/lib?




 On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

 I just downloaded TomEE 1.7.0 release, and I get the exception stack
 trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
 deploying my webapp to tomee 1.7.0. Please advise.


 INFO: Enterprise application openejb loaded.
 Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
 createRecipe
 INFO: Creating TransactionManager(id=Default Transaction Manager)
 Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
 createRecipe
 INFO: Creating SecurityService(id=Tomcat Security Service)
 Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
 handleUnknownError
 SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
 following stack trace and this message to us...@openejb.apache.org :
  org.apache.xbean.recipe.ConstructionException: Error invoking
 constructor: public org.apache.tomee.catalina.TomcatSecurityService()
 at
 org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:968)
  at
 org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
  at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
  at
 org.apache.openejb.assembler.classic.Assembler.createSecurityService(Assembler.java:2517)
 at
 org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:498)
  at
 org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
 at org.apache.openejb.OpenEJB$Instance.init(OpenEJB.java:150)
  at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
 at
 org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
  at
 org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
 at
 org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:663

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
okay, see below:

1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
to
tomee/lib
2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
3. added [Oracle] javax.mail.jar to tomee/lib
4. started tomee 1.7.0, no errors
5. logged into my app and saw the following exception

[EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
while registering MBean: java.lang.NullPointerException

6. javamail sendmail works as expected :)

should I add geronimo-osgi-registry-1.1.jar
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
to
resolve the exception in #5 above?


On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Just replace geronimo javamail by

 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
 and maybe
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
 + mail.jar you want


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
 app
  still has javamail sendmail issues. see exception below. next, I'll try
 to
  add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
  issue below and allows me to use tomee 1.7.0. otherwise, i will just have
  to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
  require geronimo-javamail_1.4_mail-1.8.3.jar.
 
 
  javax.mail.SendFailedException: Send failure
  (javax.mail.MessagingException: Connection error
  (java.net.ConnectException: Connection timed out: connect))
  at javax.mail.Transport.send(Transport.java:163)
  at javax.mail.Transport.send(Transport.java:48)
  at utils.mail.JavaMail.sendMail(JavaMail.java:151)
  at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
  at
 
 pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
  at
 
 utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
  at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
  at
 
 org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
  at
 
 org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
  at
 
 org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
  at
 
 utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
  at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
I added geronimo-osgi-registry-1.1.jar
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar,
but

[EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
while registering MBean: java.lang.NullPointerException

still shows up in catalina log after tomee and my webapp is started,


Aug 15, 2014 2:01:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\apache-tomee-plus-1.7.0\webapps\mcmsweb.war has finished in 16,920 ms
Aug 15, 2014 2:01:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-nio-8080]
Aug 15, 2014 2:01:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-8009]
Aug 15, 2014 2:01:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17017 ms
Aug 15, 2014 2:01:41 PM org.atmosphere.cpr.AtmosphereFramework$4 run
INFO: Latest version of Atmosphere's JavaScript Client 2.2.2
Aug 15, 2014 2:01:50 PM org.apache.myfaces.el.unified.ResolverBuilderBase
sortELResolvers
INFO: Chain of EL resolvers for Faces sorted with:
org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator@41b76e3f and
the result order is
[org.apache.myfaces.el.unified.resolver.implicitobject.ImplicitObjectResolver@8797b93,
org.apache.myfaces.el.unified.resolver.CompositeComponentELResolver@6a376b11,
org.apache.webbeans.el22.WebBeansELResolver@33c01d53,
org.apache.myfaces.el.FlashELResolver@497c4b82,
org.apache.myfaces.el.unified.resolver.ManagedBeanResolver@a1a04dd,
org.apache.myfaces.el.unified.resolver.ResourceResolver@5b24996c,
javax.el.ResourceBundleELResolver@683d2dde,
org.apache.myfaces.el.unified.resolver.ResourceBundleResolver@43b64b00,
javax.el.MapELResolver@19d09347, javax.el.ListELResolver@66c086e8,
javax.el.ArrayELResolver@67921433, javax.el.BeanELResolver@168dad8a]
[EL Info]: 2014-08-15 14:01:50.748--ServerSession(1699209850)--EclipseLink,
version: Eclipse Persistence Services - 2.3.2.v2025-r10461
[EL Info]: 2014-08-15
14:01:51.35--ServerSession(1699209850)--file:/C:/apache-tomee-plus-1.7.0/webapps/mcmsweb/WEB-INF/classes/_mcmsPU
login successful
[EL Warning]: 2014-08-15 14:01:51.354--ServerSession(1699209850)--Problem
while registering MBean: java.lang.NullPointerException
Aug 15, 2014 2:02:03 PM pf.ApplicationScopeBean login



On Fri, Aug 15, 2014 at 1:57 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 okay, see below:

 1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
  to
 tomee/lib
 2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
 3. added [Oracle] javax.mail.jar to tomee/lib
 4. started tomee 1.7.0, no errors
 5. logged into my app and saw the following exception

 [EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
 while registering MBean: java.lang.NullPointerException

 6. javamail sendmail works as expected :)

 should I add geronimo-osgi-registry-1.1.jar
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
  to
 resolve the exception in #5 above?


 On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau rmannibu...@gmail.com
  wrote:

 Just replace geronimo javamail by

 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
 and maybe
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
 + mail.jar you want


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
 app
  still has javamail sendmail issues. see exception below. next, I'll try
 to
  add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
  issue below and allows me to use tomee 1.7.0. otherwise, i will just
 have
  to keep using tomee 1.6.0.2 and/or the next tomee release that does
 'not'
  require geronimo-javamail_1.4_mail-1.8.3.jar.
 
 
  javax.mail.SendFailedException: Send failure
  (javax.mail.MessagingException: Connection error
  (java.net.ConnectException: Connection timed out: connect))
  at javax.mail.Transport.send(Transport.java:163)
  at javax.mail.Transport.send(Transport.java:48)
  at utils.mail.JavaMail.sendMail(JavaMail.java:151)
  at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
  at
 
 pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
  at
 
 utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
Okay, well, I deployed TomEE+ 1.7.0 to production server as per all
discussed here, and I don't see the following exception:

Problem while registering MBean: java.lang.NullPointerException

Not using geronimo-osgi-registry-1.1.jar on production server.

I'm good, now, thanks Romain.



On Fri, Aug 15, 2014 at 2:00 PM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 I think it is not linked but without more info no idea to be honest.


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-08-15 19:57 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:
  okay, see below:
 
  1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
  
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
 
  to
  tomee/lib
  2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
  3. added [Oracle] javax.mail.jar to tomee/lib
  4. started tomee 1.7.0, no errors
  5. logged into my app and saw the following exception
 
  [EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
  while registering MBean: java.lang.NullPointerException
 
  6. javamail sendmail works as expected :)
 
  should I add geronimo-osgi-registry-1.1.jar
  
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
 
  to
  resolve the exception in #5 above?
 
 
  On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  wrote:
 
  Just replace geronimo javamail by
 
 
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
  and maybe
 
 http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
  + mail.jar you want
 
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
  2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com
 :
   okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar,
 my
  app
   still has javamail sendmail issues. see exception below. next, I'll
 try
  to
   add Sun/Oracle's javamail to my WAR. I hope that resolves the
 stacktrace
   issue below and allows me to use tomee 1.7.0. otherwise, i will just
 have
   to keep using tomee 1.6.0.2 and/or the next tomee release that does
 'not'
   require geronimo-javamail_1.4_mail-1.8.3.jar.
  
  
   javax.mail.SendFailedException: Send failure
   (javax.mail.MessagingException: Connection error
   (java.net.ConnectException: Connection timed out: connect))
   at javax.mail.Transport.send(Transport.java:163)
   at javax.mail.Transport.send(Transport.java:48)
   at utils.mail.JavaMail.sendMail(JavaMail.java:151)
   at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
   at
  
 
 pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
   at
  
 
 utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
  
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at
  
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
   at
  
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
   at
  
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
   at
  
 
 org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
   at
  
 
 org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
   at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
   at
  
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
   at
  
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
   at
  
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
   at
  
 
 org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
   at
  
 
 org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
   at
  
 
 org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
   at
  
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
   at
  
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

2014-08-15 Thread Howard W. Smith, Jr.
Okay, thanks Bjorn for letting me know that about Sun/Oracle javamail in
the WAR.



On Fri, Aug 15, 2014 at 3:39 PM, Bjorn Danielsson 
bjorn-apa...@lists.cuspycode.com wrote:

 Hi Howard,

 Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.

 I gave up trying to make Geronimo Javamail work a long time ago,
 it was clearly broken and there was no one who could fix it.

 --
 Bjorn Danielsson
 Cuspy Code AB


 Howard W. Smith, Jr. smithh032...@gmail.com wrote:
  okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
 app
  still has javamail sendmail issues. see exception below. next, I'll try
 to
  add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
  issue below and allows me to use tomee 1.7.0. otherwise, i will just have
  to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
  require geronimo-javamail_1.4_mail-1.8.3.jar.
 
 
  javax.mail.SendFailedException: Send failure
  (javax.mail.MessagingException: Connection error
  (java.net.ConnectException: Connection timed out: connect))
  at javax.mail.Transport.send(Transport.java:163)
  at javax.mail.Transport.send(Transport.java:48)
  at utils.mail.JavaMail.sendMail(JavaMail.java:151)
  at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
  at
 
 pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
  at
 
 utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
  at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
  at
 
 org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
  at
 
 org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
  at
 
 org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
  at
 
 org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
  at
 
 utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
  at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
  at
 
 org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
  at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
  at
 
 org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
  at
 
 org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
  at
 org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
  at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373

Re: Tomee 2 Release-Date

2014-07-28 Thread Howard W. Smith, Jr.
good stuff, you all keep up the good work/progress!


On Mon, Jul 28, 2014 at 7:52 AM, Romain Manni-Bucau rmannibu...@gmail.com
wrote:

 Hi

 will surely be beginning of next year in the best case even if I'd
 like to get a pre release end of this year without all EE 7 features.
 We miss CDI 1.1 and JPA 2.1 to target EE 7  web profile ATM (work in
 progress for CDI, JPA will be tackled after I think).


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-07-28 13:46 GMT+02:00 Andy Gumbrecht agumbre...@tomitribe.com:
  Hi thanhvinh,
 
  You're kind of jumping the gun there.
 
  We've not even released 1.7.0 yet, so it's kind of hard to map out
 anything
  yet.
 
  TomEE 2.0.0-SNAPSHOT is in progress, but we do not have a solid roadmap
 yet.
  We will work on producing some information as soon as we can.
 
  Of course feel free to dig into the progress of the SNAPSHOT.
 
  Andy.
 
 
  On 27/07/2014 20:40, thanhvinh wrote:
 
  Hi all,
  NetBeans 8 now supported TomEE.  That's a good news.  I'm going to build
  my
  apps based on NB 8, Tomcat 8, Java EE 7.
  So I need to use TomEE 2.  Can you please give us a update on the
 release
  date of TomEE 2?
  Thanks.
 
 
 
 
  --
  View this message in context:
 
 http://tomee-openejb.979440.n4.nabble.com/Tomee-2-Release-Date-tp4670783.html
  Sent from the TomEE Users mailing list archive at Nabble.com.
 
 
 
  --
Andy Gumbrecht
 
http://www.tomitribe.com
agumbre...@tomitribe.com
https://twitter.com/AndyGeeDe
 
TomEE treibt Tomitribe! | http://tomee.apache.org
 



Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
Thanks Jean-Louis. Based on your response, i just commented out
entityManager.flush() in my AbstractFacade.java for create, edit, and
remove methods.

i did some testing in my app, and seems to work well. will see how my app
performs under load and when users are logged in and working, concurrently.

thanks again.



On Wed, May 21, 2014 at 5:21 AM, Jean-Louis Monteiro 
jlmonte...@tomitribe.com wrote:

 As a general rule, I would recommend to never call flush(). The JPA
 provider optimizing the flushing to avoid connections between the
 Persistence Context and the rdbms.

 Of course at least at the end of the transaction (commit) the JPA provider
 flushes.
 But for example, when you have a loop with search, read, update  the
 JPA provider is able to detect that there is a risk of dealing with stale
 object and will therefor flush as well.

 The only case I call flush is basically when as mentioned already, I need
 to check database constraints (Unique, etc).
 The only reason is that I want to explicitly catch the exception either to
 ignore, retry, or rethrow using a business exception.

 Sometimes, I also use an ejb with a REQUIRES_NEW, so that the current
 transaction is suspended and a new one is created. Then, if an exception
 occurs at commit time, I can catch in the current bean without changing the
 status of the current transaction.

 JLouis



 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com


 On Mon, May 19, 2014 at 8:47 AM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  Interesting question and answer.
 
  Per my 2+ year experience with Java EE 6, in my app, i used NetBeans to
  develop my JPA session facade (@EJB JPA DAO) classes, including abstract
  class. In the abstract class, in the create and edit methods, I did add
  flush(), so after every create and edit JPA request, data is written
  immediately.
 
  Honestly, I don't have any need to use @Scheduler or timer methods to
  ensure data is savedsuccessfully.
 
  In fact, I can maybe even remove flush(), but I have not done that (yet).
  If I did remove flush() in my abstract class, then I would need to test
 the
  app, accordingly, to see the impact.
 
  I really don't see any performance issues with my
 approach/implementation,
  but the app does not have many concurrent
  users/database-update-requests/etc.
 
 
 
  On Mon, May 19, 2014 at 4:02 AM, Andy Gumbrecht 
 agumbre...@tomitribe.com
  wrote:
 
   Hi there Radhakrishna,
  
  
   On 19/05/2014 08:15, Radhakrishna Kalyan wrote:
  
   Hi,
  
   I have question around entityManager.flush().
   Is it ok to call multiple times? Or will there be any performance
 issue.
  
   Every time you hit the the database you will take a performance hit
 back
  -
   How much is impossible to say and is very dependant on what your app is
   doing. Just always think along the lines of 'how can I do this with
 less'
   and you'll be fine.
  
  
   My case is, I have a timer service which executes periodically where I
   create a database entity using a dao object using
  entityManager.persist(),
   after that I also  call entityManager.flush().
  
   The reason to do so is, if database commit fails due to certain reason
   like
   unique constrain exception then I want the timer service to send a JMS
   message.
  
   What you are doing is not necessarily wrong, but why not just let the
   container do the work for you. The container managed transactions are
  your
   friend.
  
  
   If I don't call entityManager.flush() then I am not able to catch any
   exception in my timer service thus fails to send any JMS message.
  
   In your service look up another local bean that handles the persistence
and if required sends a message on success, this will all run in a
   transacted context - The success message will only be sent if the bean
   method actually completes.
   If the bean method call fails then you can catch the error and do the
   extra leg work to send the 'fail' message.
  
  
   However at the end the database entity is never created which is
  correct.
   But if I can't able to send the JMS message upon exception then I does
  not
   meet the requirement.
  
   Any ideas or recommendations to do it in a better way
  
  
So I guess my suggestion is to not try and do all the work in the
 timer
   service method, rather call another bean method do do the work.
  
   Andy.
  
   --
 Andy Gumbrecht
  
 http://www.tomitribe.com
 agumbre...@tomitribe.com
 https://twitter.com/AndyGeeDe
  
 TomEE treibt Tomitribe! | http://tomee.apache.org
  
  
 



Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
removing the manual/forced entityManager.flush() broke my app in a few
places. reverting to previous version and I may try to revisit this later.
:)



On Wed, May 21, 2014 at 10:00 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 Thanks Jean-Louis. Based on your response, i just commented out
 entityManager.flush() in my AbstractFacade.java for create, edit, and
 remove methods.

 i did some testing in my app, and seems to work well. will see how my app
 performs under load and when users are logged in and working, concurrently.

 thanks again.



 On Wed, May 21, 2014 at 5:21 AM, Jean-Louis Monteiro 
 jlmonte...@tomitribe.com wrote:

 As a general rule, I would recommend to never call flush(). The JPA
 provider optimizing the flushing to avoid connections between the
 Persistence Context and the rdbms.

 Of course at least at the end of the transaction (commit) the JPA provider
 flushes.
 But for example, when you have a loop with search, read, update  the
 JPA provider is able to detect that there is a risk of dealing with stale
 object and will therefor flush as well.

 The only case I call flush is basically when as mentioned already, I need
 to check database constraints (Unique, etc).
 The only reason is that I want to explicitly catch the exception either to
 ignore, retry, or rethrow using a business exception.

 Sometimes, I also use an ejb with a REQUIRES_NEW, so that the current
 transaction is suspended and a new one is created. Then, if an exception
 occurs at commit time, I can catch in the current bean without changing
 the
 status of the current transaction.

 JLouis



 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com


 On Mon, May 19, 2014 at 8:47 AM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  Interesting question and answer.
 
  Per my 2+ year experience with Java EE 6, in my app, i used NetBeans to
  develop my JPA session facade (@EJB JPA DAO) classes, including abstract
  class. In the abstract class, in the create and edit methods, I did add
  flush(), so after every create and edit JPA request, data is written
  immediately.
 
  Honestly, I don't have any need to use @Scheduler or timer methods to
  ensure data is savedsuccessfully.
 
  In fact, I can maybe even remove flush(), but I have not done that
 (yet).
  If I did remove flush() in my abstract class, then I would need to test
 the
  app, accordingly, to see the impact.
 
  I really don't see any performance issues with my
 approach/implementation,
  but the app does not have many concurrent
  users/database-update-requests/etc.
 
 
 
  On Mon, May 19, 2014 at 4:02 AM, Andy Gumbrecht 
 agumbre...@tomitribe.com
  wrote:
 
   Hi there Radhakrishna,
  
  
   On 19/05/2014 08:15, Radhakrishna Kalyan wrote:
  
   Hi,
  
   I have question around entityManager.flush().
   Is it ok to call multiple times? Or will there be any performance
 issue.
  
   Every time you hit the the database you will take a performance hit
 back
  -
   How much is impossible to say and is very dependant on what your app
 is
   doing. Just always think along the lines of 'how can I do this with
 less'
   and you'll be fine.
  
  
   My case is, I have a timer service which executes periodically where
 I
   create a database entity using a dao object using
  entityManager.persist(),
   after that I also  call entityManager.flush().
  
   The reason to do so is, if database commit fails due to certain
 reason
   like
   unique constrain exception then I want the timer service to send a
 JMS
   message.
  
   What you are doing is not necessarily wrong, but why not just let the
   container do the work for you. The container managed transactions are
  your
   friend.
  
  
   If I don't call entityManager.flush() then I am not able to catch any
   exception in my timer service thus fails to send any JMS message.
  
   In your service look up another local bean that handles the
 persistence
and if required sends a message on success, this will all run in a
   transacted context - The success message will only be sent if the bean
   method actually completes.
   If the bean method call fails then you can catch the error and do the
   extra leg work to send the 'fail' message.
  
  
   However at the end the database entity is never created which is
  correct.
   But if I can't able to send the JMS message upon exception then I
 does
  not
   meet the requirement.
  
   Any ideas or recommendations to do it in a better way
  
  
So I guess my suggestion is to not try and do all the work in the
 timer
   service method, rather call another bean method do do the work.
  
   Andy.
  
   --
 Andy Gumbrecht
  
 http://www.tomitribe.com
 agumbre...@tomitribe.com
 https://twitter.com/AndyGeeDe
  
 TomEE treibt Tomitribe! | http://tomee.apache.org
  
  
 





Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
On Wed, May 21, 2014 at 11:16 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 cause eclipselink ;)


+1 good memory, Romain! :)


Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
On Wed, May 21, 2014 at 11:19 AM, Jean-Louis Monteiro 
jlmonte...@tomitribe.com wrote:

 you should have mentioned that before. Eclipselink is a bit special 


yeah, i love it (EclipseLink)! Gets the job done for me... EclipseLink
2.3.2 (that shipped with earlier version of Glassfish 3.1.x).  :)


Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
Andy, is there any sample code or blog or tomee test case that demonstrates
your recommendation?



On Wed, May 21, 2014 at 11:37 AM, Andy Gumbrecht
agumbre...@tomitribe.comwrote:

 Which is why I used the additional local EJB in the past, basically where
 it 'feels' like a flush is being helpful replace the logic with a local
 bean that does that unit of work.
 Look up and call that bean method from the current method, if it completes
 then the current method is safe to complete. An explicit flush in an EJB
 context is 'usually' a hack.

 Andy.


 On 21/05/2014 17:19, Jean-Louis Monteiro wrote:

 you should have mentioned that before. Eclipselink is a bit special 

 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com


 On Wed, May 21, 2014 at 8:16 AM, Romain Manni-Bucau
 rmannibu...@gmail.comwrote:

  cause eclipselink ;)



 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-05-21 17:11 GMT+02:00 Jean-Louis Monteiro jlmonte...@tomitribe.com
 :

  I don't see why, except if you are explicitly checking for database
 constraints in your code.
 Because, the default JDBC connection isolation level is READ COMMITTED
 AFAIR or REPEATABLE_READ for MySQL.

 Anyway, that means that you can never read uncommitted data.

 JLouis

 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com


 On Wed, May 21, 2014 at 7:58 AM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  removing the manual/forced entityManager.flush() broke my app in a few
 places. reverting to previous version and I may try to revisit this

 later.

 :)



 On Wed, May 21, 2014 at 10:00 AM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  Thanks Jean-Louis. Based on your response, i just commented out
 entityManager.flush() in my AbstractFacade.java for create, edit, and
 remove methods.

 i did some testing in my app, and seems to work well. will see how my

 app

 performs under load and when users are logged in and working,

 concurrently.

 thanks again.



 On Wed, May 21, 2014 at 5:21 AM, Jean-Louis Monteiro 
 jlmonte...@tomitribe.com wrote:

  As a general rule, I would recommend to never call flush(). The JPA
 provider optimizing the flushing to avoid connections between the
 Persistence Context and the rdbms.

 Of course at least at the end of the transaction (commit) the JPA

 provider

 flushes.
 But for example, when you have a loop with search, read, update 

 the

 JPA provider is able to detect that there is a risk of dealing with

 stale

 object and will therefor flush as well.

 The only case I call flush is basically when as mentioned already, I

 need

 to check database constraints (Unique, etc).
 The only reason is that I want to explicitly catch the exception

 either

 to

 ignore, retry, or rethrow using a business exception.

 Sometimes, I also use an ejb with a REQUIRES_NEW, so that the

 current

 transaction is suspended and a new one is created. Then, if an

 exception

 occurs at commit time, I can catch in the current bean without

 changing

 the
 status of the current transaction.

 JLouis



 --
 Jean-Louis Monteiro
 http://twitter.com/jlouismonteiro
 http://www.tomitribe.com


 On Mon, May 19, 2014 at 8:47 AM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  Interesting question and answer.

 Per my 2+ year experience with Java EE 6, in my app, i used

 NetBeans

 to

 develop my JPA session facade (@EJB JPA DAO) classes, including

 abstract

 class. In the abstract class, in the create and edit methods, I

 did

 add

 flush(), so after every create and edit JPA request, data is

 written

 immediately.

 Honestly, I don't have any need to use @Scheduler or timer methods

 to

 ensure data is savedsuccessfully.

 In fact, I can maybe even remove flush(), but I have not done that

 (yet).

 If I did remove flush() in my abstract class, then I would need to

 test

 the

 app, accordingly, to see the impact.

 I really don't see any performance issues with my

 approach/implementation,

 but the app does not have many concurrent
 users/database-update-requests/etc.



 On Mon, May 19, 2014 at 4:02 AM, Andy Gumbrecht 

 agumbre...@tomitribe.com

 wrote:
 Hi there Radhakrishna,


 On 19/05/2014 08:15, Radhakrishna Kalyan wrote:

  Hi,

 I have question around entityManager.flush().
 Is it ok to call multiple times? Or will there be any

 performance

 issue.

 Every time you hit the the database you will take a performance

 hit

 back

 -

 How much is impossible to say and is very dependant on what your

 app

 is

 doing. Just always think along the lines of 'how can I do this

 with

 less'

 and you'll be fine.


  My case is, I have a timer service which executes periodically

 where

 I

 create a database entity using a dao object using

 entityManager.persist(),

 after that I also

Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
okay, based on what you said below,

On Wed, May 21, 2014 at 2:42 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 @Stateless // or singletong
 public class TxBean {
@PersistenceContext EntityManager em;

 public void doSomeStuffAndCommit() {
 // em usage
 }
 }


 when exiting the method commit will trigger flush


my @Stateless EJB has doSomeStuffAndCommit(), but doSomeStuffAndCommit() is
'usually' SQL SELECTs, and in my Abstract class for @Stateless @EJB, I have
the following:

protected abstract EntityManager getEntityManager();

public void create(T entity) {
// 2011-09-17 flush immediately after persist/create
getEntityManager().persist(entity);
getEntityManager().flush();
}

public void create(T entity, Boolean flush) {
getEntityManager().persist(entity);
if (flush) getEntityManager().flush();
}

public void edit(T entity) {
// 2011-09-17 flush immediately after merge
getEntityManager().merge(entity);
getEntityManager().flush();
}

public void edit(T entity, Boolean flush) {
getEntityManager().merge(entity);
if (flush) getEntityManager().flush();
}

public void flush() {
getEntityManager().flush();
}

public void remove(T entity) {
// 2011-09-17 flush immediately after remove/merge the
managed/detached entity
getEntityManager().remove(getEntityManager().merge(entity));
getEntityManager().flush();
}

public void remove(T entity, Boolean flush) {
getEntityManager().remove(getEntityManager().merge(entity));
if (flush) getEntityManager().flush();
}


majority of my app, calls the create(T entity), edit(T entity), and
remove(T entity) methods above where flush() is called after the
entityManager operation.

below, is a method I have in a @Singleton bean that is called via @Schedule
to get some data from email account and write data to database.

again, the method below is only one of the methods that is in the
@Singleton bean.

private void createAuditTrail(String relatedEntityName,
 Object relatedEntityObj,
 String description) {

AuditTrail current = new AuditTrail();
current.setDescriptionTx(description);
try {
Users user = getUser(system);
if (user == null) {
logger.info(Error adding AUDIT TRAIL; 'system' user does
not exist);
return;
}
current.setUserName(user);
current.setAuditTrailId(1);
current.setAuditTrailDt(new Date());
ejbFacadeAuditTrail.create(current);
// add auditTrail to order
if (relatedEntityName.equals(orders)) {
Orders order = (Orders) relatedEntityObj;
current.addOrder(order);
ejbFacadeAuditTrail.edit(current);
}
} catch (Exception e) {
logger.info(Error adding AUDIT TRAIL +
(e.getMessage() != null ? ;  + e.getMessage() :
));
}
}


Majority of my app is CDI @SessionScoped or @ViewScoped beans that call
@Stateless @EJB to select/create/update/delete data in database.

CDI @SessionScoped and @ViewScoped beans will get data via @Stateless @EJB,
and CDI @SessionScoped and @ViewScoped beans may do some data manipulation,
and then @Stateless @EJB is called to do the entityManager create(),
edit(), remove() to update database, accordingly.

The only time I write a lot of logic in @EJBs is when I am preparing for
SQL SELECT.

The @Singleton bean example code that I provided above is one of only
(@Singleton) @EJBs that have a lot of code that does a specific job.

So, when I removed entityManager.flush() from my Abstract class, earlier,
per Jean-Louis's recommendation, some data was saved to database by
@Singleton and most of the data was 'not' saved to database.

Definition of @Singleton is below:

@Singleton
@Lock(LockType.WRITE)
@AccessTimeout(value = 2, unit = TimeUnit.MINUTES)
public class AddEmailRequest {


Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
hmmm, create - edit is useless?

I guess you are saying that after i 'create', even though I am adding a
related entity (e.g. tree 'has' branch).

create(tree)

Branch branch = new Branch(1)
tree.addBranch(branch)

so, you are saying that the edit(tree) is not necessary? is that the cause
of the issue that i experience when I remove entityManager.flush() ?




On Wed, May 21, 2014 at 3:31 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 then the issue is the code you do needs atomicity for each JPA operation
 (why you use flush). but this shouldn't be needed. Typically: create -
 edit is useless. Just create it once ;)



 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-05-21 21:29 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:

  okay, based on what you said below,
 
  On Wed, May 21, 2014 at 2:42 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   @Stateless // or singletong
   public class TxBean {
  @PersistenceContext EntityManager em;
  
   public void doSomeStuffAndCommit() {
   // em usage
   }
   }
  
  
   when exiting the method commit will trigger flush
  
 
  my @Stateless EJB has doSomeStuffAndCommit(), but doSomeStuffAndCommit()
 is
  'usually' SQL SELECTs, and in my Abstract class for @Stateless @EJB, I
 have
  the following:
 
  protected abstract EntityManager getEntityManager();
 
  public void create(T entity) {
  // 2011-09-17 flush immediately after persist/create
  getEntityManager().persist(entity);
  getEntityManager().flush();
  }
 
  public void create(T entity, Boolean flush) {
  getEntityManager().persist(entity);
  if (flush) getEntityManager().flush();
  }
 
  public void edit(T entity) {
  // 2011-09-17 flush immediately after merge
  getEntityManager().merge(entity);
  getEntityManager().flush();
  }
 
  public void edit(T entity, Boolean flush) {
  getEntityManager().merge(entity);
  if (flush) getEntityManager().flush();
  }
 
  public void flush() {
  getEntityManager().flush();
  }
 
  public void remove(T entity) {
  // 2011-09-17 flush immediately after remove/merge the
  managed/detached entity
  getEntityManager().remove(getEntityManager().merge(entity));
  getEntityManager().flush();
  }
 
  public void remove(T entity, Boolean flush) {
  getEntityManager().remove(getEntityManager().merge(entity));
  if (flush) getEntityManager().flush();
  }
 
 
  majority of my app, calls the create(T entity), edit(T entity), and
  remove(T entity) methods above where flush() is called after the
  entityManager operation.
 
  below, is a method I have in a @Singleton bean that is called via
 @Schedule
  to get some data from email account and write data to database.
 
  again, the method below is only one of the methods that is in the
  @Singleton bean.
 
  private void createAuditTrail(String relatedEntityName,
   Object relatedEntityObj,
   String description) {
 
  AuditTrail current = new AuditTrail();
  current.setDescriptionTx(description);
  try {
  Users user = getUser(system);
  if (user == null) {
  logger.info(Error adding AUDIT TRAIL; 'system' user
 does
  not exist);
  return;
  }
  current.setUserName(user);
  current.setAuditTrailId(1);
  current.setAuditTrailDt(new Date());
  ejbFacadeAuditTrail.create(current);
  // add auditTrail to order
  if (relatedEntityName.equals(orders)) {
  Orders order = (Orders) relatedEntityObj;
  current.addOrder(order);
  ejbFacadeAuditTrail.edit(current);
  }
  } catch (Exception e) {
  logger.info(Error adding AUDIT TRAIL +
  (e.getMessage() != null ? ;  + e.getMessage() :
  ));
  }
  }
 
 
  Majority of my app is CDI @SessionScoped or @ViewScoped beans that call
  @Stateless @EJB to select/create/update/delete data in database.
 
  CDI @SessionScoped and @ViewScoped beans will get data via @Stateless
 @EJB,
  and CDI @SessionScoped and @ViewScoped beans may do some data
 manipulation,
  and then @Stateless @EJB is called to do the entityManager create(),
  edit(), remove() to update database, accordingly.
 
  The only time I write a lot of logic in @EJBs is when I am preparing for
  SQL SELECT.
 
  The @Singleton bean example code that I provided above is one of only
  (@Singleton) @EJBs that have a lot of code that does a specific job.
 
  So, when I removed entityManager.flush() from my Abstract class, earlier,
  per Jean-Louis's

Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
On Wed, May 21, 2014 at 3:42 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 what I say is you can do eveything in a single method method.


Sounds like you are recommending something similar to the following:

1. @RequestScoped bean to get data to display in UI layer to enduser

2. If user modifies data, and data is submitted from client/UI to
server/bean (@Session/ViewScoped/RequestScoped), then pass modified @Entity
from Session/View/RequestScoped bean to @Stateless @EJB, and

3. @Stateless @EJB method(@Entity entity) does the following:

a. find entity via SELECT or find
b. foundEntity.property = entity.property
c. repeat step 'b.' above for all properties
d. edit(foundEntity)

are you recommending something like this (above)?




 The fact you need flush means your operation need a state provided by the
 database (@GeneratedValue?).


public class AuditTrail implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@NotNull
@Column(name = AUDIT_TRAIL_ID)
private Integer auditTrailId;


Re: question around entityManager.flush

2014-05-21 Thread Howard W. Smith, Jr.
okay, I will have to try that, asap, and report my/some test results.
thanks.



On Wed, May 21, 2014 at 3:54 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 more or less. Try to get a single transaction (ejb call if you want) by
 request.



 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-05-21 21:52 GMT+02:00 Howard W. Smith, Jr. smithh032...@gmail.com:

  On Wed, May 21, 2014 at 3:42 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   what I say is you can do eveything in a single method method.
 
 
  Sounds like you are recommending something similar to the following:
 
  1. @RequestScoped bean to get data to display in UI layer to enduser
 
  2. If user modifies data, and data is submitted from client/UI to
  server/bean (@Session/ViewScoped/RequestScoped), then pass modified
 @Entity
  from Session/View/RequestScoped bean to @Stateless @EJB, and
 
  3. @Stateless @EJB method(@Entity entity) does the following:
 
  a. find entity via SELECT or find
  b. foundEntity.property = entity.property
  c. repeat step 'b.' above for all properties
  d. edit(foundEntity)
 
  are you recommending something like this (above)?
 
 
 
 
   The fact you need flush means your operation need a state provided by
 the
   database (@GeneratedValue?).
  
  
  public class AuditTrail implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Basic(optional = false)
  @NotNull
  @Column(name = AUDIT_TRAIL_ID)
  private Integer auditTrailId;
 



Re: Netbeans Users

2014-05-20 Thread Howard W. Smith, Jr.
Andy,

I used NetBeans to develop my first Java EE 6 (JSF web) application.
Initially, I used Glassfish 3.1.x, and then migrated to TomEE
1.5.1-snapshot, and have been using TomEE 1.x ever since.

I usually just build WAR file and drop the WAR file from NetBeans 'dist'
folder into tomee/webapps folder...manually. I don't like hot deploy and
restart. i rather start and stop, drop WAR file, start, stop, ...

I usually have issues with NetBeans running my app in debug mode when
deploying to TomEE, so I avoid using debug mode  (no complaints here).

Thanks,
Howard



On Tue, May 20, 2014 at 4:30 AM, Andy Gumbrecht agumbre...@tomitribe.comwrote:

 Hi Everyone,

 I am chatting with some of the Netbeans team in regards to how their IDE
 fits into the TomEE picture.
 I have used Netbeans in the past and think it is a great tool, but for the
 last few years it's been Intellij-IDEA on my desk.

 I'd like to get your feedback on who is using Netbeans, and what for?

 Thanks for your time, happy hacking.

 Andy.

 --
   Andy Gumbrecht

   http://www.tomitribe.com
   agumbre...@tomitribe.com
   https://twitter.com/AndyGeeDe

   TomEE treibt Tomitribe! | http://tomee.apache.org




Re: question around entityManager.flush

2014-05-19 Thread Howard W. Smith, Jr.
Interesting question and answer.

Per my 2+ year experience with Java EE 6, in my app, i used NetBeans to
develop my JPA session facade (@EJB JPA DAO) classes, including abstract
class. In the abstract class, in the create and edit methods, I did add
flush(), so after every create and edit JPA request, data is written
immediately.

Honestly, I don't have any need to use @Scheduler or timer methods to
ensure data is savedsuccessfully.

In fact, I can maybe even remove flush(), but I have not done that (yet).
If I did remove flush() in my abstract class, then I would need to test the
app, accordingly, to see the impact.

I really don't see any performance issues with my approach/implementation,
but the app does not have many concurrent
users/database-update-requests/etc.



On Mon, May 19, 2014 at 4:02 AM, Andy Gumbrecht agumbre...@tomitribe.comwrote:

 Hi there Radhakrishna,


 On 19/05/2014 08:15, Radhakrishna Kalyan wrote:

 Hi,

 I have question around entityManager.flush().
 Is it ok to call multiple times? Or will there be any performance issue.

 Every time you hit the the database you will take a performance hit back -
 How much is impossible to say and is very dependant on what your app is
 doing. Just always think along the lines of 'how can I do this with less'
 and you'll be fine.


 My case is, I have a timer service which executes periodically where I
 create a database entity using a dao object using entityManager.persist(),
 after that I also  call entityManager.flush().

 The reason to do so is, if database commit fails due to certain reason
 like
 unique constrain exception then I want the timer service to send a JMS
 message.

 What you are doing is not necessarily wrong, but why not just let the
 container do the work for you. The container managed transactions are your
 friend.


 If I don't call entityManager.flush() then I am not able to catch any
 exception in my timer service thus fails to send any JMS message.

 In your service look up another local bean that handles the persistence
  and if required sends a message on success, this will all run in a
 transacted context - The success message will only be sent if the bean
 method actually completes.
 If the bean method call fails then you can catch the error and do the
 extra leg work to send the 'fail' message.


 However at the end the database entity is never created which is correct.
 But if I can't able to send the JMS message upon exception then I does not
 meet the requirement.

 Any ideas or recommendations to do it in a better way


  So I guess my suggestion is to not try and do all the work in the timer
 service method, rather call another bean method do do the work.

 Andy.

 --
   Andy Gumbrecht

   http://www.tomitribe.com
   agumbre...@tomitribe.com
   https://twitter.com/AndyGeeDe

   TomEE treibt Tomitribe! | http://tomee.apache.org




Re: Remote Asynchronous EJB Method call followed quickly by client exit

2014-05-17 Thread Howard W. Smith, Jr.
On Fri, May 16, 2014 at 12:03 PM, Thiago Veronezi thi...@veronezi.orgwrote:

 The list is still messed up. I'm trying to follow up the emails, but they
 are coming out of order.

 []s,
 Thiago


remember, there was an issue with Apache [email] servers, at least that is
what i heard on tomcat user list. :)


Re: CDI not working inside EAR with Atmosphere (BeanManager)

2014-04-23 Thread Howard W. Smith, Jr.
José,

When you get a chance, can you retest your test case with Romain's fix
(below), and report your test results ?



On Tue, Apr 22, 2014 at 7:17 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 surely linked to https://issues.apache.org/jira/browse/TOMEE-1183


 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau


 2014-04-22 18:36 GMT+02:00 José Luis Cetina maxtorz...@gmail.com:
  My tomee runs already under C:\tomee, in the related topic, i uploaded a
  maven project that you can check it, this is a TomEE problem.
 
 
  2014-04-22 11:28 GMT-05:00 Romain Manni-Bucau rmannibu...@gmail.com:
 
  Well first check basic things like spaces etc, can be a hidden bug
  until now. Basically try to deploy in c:\tomee. If the issue is still
  here we'll try to have a deeper look. But we have a lot of win users
  and a really blocking win issue would have popped earlier I guess.
 
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
  2014-04-22 18:25 GMT+02:00 José Luis Cetina maxtorz...@gmail.com:
   Hi, my problem was i mean IS with CODI using Windows.
  
   Here is the conversation:
  
 
 http://openejb.979440.n4.nabble.com/No-bean-found-for-type-org-apache-myfaces-extensions-cdi-jsf-api-config-JsfModuleConfig-td454.html
  
   @Romain, maybe this is realted i hope you can have a windows pc for
 check
   it!!
  
  
  
   2014-04-22 11:09 GMT-05:00 Howard W. Smith, Jr. 
 smithh032...@gmail.com
  :
  
   Jose' can advise on this when he gets some time. Jose' is doing EARs
 +
  CDI
   + TomEE for some/many months now.
  
   Jose', please advise on this topic at your earliest convenience.
  
   I think Jose' had to use BeanManager and had to use the JNDI name
  specified
   in the tomee/catalina log when tomee starts. I could be wrong.
  
  
  
   On Tue, Apr 22, 2014 at 12:04 PM, Lars Knemeyer 
  lars.kneme...@gmail.com
   wrote:
  
Ok, the problem seems to be platform-related.
   
I started the same TomEE 1.6.1 SNAPHOT on two Windows 7 systems and
  one
Windows Server 2008 R2 (all with the latest JDK 7_55) and it
 failed in
   all
three cases (with the described error).
Then I started the same TomEE server (I used the same prepared zip
 in
  all
cases) on a (virtual) Ubuntu 13.10 machine with OpenJDK as well as
  Oracle
JDK and in both cases the sample worked without a problem (as you
   described
it).
   
So it seems to be a Windows-specific problem (I first suspected
 it's
  the
Oracle JDK, but it works with that also on Ubuntu). I just don't
 know
   what
to do with this finding.
   
   
   
--
View this message in context:
   
  
 
 http://openejb.979440.n4.nabble.com/CDI-not-working-inside-EAR-with-Atmosphere-BeanManager-tp4668939p4668948.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
   
  
  
  
  
   --
   ---
   *José Luis Cetina*
   ---
 
 
 
 
  --
  ---
  *José Luis Cetina*
  ---



Re: Fat example for tomee.maven.plugin

2014-04-12 Thread Howard W. Smith, Jr.
Download button = emails sent to this list

Download = Romain's response from his brain (and fingers)

:-)

On Sat, Apr 12, 2014 at 6:11 AM, Karl Kildén karl.kil...@gmail.com wrote:

 Can I download your brain somewhere?


Re: TomEE performance degrades gradually

2014-04-09 Thread Howard W. Smith, Jr.
+1 you all!



On Wed, Apr 9, 2014 at 1:31 PM, Romain Manni-Bucau rmannibu...@gmail.comwrote:

 FYI https://issues.apache.org/jira/browse/TOMEE-1175
 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2014-04-09 17:29 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
  I think that's related to
  org.apache.openejb.core.ivm.BaseEjbProxyHandler#equals which seems no
  more adapted
 
  Index:
 container/openejb-core/src/main/java/org/apache/openejb/core/ivm/BaseEjbProxyHandler.java
  ===
  ---
 container/openejb-core/src/main/java/org/apache/openejb/core/ivm/BaseEjbProxyHandler.java
  (revision 1585987)
  +++
 container/openejb-core/src/main/java/org/apache/openejb/core/ivm/BaseEjbProxyHandler.java
  (working copy)
  @@ -480,10 +480,12 @@
   if (obj == null) {
   return false;
   }
  -try {
  -obj = ProxyManager.getInvocationHandler(obj);
  -} catch (final IllegalArgumentException e) {
  -return false;
  +if (!BaseEjbProxyHandler.class.isInstance(obj)) {
  +try {
  +obj = ProxyManager.getInvocationHandler(obj);
  +} catch (final IllegalArgumentException e) {
  +return false;
  +}
   }
   if (this == obj) {
   return true;
 
 
  should fix it
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2014-04-09 14:21 GMT+02:00 Anthony Fryer apfr...@hotmail.com:
  Hi Ivan,
 
  I duplicated your results using the test case you uploaded and saw a
 steady
  performance degredation.  I was wondering if this was related to jpa,
 or the
  fact you're using ejb2, so i created a similar test case using ejb 3
 entity
  beans, based on the injection-of-entitymanager test case.  My test
 case is
  here...
 
  injection-of-entitymanager.zip
  
 http://openejb.979440.n4.nabble.com/file/n4668673/injection-of-entitymanager.zip
 
 
  Thankfully, i'm not seeing the same issue using ejb 3, so it looks like
 the
  problem is isolated to the use of ejb2 cmp entity beans.
 
 
 
  --
  View this message in context:
 http://openejb.979440.n4.nabble.com/TomEE-performance-degrades-gradually-tp4668090p4668673.html
  Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: TomEE performance degrades gradually

2014-04-04 Thread Howard W. Smith, Jr.
On Fri, Apr 4, 2014 at 6:39 AM, Howard W. Smith, Jr. smithh032...@gmail.com
 wrote:


 On Fri, Apr 4, 2014 at 5:46 AM, ivan nikitsenka nikitse...@gmail.comwrote:


   query
 description/description
 query-method
   method-namefindAll/method-name
   method-params/method-params
 /query-method
 ejb-qlselect object(o) from BreakReason o order by
 o.reasonDesc/ejb-ql
   /query


 Seriously? ORDER BY a 'reasonDesc'?

 Every now and then, I am opening jvisualvm (Java Visual VM) and profiling
 (or checking the performance) on certain parts of my app, and more and
 more, I am removing,

 ORDER BY ...

 from my queries, and reverting to Collections.sort() + Comparator.

 Is there an index on this 'reasonDesc'? What is 'reasonDesc'.length(), on
 average?

 If this is the reason why TomEE [and your app] is degrading, then please
 change your query, and remove the ORDER BY ..., and sort your data some
 other way.

 Refer to your database tuning document. I use Apache Derby, and they have
 a very nice/comprehensive 'Tuning Derby' guide that I have referred to in
 the past, when my app went to production.


I have seen/heard MyFaces and/or TomEE committers say/recommend that they
do a lot of 'caching' to improve the performance of their app. Caching
what? Caching data that can [or should] be cached.

Can the result set of the following be cached in an @ApplicationScoped bean
(when app starts OR on the first time that the query is needed/executed)?

ejb-qlselect object(o) from BreakReason o order by o.reasonDesc/ejb-ql

In my app, there are a few queries, where the result set is used in a
dropdown (or JSF selectOneMenu). I cache the result set of those queries in
@PostConstruct of my [one and only] @ApplicationScoped bean.

Will TomEE [or my/your app] 'degrade' when caching such result sets? No,
because TomEE [or my/your app] will not need [or refer to] a @Stateless
@EJB to get this data during runtime...so many times.

Also to clarify what I said earlier about removing ORDER BY ...,

yes, I have some quite complex SQL, and when I profile the app (via
jvisualvm), I find that Apache Derby source code is not performing well
with [my] SQL and/or [my] database design, etc...

So, I replace ORDER BY ... with Collections.sort() + Comparator.

Also, as Jean-Louis asked/recommended, I have a [small] statement cache
setting on my database Resource .../

Resource id=jdbc/mcmsJta type=javax.sql.DataSource
  JdbcDriver org.apache.derby.jdbc.EmbeddedDriver
  JdbcUrl jdbc:derby:C:/javadb/databases/...;create=true
  ...
  jdbcInterceptors=StatementCache(max=128)
/Resource

Also, I am using JPA @NamedQueries on many of the popular/most-used queries
in the app, especially those that are more complex and don't [always]
perform well.

Also, my JPA = EclipseLink, and I use query hints, see below.

public ListDriver findAllAvailableSelectOne() {
return em.createNamedQuery(Driver.findAllAvailableSelectOne)
 .setHint(eclipselink.query-results-cache, true)
 .setHint(eclipselink.read-only, true)
 .getResultList();
}

where the @NamedQuery is defined as follows:

@NamedQuery(name = Driver.findAllAvailableSelectOne, query = SELECT
d FROM Driver d WHERE d.includeInLookupList = 'Y' ORDER BY d.driverName),

Interesting, I could probably cache the result set of this query in my
@ApplicationScoped bean, but d.includeInLookupList can/may be changed by
enduser, sometime during runtime, but enduser does not change that value
unless Driver/Employee is terminated or hired. :)

I may have to write some code to cache this result set in my
@ApplicationScoped bean, and if enduser changes any 'Driver' in the
database, then I will have to update the ListDriver in my
@ApplicationScoped bean. Hmmm, thanks for calling my attention to this
query in my app. :)


Re: TomEE performance degrades gradually

2014-04-04 Thread Howard W. Smith, Jr.
On Fri, Apr 4, 2014 at 7:07 AM, Howard W. Smith, Jr. smithh032...@gmail.com
 wrote:

 yes, I have some quite complex SQL, and when I profile the app (via
 jvisualvm), I find that Apache Derby source code is not performing well
 with [my] SQL and/or [my] database design, etc...


Correction, EclipseLink and/or Derby may not be performing well with 'my'
SQL in 'my' app. :)


Re: TomEE performance degrades gradually

2014-04-04 Thread Howard W. Smith, Jr.
On Fri, Apr 4, 2014 at 7:21 AM, Jean-Louis MONTEIRO jeano...@gmail.comwrote:

 I tend to disagree with that.
 Each part of a system has it's own goal and scope.

 Database is for data so I tend to use it as much as possible for sorting,
 joining, etc, instead of relaying on Java for sorting collections or even
 JPA to get a parent, then all childs, then all childs but applying a
 filter.

 But I would agree on the sense that each part (App Server, Database, etc)
 must be tuned according to your SLA and the overall architecture.
 So yes, take care of returning a large resultset to avoid heavy GC
 workload, and check if you have an index and if it's used (explain in mysql
 or any other database specific way to check the execution plan).

 JLouis


+1 I agree, Jean-Louis. Thanks! :)


Re: [build error] feedback 2

2014-04-03 Thread Howard W. Smith, Jr.
On Thu, Apr 3, 2014 at 5:53 AM, helio frota 00h...@gmail.com wrote:

 and wow, i never heard anyone call their computer a(n incredible) 'hulk
 server'. :)

 haha : ]

 Maybe you never heard anyone too putting ice under toshiba satellite L305
 with raw gentoo to prove that OpenJDK can build with only 2GB :p


you're right! :)


Re: [build error] feedback 2

2014-04-02 Thread Howard W. Smith, Jr.
On Tue, Apr 1, 2014 at 7:13 AM, Romain Manni-Bucau rmannibu...@gmail.comwrote:

 seems your machine is too slow ;)


wow, can't believe you said that! :-P


Re: TomEE and javamail

2014-03-31 Thread Howard W. Smith, Jr.
On Mon, Mar 31, 2014 at 4:28 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 remove geronimo jar from your webapp (javamail one in particular)


+1 I see this recommendation a lot on this list. :)

now, time to be nitpicky..., is geronimo javamail JAR bundled with tomee
for [javamail] license issues or just to pass Java EE (6) TCKs? which
test/TCK is the reason why geronimo javamail is bundled with tomee?


Re: [build] error

2014-03-26 Thread Howard W. Smith, Jr.
On Wed, Mar 26, 2014 at 7:37 PM, Thiago Veronezi thi...@veronezi.orgwrote:

 are you using java 8?


good question, i was going to ask the tomee user list, eventually, if java
8 is recommended to use with tomee.


Re: jsf responsive tutorial

2014-03-26 Thread Howard W. Smith, Jr.
On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida shik...@gmail.comwrote:

 I also wish we could have such a tutorial...


Maybe someone will be kind enough to write/do a blog about this... some
day. :)



 In general, I think you can make your jsf app be responsive if you keep as
 little data in the presentation layer as possible.


i think a responsive web design solution will consider the device and
browser, and 'respond' with a view that looks good in a browser on
any/every device. For example, when I open a [JSF] page in a browser on
mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but the
page will be rendered appropriately on/per device.

So, responsive != 'little data in presentation layer'.

it is 'always' best to render as little data as possible in/on any device
(mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of rows
of data on a page that is displayed on a laptop/desktop and force your
users to continuously scroll up and down the page to view/modify the data?

of course, on a mobile device, your HTTP response should be as small as
possible, just in case the mobile device does not have a fast [internet]
connection.

when someone else asked this question in the primefaces forum, someone
responded with twitter bootstrap. i looked at some of the demos [briefly],
and bootstrap gave me the impression that pages 'can' look good on a mobile
device without zooming in/out, and page can primarily be a page of any
length, but fits/renders well on the mobile device without zooming in/out.

since i have been a primefaces mobile user, i was not really impressed with
twitter bootstrap. if you are good with html, css, javascript, jquery,
etc..., then go for twitter bootstrap (or jquery mobile). if you want
primefaces tags and less html/css, then go for primefaces mobile.



 This means some tricks like lazy loading, paging table data in database
 [1], using autocomplete instead of lengthy select boxes, etc.


autocomplete on a mobile device can be tricky.

i don't think anybody should have lengthy select boxes...even on
desktop/laptops.



 I´ve started working with JSF using richfaces 2-3 years ago and now I am a
 primefaces big fan. Both are OK, but I think primefaces has some very
 interesting features.


+1

PrimeFaces blog[1]
PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
PrimeFaces showcase[3]
PrimeFaces Labs showcase[4]
jquery Mobile - Responsive Web Design[5]


[1] http://blog.primefaces.org/
[2] http://blog.primefaces.org/?p=3063
[3] www.primefaces.org/showcase/ui/home.jsf
[4] http://www.primefaces.org/showcase-labs/ui/home.jsf
[5] http://demos.jquerymobile.com/1.4.2/rwd/


Re: [build] error

2014-03-26 Thread Howard W. Smith, Jr.
+1 go for it, Thiago, and let us know. maybe make a separate post on the
list, please. :)



On Wed, Mar 26, 2014 at 8:16 PM, Thiago Veronezi thi...@veronezi.orgwrote:

 Hi,
 I didn't manage to make it build with Java 8 yet. I guess I will check if I
 can at least run the server with it.
 []s,
 Thiago


 On Wed, Mar 26, 2014 at 7:46 PM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

  On Wed, Mar 26, 2014 at 7:37 PM, Thiago Veronezi thi...@veronezi.org
  wrote:
 
   are you using java 8?
 
 
  good question, i was going to ask the tomee user list, eventually, if
 java
  8 is recommended to use with tomee.
 



Re: jsf responsive tutorial

2014-03-26 Thread Howard W. Smith, Jr.
On Wed, Mar 26, 2014 at 8:35 PM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:


 On Wed, Mar 26, 2014 at 7:58 PM, Leonardo K. Shikida shik...@gmail.comwrote:

 I also wish we could have such a tutorial...


 Maybe someone will be kind enough to write/do a blog about this... some
 day. :)



 In general, I think you can make your jsf app be responsive if you keep as
 little data in the presentation layer as possible.


 i think a responsive web design solution will consider the device and
 browser, and 'respond' with a view that looks good in a browser on
 any/every device. For example, when I open a [JSF] page in a browser on
 mobile phone or tablet, I should 'not' have to zoom-in or zoom-out, but the
 page will be rendered appropriately on/per device.

 So, responsive != 'little data in presentation layer'.

 it is 'always' best to render as little data as possible in/on any device
 (mobile phone, tablet, laptop, desktop, etc...). why render 1,000s of rows
 of data on a page that is displayed on a laptop/desktop and force your
 users to continuously scroll up and down the page to view/modify the data?

 of course, on a mobile device, your HTTP response should be as small as
 possible, just in case the mobile device does not have a fast [internet]
 connection.

 when someone else asked this question in the primefaces forum, someone
 responded with twitter bootstrap. i looked at some of the demos [briefly],
 and bootstrap gave me the impression that pages 'can' look good on a mobile
 device without zooming in/out, and page can primarily be a page of any
 length, but fits/renders well on the mobile device without zooming in/out.

 since i have been a primefaces mobile user, i was not really impressed
 with twitter bootstrap. if you are good with html, css, javascript, jquery,
 etc..., then go for twitter bootstrap (or jquery mobile). if you want
 primefaces tags and less html/css, then go for primefaces mobile.



 This means some tricks like lazy loading, paging table data in database
 [1], using autocomplete instead of lengthy select boxes, etc.


 autocomplete on a mobile device can be tricky.

 i don't think anybody should have lengthy select boxes...even on
 desktop/laptops.



 I´ve started working with JSF using richfaces 2-3 years ago and now I am a
 primefaces big fan. Both are OK, but I think primefaces has some very
 interesting features.


 +1

 PrimeFaces blog[1]
 PrimeFaces Mobile Reloaded[2] (briefly mentions responsive design)
 PrimeFaces showcase[3]
 PrimeFaces Labs showcase[4]
 jquery Mobile - Responsive Web Design[5]


And with all that said, I use an open source library to examine useragent
when user login to the web app, and render JSF content for mobile or
nonmobile devices. it is not 'true' responsive web design, because endusers
still have to zoom in/out on their mobile devices. I am hoping to use
PrimeFaces Mobile, jquery mobile, and/or [twitter] bootstrap for true
responsive web design. :)



 [1] http://blog.primefaces.org/
 [2] http://blog.primefaces.org/?p=3063
 [3] www.primefaces.org/showcase/ui/home.jsf
 [4] http://www.primefaces.org/showcase-labs/ui/home.jsf
 [5] http://demos.jquerymobile.com/1.4.2/rwd/




Re: Transaction issue for MDB in cluster environment

2014-03-24 Thread Howard W. Smith, Jr.
Is it possible that you are running multiple tomee's on one server/machine,
and using default activemq config?



On Mon, Mar 24, 2014 at 9:54 AM, tschuler thomas.schu...@opentext.comwrote:

 Hi,

 we have a TomEE Webprofile 1.6.0 where we have ActiveMQ 5.9 integrated.
 We have a simple application which is deployed as EAR file.
 In this application we have a JMS queue associated with a MDB (Message
 Driven Bean).
 We also have a stateless session bean for sending messages to the JMS
 queue.

 When we start the application in a single node it works fine - sent
 messages
 are consumed by the MDB without errors.
 If we start the application in a load balancing cluster with two nodes and
 send multiple messages, we get warnings in the log file and the according
 messages are redelivered.

 Mrz 24, 2014 2:09:37 PM org.apache.activemq.broker.TransportConnection
 serviceException
 WARNING: Async error occurred:
 javax.transaction.xa.XAException: Transaction

 'XID:[1197822575,globalId=400047544d4944000,branchId=100047544d4944000]'
 has not been started.
 at

 org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:368)
 at

 org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:273)
 at

 org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:92)
 at

 org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:476)
 at
 org.apache.activemq.command.MessageAck.visit(MessageAck.java:236)
 at

 org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
 at

 org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:149)
 at

 org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
 at

 org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
 at

 org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)
 at

 org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
 at
 org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
 at
 org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
 at java.lang.Thread.run(Thread.java:722)

 The JMS Broker is configured in a failover scenario:

 Resource id=MyJmsResourceAdapter type=ActiveMQResourceAdapter
   BrokerXmlConfig
 broker:(tcp://localhost:51516)?persistent=trueamp;useJmx=false
   ServerUrl =
 failover:(tcp://localhost:51515,tcp://localhost:51516)?randomize=false
   DataSource myDatabase
 /Resource

 The error occurs only when we start both nodes and after the start we send
 the messages.

 We have also adopted the openejb.deploymentId.format setting in
 system.properties to get an unique name for the MDB on each node.

 Has someone an idea why this is happening and how we can prevent this
 error?

 Best regards,
 Thomas



 --
 View this message in context:
 http://openejb.979440.n4.nabble.com/Transaction-issue-for-MDB-in-cluster-environment-tp4668327.html
 Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: Strange EAR issue and versioning

2014-03-18 Thread Howard W. Smith, Jr.
On Mar 18, 2014 5:11 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote:

 Hi

 6.6.6 is a bad number and tomee doesn't like it ;)


+1 Romain :-)


Re: Installing TomEE as a Service Windows 7 x64

2014-03-18 Thread Howard W. Smith, Jr.
Installing TomEE as a Windows Service on Windows 7/XP/Server [2003 or 2008
or 2012] should be the same as installing Tomcat7 as windows service.

Before i installed tomEE as windows service, I familiarized myself with
installing tomcat7 as windows service, and then I removed the tomcat7
windows service, and then I installed tomee as windows service.

i used commandline (like you), but i think it's best to familiarize
yourself with the commandline options when installing tomcat7/tomee as
windows service.

also, you may want to make sure the [installing] user has administrator
rights on the windows [7] computer.

after reading this, let me know if this helps, and what you did to install
tomee as windows service.

hmmm, also, you can use tomcat7w.exe to verify the tomee windows service
installation, modify windows service options (java options, etc...).

it has been months since i did this. i'm replying based on what i can
remember. :)



On Tue, Mar 18, 2014 at 10:16 AM, Vinícius Moselli 
vinicius.mose...@gmail.com wrote:

 Hi guys,

 I'm having some trouble when i try to run my TomEE service installed on
 Windows 7 x64.

 Here is the log:

 C:\Java\apache-tomee-webprofile-1.6.0\binTomEE.amd64.exe
 [2014-03-18 10:59:33] [warn]  [ 6056] The system cannot find the Registry
 key for service 'TomEE.amd64'
 [2014-03-18 10:59:33] [error] [ 6056] Load configuration failed
 [2014-03-18 10:59:33] [error] [ 6056] The system cannot find the file
 specified.
 [2014-03-18 10:59:33] [error] [ 6056] Commons Daemon procrun failed with
 exit value: 2 (Failed to load configuration)
 [2014-03-18 10:59:33] [error] [ 6056] The system cannot find the file
 specified.

 Does anyone faced such problem yet?

 I looked at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software
 Foundation\Procrun 2.0\TomEE and the key is there, tried to rename to
 TomEE.amd64 but didn't work aswell.

 How can i solve it?

 Thanks in advance.

 Vinícius Moselli



Re: Installing TomEE as a Service Windows 7 x64

2014-03-18 Thread Howard W. Smith, Jr.
Very good. Thanks for the followup.
 On Mar 18, 2014 1:52 PM, Vinícius Moselli vinicius.mose...@gmail.com
wrote:

 Howard,

 After reading your reply and some tips on the internet (google) i figured
 it was lack of adminsitrator privileges on my server machine from the user
 i was trying to install the service.

 After running cmd with administrator privileges, removed the service
 installed before and installed again. Everything works.

 Thanks!


 2014-03-18 14:26 GMT-03:00 Howard W. Smith, Jr. smithh032...@gmail.com:

  Installing TomEE as a Windows Service on Windows 7/XP/Server [2003 or
 2008
  or 2012] should be the same as installing Tomcat7 as windows service.
 
  Before i installed tomEE as windows service, I familiarized myself with
  installing tomcat7 as windows service, and then I removed the tomcat7
  windows service, and then I installed tomee as windows service.
 
  i used commandline (like you), but i think it's best to familiarize
  yourself with the commandline options when installing tomcat7/tomee as
  windows service.
 
  also, you may want to make sure the [installing] user has administrator
  rights on the windows [7] computer.
 
  after reading this, let me know if this helps, and what you did to
 install
  tomee as windows service.
 
  hmmm, also, you can use tomcat7w.exe to verify the tomee windows service
  installation, modify windows service options (java options, etc...).
 
  it has been months since i did this. i'm replying based on what i can
  remember. :)
 
 
 
  On Tue, Mar 18, 2014 at 10:16 AM, Vinícius Moselli 
  vinicius.mose...@gmail.com wrote:
 
   Hi guys,
  
   I'm having some trouble when i try to run my TomEE service installed on
   Windows 7 x64.
  
   Here is the log:
  
   C:\Java\apache-tomee-webprofile-1.6.0\binTomEE.amd64.exe
   [2014-03-18 10:59:33] [warn]  [ 6056] The system cannot find the
 Registry
   key for service 'TomEE.amd64'
   [2014-03-18 10:59:33] [error] [ 6056] Load configuration failed
   [2014-03-18 10:59:33] [error] [ 6056] The system cannot find the file
   specified.
   [2014-03-18 10:59:33] [error] [ 6056] Commons Daemon procrun failed
 with
   exit value: 2 (Failed to load configuration)
   [2014-03-18 10:59:33] [error] [ 6056] The system cannot find the file
   specified.
  
   Does anyone faced such problem yet?
  
   I looked at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software
   Foundation\Procrun 2.0\TomEE and the key is there, tried to rename to
   TomEE.amd64 but didn't work aswell.
  
   How can i solve it?
  
   Thanks in advance.
  
   Vinícius Moselli
  
 



Re: What is the meaning of: javax.ejb.Stateless

2014-03-06 Thread Howard W. Smith, Jr.
Romain, I think there has been some [recent] discussion on this user/mail
list, and I think it was mentioned that there is 3 async thread/instances
in the pool, and/so it may be likely that @Stateless beans may be
used/referenced.

in the past, earlier versions of tomee [1.6.0 final and snapshot releases],
it seemed as though my @Stateless beans were referenced again and again,
and data retrieved from database via these @Stateless beans...were not
updated.

i'm using January 2014 version of tomee 1.6.1 snapshot, now, and i don't
see this behavior any more, and now my @stateless beans seem to be meeting
[my] expectations [now]. of course, i'm happy about that.



On Thu, Mar 6, 2014 at 11:47 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 actually if you stress a bit your app you'll see it is not the case,
 in a single threaded case you can be lucky :)
 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2014-03-06 17:45 GMT+01:00 José Luis Cetina maxtorz...@gmail.com:
  I guess the container is giving you the same ejb thats why have some
 state.
 
 
  2014-03-06 10:42 GMT-06:00 Martin Funk mafulaf...@gmail.com:
 
  Hi again,
 
  still at a very early stage of conquering the domain of TomEE+.
 
  I have a question on javax.ejb.Stateless. In the specs I read that in
 the
  area of SOAP based web services, which are implemented by an EJB
 component
  the class implementing the endpoint must be annotated @Stateless or
  @Singleton.
 
  I got curious on what would happen if the class was annotated @Statless
  even though the instances were not 'Stateless'
  Exceptions were expected, but non were thrown.
 
  Code Service:
  package de.jaxws.soap.ejb;
 
  import javax.ejb.Stateless;
  import javax.jws.WebService;
 
  @WebService
  @Stateless
  public class SoapEjb {
 
  private int i;
 
  public String helloEJB() {
  return helloEJB again : + i++;
  }
  }
 
  Code Client (supporting Classes were generated using wsimport):
  package de.jaxws.soap.client;
 
 
  import de.jaxws.soap.client.SoapEjb;
  import de.jaxws.soap.client.SoapEjbService;
 
  public class Client {
 
  public static void main(String[] args) {
 
  SoapEjbService service = new SoapEjbService();
  SoapEjb port = service.getPort(SoapEjb.class);
  for (int i = 0; i  10; i++) {
  System.out.println(port.helloEJB());
  }
  }
 
  }
 
  Output of Client:
  helloEJB again :0
  helloEJB again :1
  helloEJB again :2
  helloEJB again :3
  helloEJB again :4
  helloEJB again :5
  helloEJB again :6
  helloEJB again :7
  helloEJB again :8
  helloEJB again :9
 
  Could someone please give me a hint on what I'm misunderstanding?
 
  Cheers,
 
  Martin
 
 
 
 
  --
  ---
  *José Luis Cetina*
  ---



Re: disable log for Removing non-required WorkContextHandler INFO messages

2014-03-05 Thread Howard W. Smith, Jr.
Correct. I wanted this for the longest time, and mentioned it a few times
in the list, finally the last time I sent mail about it, we finally
resolved it via Romain's recommended solution in this thread. :-)
 On Mar 5, 2014 8:17 AM, Leonardo K. Shikida shik...@gmail.com wrote:

 sorry, I was wrong

 it was an eclipse issue

 your answer was right

 thanks

 []

 Leo


 On Wed, Mar 5, 2014 at 10:04 AM, Leonardo K. Shikida shik...@gmail.com
 wrote:

  you mean
 
  - edit $tomee/config/logging.properties
  - comment handlers = 1catalina.org.apache.juli.FileHandler,
  2localhost.org.apache.juli.FileHandler,
  3manager.org.apache.juli.FileHandler,
  4host-manager.org.apache.juli.FileHandler,
 java.util.logging.ConsoleHandler
  - uncomment handlers = 1catalina.org.apache.juli.FileHandler,
  2localhost.org.apache.juli.FileHandler,
  3manager.org.apache.juli.FileHandler,
  4host-manager.org.apache.juli.FileHandler,
  5tomee.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
  - uncomment org.apache.geronimo.handlers =
  5tomee.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
  - uncomment the TOMEE HANDLER SAMPLE: whole section
  - keep the default org.apache.geronimo.level = SEVERE
 
  ?
 
  it didn't work :-(
 
  []
 
  Leo
 
 
  On Tue, Mar 4, 2014 at 11:13 AM, Romain Manni-Bucau 
 rmannibu...@gmail.com
   wrote:
 
  Hi
 
  just configure logs to not print it, IIRC org.apache.geronimo = SEVERE
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2014-03-04 15:11 GMT+01:00 Leonardo K. Shikida shik...@gmail.com:
   Hi
  
   I have logs like this
  
   INFO - Removing non-required WorkContextHandler with no context:
   org.apache.geronimo.connector.work.TransactionContextHandler@31aba72e
   INFO - Removing non-required WorkContextHandler with no context:
   org.apache.openejb.core.security.SecurityContextHandler@d5ba1ef
   INFO - Removing non-required WorkContextHandler with no context:
   org.apache.geronimo.connector.work.HintsContextHandler@539bf7d0
  
   how do I disable this message from logging?
  
  
   []
  
   Leo
 
 
 



  1   2   3   4   5   >