Servlet, CDI, EJB

2014-02-10 Thread Martin Funk
Hi, I have a questions of understanding. As I understand servlets instantiated in an TomEE Server are under control of CDI (if a beans.xml is present) and of EJB. Is that behavior part of the JEE Spec or is that a property of the TomEE Container? I assume the later. Is there a way to configur

Re: Servlet, CDI, EJB

2014-02-10 Thread Romain Manni-Bucau
Hi servlet are managed by servlet container but is integrated a with CDI/EJB/Resource... as per JavaEE spec. You can use Deltaspike BeanProvider to integrate CDI with any class (or redo the same logic which is simple and depend on BeanManager available using a lookup from any webapp) Romain Manni

Apache TomEE - unable to access “TomEE GUI”, “Server Status”, “Manager App” and “Host Manager” services

2014-02-10 Thread wlad
I am working with some JEE web app using Apache TomEE (apache-tomee-plus-1.5.2 on localhost) and trying to access these services from links on TomEE's home page. Now, I remember that earlier when I was starting with developing JEE apps, I was deploying some simple exercises to TomEE server, apps w

JPA cascade persisting

2014-02-10 Thread Chris Christo
Hi, I was hoping someone could help shed some light on the following issue. (I am using OpenEJB 4.6.1-SNAPSHOT) I have a problem when trying to save a bean that has child elements (relationships to other tables). The problem occurs when I want to create a completely new record with completely

org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste. {SELECT t0.STATUS_ID, t0.DESCRIPTION FROM CONSULTANT_STATUS t0} [code=-1, state=42X05] at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:219)

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread Romain Manni-Bucau
Hmm is the question missing? did you create your table (using buildSchema?)? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 12:32 GMT+01:00 mauro2java2011 : > Caus

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
yes , org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: Error reading 'items' on type jsf.ConsultantStatusController$$OwbNormalScopeProxy0 at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:104

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd";> org.apache.openjpa.persistence.PersistenceProviderImpl jdbc/myconsulting

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
https://github.com/maurojava/ConsultingRifattoTomeePrimefaces.git 2014-02-10 12:37 GMT+01:00 Romain Manni-Bucau [via OpenEJB] < ml-node+s979440n4667585...@n4.nabble.com>: > Hmm > > is the question missing? did you create your table (using buildSchema?)? > Romain Manni-Bucau > Twitter: @rmannibuc

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Thiago Veronezi
Hi, The GUI of TomEE 1.5.2 is very buggy. Can you try the version 1.6.0? Use TomEE JAX-RS or Plus and drop the GUI war [ http://www.apache.org/dyn/closer.cgi/tomee/tomee-1.6.0/tomee-webaccess-1.6.0.war ] You should create a user with the "tomee-admin" role. []s, Thiago. On Mon, Feb 10, 2014 at

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread agumbrecht
How is your DataSource defined? The error is simply that the table does not exist, so maybe one of your DataSources is pointing at the wrong place? Andy. -- View this message in context: http://openejb.979440.n4.nabble.com/org-apache-openjpa-lib-jdbc-ReportingSQLException-Tabella-Vista-CONSULT

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Thiago Veronezi
Ah, once you have the webaccess installed, you can retrieve your beans with this groovy script... // ** import java.util.Properties import javax.naming.Context import javax.naming.InitialCon

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
Into the web-inf/resoyrces i have : ?xml version="1.0" encoding="UTF-8"?> jdbcDriver org.apache.derby.jdbc.ClientDriver password app userName app jdbcUrl jdbc:derby://localhost:1527/consultDB JtaManaged true jdbcDriver org.apache.derby

TomEE with JSF Composite

2014-02-10 Thread molarisapa
Hello I'm new user of TomEE from Paris My application work perfectly in Glassfish v3./i/, but it's too slow. So I decided to try TomEE My app deals with : CDI, EJB Lite, Richfaces, JSF2 and some *JSF Composite* I had create my own composite in directory : \src\main\webapp\resources\maia\form\m

Re: TomEE with JSF Composite

2014-02-10 Thread Jean-Louis MONTEIRO
I've used all that stuff without any issue. Strange point is that the warning message does not seem related to the composite.xhtml nor the namespace declared in it. JLouis 2014-02-10 14:18 GMT+01:00 molarisapa : > Hello > > I'm new user of TomEE from Paris > > My application work perfectly in G

Re: TomEE with JSF Composite

2014-02-10 Thread Romain Manni-Bucau
Hi I remember a myfaces issue making composite failing in subdirectories (was a dark part of the spec so maybe not a bug ;) PS: composite are generally slow so maybe you should just convert it to a real component Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ Lin

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread wlad
I tried next, but with no success: First, I have downloaded TomEE 1.6.0 version, and copied its "tomee" app/folder (/[tomee-1.6.0/webapps/tomee])/ to the webapps folder of /tomee-1.5.2/, one I am curently using. (of course, previously I have moved old "tomee" folder, from /tomee-1.5.2/webapps/ to

[RESOLVED] TomEE with JSF Composite

2014-02-10 Thread molarisapa
It's ok, I just resolved this issue I had put a sub directory into directory, like this : .\src\main\webapp\resources\*maia\form*\dateInputText.xhtml .\src\main\webapp\resources\*maia\core*\headerDatatable.xhtml And I declared its like this : xmlns:mc="http://java.sun.com/jsf/composite/*maia/fo

Re: TomEE with JSF Composite

2014-02-10 Thread molarisapa
thanks a lot and Romain Manni-Bucau > you're faster than me, I'm not see that you had write the correct answer ;-) -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-with-JSF-Composite-tp4667598p4667603.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE with JSF Composite

2014-02-10 Thread Jean-Louis MONTEIRO
Romain is always faster than anybody else :D 2014-02-10 15:08 GMT+01:00 molarisapa : > thanks a lot > > and Romain Manni-Bucau > you're faster than me, I'm not see that you had > write the correct answer ;-) > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/TomEE-

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Thiago Veronezi
Hi, please note that "tomee" and "webaccess" are two different applications. "tomee" is what makes it possible to do something like. Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory"); p.put(Context.PROVIDER_URL, "http:

Re: SLF4J Bindings

2014-02-10 Thread Trevor Stevens
Looks like this wasn't an issue after all. After enabling "openejb.check.classloader = true" I found that the war contained apacheds-all which embeds an old slf4j classes within itself. After removing the offending jar logging seems to work as expected. Trevor Stevens tstev...@me.com On Feb 7

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Romain Manni-Bucau
actually tomee can be completely deleted it will still works Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 16:09 GMT+01:00 Thiago Veronezi : > Hi, > please note th

Re: TomEE creating internal broker?

2014-02-10 Thread m1000
Thanks. Its kind of working ! The Connector part was the one I was missing. I do have another problem, but I'll create a new post. -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-creating-internal-broker-tp4667418p4667608.html Sent from the OpenEJB User mailing list a

More than 10 consumers

2014-02-10 Thread Leonardo K. Shikida
Hi I was following this to try to push more MDBs do consume from a single queue http://openejb.979440.n4.nabble.com/30-Limit-td981453.html I am trying this tomee.xml BrokerXmlConfig = xbean:file:/pathto/activemq.xml ServerUrl = tcp://0.0.0.0:61616 threadPoolSize 10

Re: More than 10 consumers

2014-02-10 Thread Romain Manni-Bucau
Hi any specific config in your activemq.xml which could limit it? maybe check through jmx (active it in activemq.xml) you have not a limit set) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.co

Re: More than 10 consumers

2014-02-10 Thread Leonardo K. Shikida
My activemq is this. Limits look pretty high for me. http://www.springframework.org/schema/beans"; xmlns:amq=" http://activemq.apache.org/schema/core"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://ww

Re: More than 10 consumers

2014-02-10 Thread Romain Manni-Bucau
Seems ok. Are your threads waiting for amq? Le 10 févr. 2014 18:15, "Leonardo K. Shikida" a écrit : > My activemq is this. Limits look pretty high for me. > > > http://www.springframework.org/schema/beans"; xmlns:amq=" > http://activemq.apache.org/schema/core"; xmlns:xsi=" > http://www.w

Usage of ThreadPoolExecutor in TomEE

2014-02-10 Thread Johnny Macnum
Hello, I'm using the framework Activiti for dealing with BPM projects. In Activiti, a job executor exists to handle asynchronous tasks. It manages this via ThreadPoolExecutor. I'm wondering what kinds of issues can happen if I try to use this feature in TomEE. Does anybody have already tried to

Re: DB connection issues after upgrade from 1.5.2 to 1.6.0

2014-02-10 Thread Poindexter, Miles
Hi Romain, I wanted to update you that we are seeing the same errors with the DataSourceCreator = dbcp. The only fix that works has been to revert to version 1.5.2. Are there any significant differences in how 1.6.0 is handling DB connections? Can't upgrade until we resolve this. example msgs:

Re: More than 10 consumers

2014-02-10 Thread Leonardo K. Shikida
not sure how do I check that I only have one producer that enqueues like 10K messages at once and then consumers start to consume (each message is processed in 2-3 minutes by the MDB) sometimes it reaches 20 consumers, but usually it stabilizes in 10 consumers (everytime one MDB is consuming, I s

Re: org.apache.openjpa.lib.jdbc.ReportingSQLException - Tabella/Vista 'CONSULTANT_STATUS' non esiste.

2014-02-10 Thread mauro2java2011
fianlly it work . i have removed the resourcces.xml file with declaration of datasource and put into tomee.xml jdbcDriver org.apache.derby.jdbc.ClientDriver password app userName app jdbcUrl jdbc:derby://localhost:1527/consultDB JtaManaged true

resources.xml file location

2014-02-10 Thread mauro2java2011
Into many web apps i have put the reosurces.xml file into web-inf and int othe file i have added the declaration of db but into other not work -- View this message in context: http://openejb.979440.n4.nabble.com/resources-xml-file-location-tp4667617.html Sent from the OpenEJB User mailing list

Re: resources.xml file location

2014-02-10 Thread Romain Manni-Bucau
depend how you use resources...without info no answer :p Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 19:13 GMT+01:00 mauro2java2011 : > Into many web apps i have

Re: Usage of ThreadPoolExecutor in TomEE

2014-02-10 Thread Laird Nelson
On Mon, Feb 10, 2014 at 9:45 AM, Johnny Macnum wrote: > I'm wondering what kinds of issues can happen if I try to use this feature > in TomEE. > Hi; you may not care, but technically speaking invoking threads that aren't under the management of the container is a violation of the Java EE specific

Re: DB connection issues after upgrade from 1.5.2 to 1.6.0

2014-02-10 Thread Romain Manni-Bucau
using dbcp it is the exact same code Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 18:53 GMT+01:00 Poindexter, Miles : > Hi Romain, > I wanted to update you that w

Re: More than 10 consumers

2014-02-10 Thread Romain Manni-Bucau
do a thread dump during it Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 18:54 GMT+01:00 Leonardo K. Shikida : > not sure how do I check that > > I only have one p

Re: Usage of ThreadPoolExecutor in TomEE

2014-02-10 Thread Romain Manni-Bucau
Hi Jonathan, object relying on EE stuff (@RequestScoped, EJB...) will be broken. No guarantee it would work. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-10 19:18 G

Re: More than 10 consumers

2014-02-10 Thread Leonardo K. Shikida
I've set all pools to 100. The thread dump (if I understand it well) seems to say that there are 99 threads waiting. Does it mean that the pool was set correctly but there's a bottleneck somewhere? [] Leo [leoks@oc7612866413 ~]$ grep "Default JMS Resource Adapter" dump.txt "Default JMS Resource

Re: More than 10 consumers

2014-02-10 Thread Romain Manni-Bucau
Yeah, another pool surely (db, stateless, other...) Le 10 févr. 2014 19:35, "Leonardo K. Shikida" a écrit : > I've set all pools to 100. The thread dump (if I understand it well) seems > to say that there are 99 threads waiting. > > Does it mean that the pool was set correctly but there's a bottl

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread wlad
Thanks for the scripts, but I'm still struggling how to set up either "tomee" or "tomee-webaccess". To summarize: I am using "apache-tomee-plus-1.5.2", and would like to leave this version of tomee if possible, because I have already set some files in my application with this tomee version (ant b

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Thiago Veronezi
Hi, If you want to keep TomEE 1.5.2, forget about webaccess. "tomee" 1.5.2 contains the old version of it. I didn't manage to reproduce your error with TomEE 1.5.2. What's the version of your browser? Ah, "tomee gui" 1.5.2 does not have the groovy runtime. You will need to use javascript instead

Re: resources.xml file location

2014-02-10 Thread mauro2java2011
I use for declare datadource into a jsf apps with ejbs and primefaces Il giorno 10/feb/2014 19.21, "Romain Manni-Bucau [via OpenEJB]" < ml-node+s979440n4667618...@n4.nabble.com> ha scritto: > depend how you use resources...without info no answer :p > Romain Manni-Bucau > Twitter: @rmannibucau > B

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread wlad
Don't know if this is how it is suppose to be, but here is what I found out: I wasn't able to log in to tomee's services/apps because I have added "Realm" definition to [tomee]/conf/server.xml file (I need that Realm for my application). Here is how that tag looks like: // In application I am w

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Thiago Veronezi
That happens because "tomee" is using the same realm, and there is no tomee-admin defined in your database. Check this link: https://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html On Mon, Feb 10, 2014 at 3:49 PM, wlad wrote: > Don't know if this is how it is suppose to be, but here is what

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread wlad
Thanks a lot for help. I added realm definition to be inside context container, which again is inside Host container: * * TomEE GUI credentials are retrieved from tomcat-users.xml, and myApp credentials are read from database. -- View this message in context: http://openejb.

Re: resources.xml file location

2014-02-10 Thread Romain Manni-Bucau
You lookup the ds? If no injection or it will surely not match directly. Maube define it in web.xml Le 10 févr. 2014 20:14, "mauro2java2011" a écrit : > I use for declare datadource into a jsf apps with ejbs and primefaces > Il giorno 10/feb/2014 19.21, "Romain Manni-Bucau [via OpenEJB]" < > ml-

Re: JPA cascade persisting

2014-02-10 Thread Chris Christo
Answering my own question here :P I figured it out. Basically it seems I should be annotating only one side of the relationships with a cascade type. Annotating both side seems to cause confusion maybe for the entity manager and doesn’t know which to persist first? Anyway, I chose to have the

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread wlad
Hmm, I am having strange problem now. I had configured these realm settings and everything worked for a while. But now, when I start TomEE, content of the server.xml is returned as it was before I edited it. Something like if eclipse is cashing this file and somehow loading old version of the file?

Re: Usage of ThreadPoolExecutor in TomEE

2014-02-10 Thread Laird Nelson
On Mon, Feb 10, 2014 at 10:20 AM, Romain Manni-Bucau wrote: > object relying on EE stuff (@RequestScoped, EJB...) will be broken. No > guarantee it would work. > I've been puzzling over this comment all day. Did I miss something? I thought TomEE was Java EE Web Profile certified? I surely must

Re: Usage of ThreadPoolExecutor in TomEE

2014-02-10 Thread Romain Manni-Bucau
EE spec mention things work while in EE context. If Activiti uses it own thread pool you are no more in this context. EE 7 proposes concurrency utilities to solve half of it but not cdi scope issue when they need to be thread related (request, session, ... scopes) Le 11 févr. 2014 01:13, "Laird Nel

Re: Apache TomEE - unable to access "TomEE GUI", "Server Status", "Manager App" and "Host Manager" services

2014-02-10 Thread Romain Manni-Bucau
Whats your config of your wtp server? Did you force publish? Le 11 févr. 2014 00:29, "wlad" a écrit : > Hmm, I am having strange problem now. I had configured these realm settings > and everything worked for a while. But now, when I start TomEE, content of > the server.xml is returned as it was b

Re: resources.xml file location

2014-02-10 Thread mauro2java2011
How define it in web.xml ? Il giorno 11/feb/2014 00.07, "Romain Manni-Bucau [via OpenEJB]" < ml-node+s979440n4667631...@n4.nabble.com> ha scritto: > You lookup the ds? If no injection or it will surely not match directly. > Maube define it in web.xml > Le 10 févr. 2014 20:14, "mauro2java2011" <[h

Re: resources.xml file location

2014-02-10 Thread mauro2java2011
I use jpa . So i jave reference at it with nameofdatasourcelikedeclaredintoresource_xml> Il giorno 11/feb/2014 00.07, "Romain Manni-Bucau [via OpenEJB]" < ml-node+s979440n4667631...@n4.nabble.com> ha scritto: > You lookup the ds? If no injection or it will surely not match directly. > Maube defin

Re: resources.xml file location

2014-02-10 Thread Romain Manni-Bucau
http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-11 7:23 GMT+01:00 mauro2java2011 : > How def

Re: resources.xml file location

2014-02-10 Thread Romain Manni-Bucau
If you only use JPA it should be adjusted automatically. If not you have a particular case. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-11 7:26 GMT+01:00 mauro2java

Re: resources.xml file location

2014-02-10 Thread mauro2java2011
But from web.xml i can reference the datasource declared into resource.xmlO:-)? I know that from web.xml i can reference datasourfe devlaredcor into setvet.xml or into context.xml Il giorno 11/feb/2014 07.29, "Romain Manni-Bucau [via OpenEJB]" < ml-node+s979440n4667639...@n4.nabble.com> ha scritto:

Re: resources.xml file location

2014-02-10 Thread Romain Manni-Bucau
yes you can Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-11 7:36 GMT+01:00 mauro2java2011 : > But from web.xml i can reference the datasource declared into > resourc