The system.out.println() is in pf_userscontroller; the sessionTimeout()
that we've been discussing throughout this topic. :)
So, I know which bean. Honestly, the 2 minute delay, I don't know what
would cause that. 2 minutes go by and then that bean gets injected. I don't
have any code that does a
I'm learning so much here. thanks for the lesson(s) learned. :)
On Fri, Dec 7, 2012 at 6:16 PM, Romain Manni-Bucau wrote:
> The class issue is about a tomcat 6 class provided by atmosphere
> Le 7 déc. 2012 23:59, "Howard W. Smith, Jr." a
> écrit :
>
> > did you mean atmosphere-tomcat7?
> >
> >
>
I just noticed that my project does not have Server Faces facet enabled.
Should it, or is it done otherwise with TomEE?
--
View this message in context:
http://openejb.979440.n4.nabble.com/JSF-not-starting-on-TomEE-1-5-1-plus-tp4659143p4659261.html
Sent from the OpenEJB User mailing list archiv
The project can be viewed here:
https://github.com/mchaka/testrepo/tree/master/mchaka .
Comments, pro tips and improvements concerning anything are appreciated.
--
View this message in context:
http://openejb.979440.n4.nabble.com/JSF-not-starting-on-TomEE-1-5-1-plus-tp4659143p4659260.html
Sent
For injections youll need ear i think. Wonder about lookups (was my idea)
Le 8 déc. 2012 00:18, "José Luis Cetina" a écrit :
> Hi Romain i did this:
>
> 1. Create a jar file with just 1 EJB class EJBTest.class (myejb.jar)
> 2. Look at the tomee.xml and found this line:
> 3. I create the "apps" d
Hi Romain i did this:
1. Create a jar file with just 1 EJB class EJBTest.class (myejb.jar)
2. Look at the tomee.xml and found this line:
3. I create the "apps" directory in APACHE-HOME/
4. Copy myejb.jar file to APACHE-HOME/directory
5. Copy myejb.jar file to APACHE-HOME/lib
6. Start my webapps (
The class issue is about a tomcat 6 class provided by atmosphere
Le 7 déc. 2012 23:59, "Howard W. Smith, Jr." a
écrit :
> did you mean atmosphere-tomcat7?
>
>
> On Fri, Dec 7, 2012 at 5:44 PM, Romain Manni-Bucau >wrote:
>
> > jlmonteiro commited it for us
> >
> > so next snapshot will work (btw
With "Server Locations" = "Use Tomcat installation", Eclipse will
pollute your TomEE installation area - this may not be what you want...
With "Server Locations" = "Workspace Metadata", all you need to do is
copy tomee.xml to the "Servers/TomEE at localhost" project in your
Eclipse workspace.
Or copy tomee.xml in the server project of eclipse
Le 8 déc. 2012 00:05, "bibhas" a écrit :
> I have tracked down the root cause. The problem happens only when I start
> TomEE from Eclipse. If I start it from command line, my data source
> definition works just fine.
>
> It appears that when I ru
I have tracked down the root cause. The problem happens only when I start
TomEE from Eclipse. If I start it from command line, my data source
definition works just fine.
It appears that when I run TomEE from command line, it uses configuration
files from
/.metadata/.plugins/org.eclipse.wst.server.
did you mean atmosphere-tomcat7?
On Fri, Dec 7, 2012 at 5:44 PM, Romain Manni-Bucau wrote:
> jlmonteiro commited it for us
>
> so next snapshot will work (btw only atmosphere-tomcat6 should have
> been enough in tomee/lib)
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau
jlmonteiro commited it for us
so next snapshot will work (btw only atmosphere-tomcat6 should have
been enough in tomee/lib)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
20
ear sounds fine
you can deploy your ejb deps in tomee lib + deploy your ejb as jar too
(in apps/ for instance) then deploy your webapps
depends a lot of your goal and the lifecycle of each parts
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.
atmosphere*
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr. :
> Put only the lib's that you listed, or should I also copy
> atmosphere-compat-to
Never mind. I copied the files that you suggested to tomee /lib, and tomee
1.5.1 works now. Thanks!
On Fri, Dec 7, 2012 at 5:36 PM, Howard W. Smith, Jr. wrote:
> Put only the lib's that you listed, or should I also copy
> atmosphere-compat-tomcat7 jar, too?
>
>
> On Fri, Dec 7, 2012 at 5:33 PM
Hi i have a question, i always use war files for my webapp, inside of them
i have ejbs,entities,classes etc, but now i need to separate my EJB's, and
then i am trying to use ear file for this, but honestly i am not sure if
this is correct.
I have 3 different webapps (they are package as wars) and
Put only the lib's that you listed, or should I also copy
atmosphere-compat-tomcat7 jar, too?
On Fri, Dec 7, 2012 at 5:33 PM, Romain Manni-Bucau wrote:
> ok that's the issue
>
> will ask for a fix (cant do it myself)
>
> that's due to the fact atmosphere provide old tomcat classes we
> suppose a
ok that's the issue
will ask for a fix (cant do it myself)
that's due to the fact atmosphere provide old tomcat classes we
suppose are in the server and not in webapp
put atmos in the tomee lib for a moment and it should pass
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wor
Atmosphere is in webapp.
I just tried your recommendation and i still get the error with 1.5.1, but
I do 'not' get the error with 1.5.1 SNAPSHOT 2012.12.03.
If I was to use 1.5.1 SNAPSHOT 2012.12.03 catalina.jar, and drop it in
1.5.1 /lib, will that impact 1.5.1 ?
On Fri, Dec 7, 2012 at 5:27 PM
Hi,
ear shouldn't be extracted in webapps (David added the needed conf to
avoid it i think, @David: can you confirm please?)
otherwise apps should work adding to tomee.xml
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmanni
where is atmosphere? in tomee libs or webapp?
here is the class:
https://github.com/Atmosphere/atmosphere/tree/master/modules/compat-tomcat/src/main/java/org/apache/catalina
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmann
I remember i readed time ago some troubles about TomEE with ear files.
Im trying to do a test, deploying an ear file that contains a single EJB
without war.
I only drop my ear into webapps folder
What can be happend?
INFO: -
TomcatWebAppBuilder.init /testing-ear-1.0-
Interesting...
I actually have the following:
atmosphere-atmosphere-annotations-1.0.4.jar
atmosphere-compat-jbossweb-1.0.4.jar
atmosphere-compat-tomcat7-1.0.4.jar
atmosphere-compat-tomcat-1.0.4.jar
atmosphere-runtime-1.0.4.jar
I'll try with what you recommended in your email.
On Fri, Dec 7, 20
Hi,
you can check the conf through JMX in openejb MBeans
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 bibhas :
> I have done everything you have said. it's all i
that's not a bug
same in tomcat 7
which atmos dep do you have?
atmosphere-compat-jbossweb-1.0.0.jar
atmosphere-compat-tomcat-1.0.0.jar
atmosphere-runtime-1.0.0.jar
is all you need
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/
I have done everything you have said. it's all in my original post.
Is there any web based console i can use to view all defined data sources
and test them?
--
View this message in context:
http://openejb.979440.n4.nabble.com/How-to-configure-MySQL-data-source-tp4659201p4659234.html
Sent from
Also, org/apache/*catalina/*CometProcessor does not exist in 1.5.1 SNAPSHOT
or 1.5.1, but org/apache/*catalina/comet/*CometProcessor exists in
both 1.5.1 SNAPSHOT and 1.5.1.
On Fri, Dec 7, 2012 at 5:04 PM, Howard W. Smith, Jr. wrote:
> Okay, here is my findings.
>
> 1. catalina.jar, dated 11.18
weird btw, the class is in org.apache.catalina.comet now (since t7)
think you use atmosphere for tomcat 6
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W.
Okay, here is my findings.
1. catalina.jar, dated 11.18.2012, in C:\apache-tomee-plus-*1.5.1-SNAPSHOT*
\lib
2. catalina.jar dated 12.04.2012 in C:\apache-tomee-plus-*1.5.1*\lib
3. tomcat-catalina.jar is not found in either folder
On Fri, Dec 7, 2012 at 4:57 PM, Romain Manni-Bucau wrote:
> it
you should check in which bean it is injected the 2nd time btw
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr. :
> Well, hopefully, someone else
Well, hopefully, someone else will chime in on this topic, but no worries,
no need of opening a new issue for this behavior. I know how to handle it.
:)
On Fri, Dec 7, 2012 at 4:58 PM, Romain Manni-Bucau wrote:
> maybe, means you need this instance somewhere else after the first
> destruction so
maybe, means you need this instance somewhere else after the first
destruction so it is recreated
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr
it is here i think, did you check in /lib/tomcat-catalina.jar
(or catalina.jar)?
i have to admit we updated tomcat version and i didnt check it but i
cant right now, can you do it please?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedi
I'm alone? really? what's the download count?
I am using Atmosphere, and Atmosphere, evidently, needs that class to be
defined. it was defined and available in 12.03.2012 SNAPSHOT of tomee
1.5.1. Now, that class seems not available in tomee /lib.
On Fri, Dec 7, 2012 at 4:49 PM, Romain Manni-Buca
Yes, 2 instances, but the 2nd instance seems to be 'spawn' up after the
'real' instance has been destroyed (or in queue to be destroyed).
On Fri, Dec 7, 2012 at 4:44 PM, Romain Manni-Bucau wrote:
> a bit hard to read (maybe gmail formatting) but seems there are 2
> instances right?
>
> Romain Ma
Hi,
seems you are alone to get this error (and please don't open too much
thread on the same topic)
you'll need to share a sample with this error as well ;)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: ht
a bit hard to read (maybe gmail formatting) but seems there are 2
instances right?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr. :
> Did what
Hi,
if it is an ejb that's a bug. If just a pojo you need to define it in
the web.xml as a servlet
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Jean-Louis MONTEI
not sure i get exactly your point (i dont know enough eclipse
probably). can you detail it?
for instance, IIRC, eclipse web projects have WS integration by default, no?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
It should not be necessary to have a dedicated TomEE integration even if we
are actually thinking about that for other purposes.
Everything working with Tomcat must work with TomEE, otherwise, there is
maybe a bug ;-)
anyway, is that what you are looking for:
http://www.youtube.com/watch?v=Lr8pxEA
Good point Howard, war is usually far easier for simple needs.
Could you share you simple sample?
And provide us with the full log please.
JLouis
2012/12/7 Howard W. Smith, Jr.
> Robert,
>
> What is the date/time/version of that SNAPSHOT?
>
> Per my experience, I usually prefer to drop my .war
Hi,
yes the openejb.xml file is the oldest one. Now it's tomes.xml
Maybe we have to grep the doc and replace when relevant.
You can also use the top-right pen icon to submit a change to the doc (even
in an anonymous way).
Basically the configuration you tried should work.
JdbcDriver com.my
Robert,
What is the date/time/version of that SNAPSHOT?
Per my experience, I usually prefer to drop my .war file in tomee /webapps
folder, and I have to remember to access it via the same name as the war
file. So, what I learned by experience is the following:
1. Netbeans generate WAR file named
Hello.
I installed apache-tomee-plus-1.5.1-SNAPSHOT , and I was trying to test the
deployment of a very simple Jaxws web service (Calculator), but it’s failing
each time I launch the server :
Infos: Creating Service {http://myws.sample}CalculatorService from class
ws.sample.CalculatorWs
dΘc.
Hello,
Platform: TomEE Web profile 1.5.0.
I am trying to do a very basic thing, setup a data source for MySQL. I have
read the official guide
(http://openejb.apache.org/configuring-datasources.html). It asks us to
enter a Resource element in openejb.xml. I can not find that file anywhere
in tomee
Did what you recommended in your previous email below. Now, since I got my
TomEE working again (with older SNAPSHOT version), look at the idHC of the
2nd call to @PreDestroy (at bottom of the server log below).
INFO: Server startup in 25311 ms
LoginFilter.doFilter(): session = NOT null
LoginFilte
Wow, I had to revert back
to apache-tomee-1.5.1-20121203.041800-97-plus.zip, and now my app is
working!
Something has changed since that SNAPSHOT version. I guess I will have to
use that SNAPSHOT version on test/development server as well as production
server. I cannot use any version after that v
this morning, I added latest snapshot version of PrimeFaces, I think that
may be the cause, but I'm still trying to get TomEE SNAPSHOT and TomEE
1.5.1 (plus) to start and allow me access to my web app.
On Fri, Dec 7, 2012 at 12:14 PM, Howard W. Smith, Jr. <
smithh032...@gmail.com> wrote:
> Rever
Hi there,
So far I've been using jboss and other app servers using vendor-provided
plug-ins that configure the server inside the Eclipse Workspace or
configure the project classpath to use jars supplied as part of the app
server for java ee apis.
Using TomEE there isn't a specific Eclipse pl
Reverting to an earlier version of SNAPSHOT, since I'm getting the
following error (which may be related to my Atmosphere dependency).
java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor
On Fri, Dec 7, 2012 at 11:54 AM, Howard W. Smith, Jr. <
smithh032...@gmail.com> wrote:
> java
Interesting, the following was in the localhost log (these errors most
likely are causing the app to not be recognized or available, and then
undeployed by tomee):
Dec 07, 2012 11:41:27 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to
Wow, I did the following:
1. stopped TomEE from netBeans
2. deleted .war and WAR folder from tomee /webapps folder
3. droopped WAR file in tomee /webapps folder
4. started TomEE from NetBeans
5. attempted to access web app from Google Chrome browser (as I usually
do), and I got the following error
netbeans uses the manager app ;)
maybe give it a try with
https://repository.apache.org/content/repositories/orgapacheopenejb-124/org/apache/openejb/apache-tomee/1.5.1/
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
FYI, I don't use tomee's web app or manager app. I only use NetBeans to
start/stop TomEE, and undeploy app from TomEE.
On Fri, Dec 7, 2012 at 11:25 AM, Howard W. Smith, Jr. <
smithh032...@gmail.com> wrote:
> So, I cannot undeploy my app via NetBeans (v7.2) now. Next, I will try to
> shutdown Tom
So, I cannot undeploy my app via NetBeans (v7.2) now. Next, I will try to
shutdown TomEE, delete the dropped-WAR-file and the WAR-folder created
after dropping the WAR file in tomee /webapps.
The last version of TomEE that I was using
was apache-tomee-1.5.1-20121203.041800-97-plus, and that was wo
Fernando,
I'm glad to hear that. thanks for the response.
Howard
On Fri, Dec 7, 2012 at 11:15 AM, Fernando Lozano wrote:
> Hi,
>
> In this specific scenario (Timer service) I can't imagine why you wouldn't
> want to use EJB Timers, long time supported by the Java EE spec and
> EpenEJB/TomEE.
>
Hi,
In this specific scenario (Timer service) I can't imagine why you
wouldn't want to use EJB Timers, long time supported by the Java EE spec
and EpenEJB/TomEE.
I also see many developers doing complex things using timers and
threads, where Java EE 5/6 async EJBs and JMS would provide for s
Interesting, okay, thank you both for the responses. :)
On Fri, Dec 7, 2012 at 10:19 AM, Jean-Louis MONTEIRO wrote:
> Hi,
>
> Ddunno if it will get in Java EE 7.
> If yes, then it should go quickly in the todo list for TomEE.
>
> Otherwise, we can also include such a feature or maybe someone can
Hi,
Ddunno if it will get in Java EE 7.
If yes, then it should go quickly in the todo list for TomEE.
Otherwise, we can also include such a feature or maybe someone can
contribute it.
That'd be even better.
JLouis
2012/12/7 Howard W. Smith, Jr.
> I recognized the following blog this morning:
Hi,
will be included but not before it is 1) final, 2) we created the
branch for > JavaEE 6 (still dont know if we directly go to JavaEE 7
or we do an intermediate branch like we did before JavaEE 6)
That's said i think the WorkManager is already something interesting in JavaEE.
And about not ma
I recognized the following blog this morning:
Concurrency Utilities for Java EE Early Draft (JSR 236) [1]
Will this be available at some point in TomEE (and OpenEJB) at some point?
Also, the following was mentioned in the blog:
Using Java SE concurrency utilities such as java.util.concurrent API
about resources.xml maybe try to put it in WEB-INF
about faces-config.xml the point is "can tomee detects you need jsf"
(= jsf @MagaedBean is used or faces-config.xml is present - even if
empty)
otherwise can you share the app to let us reproduce the issue?
BTW you shouldn't need startup listene
I have my whole tomee directory from windows c:\ zipped here (for a while, at
least):
https://dl.dropbox.com/u/3519365/apache-tomee-plus-1.5.1-SNAPSHOT.zip (52MB)
if that's helpful. The webapp I'm trying to run is located at
wtpwebapps/mchaka .
--
View this message in context:
http://openejb.97
Thanks, but I've got no libraries in any WEB-INF/lib (Eclipse or TomEE), only
in TomEE/lib.
Eclipse uses TomEE libraries for building and "takes control of Tomcat
installation" to run the application. Everything else from JPA, EJB to
Servlets run fine.
Romain Manni-Bucau wrote
> did you check wha
did you check what was in WEB-INF/lib?
think myfaces could be here for historical reason and is no more required
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 slo
Hi,
Thank you for the tip, but that setting was ok. This is a TomEE+ project
with Eclipse from the very beginning.
I tried newer jars, do not work either, and some odd context.xml-hacks
mentioned elsewhere, but they didn't solve the problem either, quite the
contrary.
The effective content of my
instead of this kind of log "pf_usersController = NOT null" maybe try
"pf_usersController = NOT null " with id = the result of
System.identityHashCode(this) done from the bean itself (you could add
a pf_usersController.idHC() method ;) for instance)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: h
session timeout is 1 minute, wow i just did another test.
1. removed @WebListener (UserHttpSessionListener)
and I get different results; @PreDestroy still invoked twice though, and
pf_ViewExpired.xhtml accesses no beans; pf_ViewExpired is displayed at the
same time 1st @PreDestroy is called.
see
what's your session timeout config in this case?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr. :
> *-- HUGE time delay right here at this
Okay, I saw with my own two eyes (and you can see the time difference) that
there was a time delay between 1st call to @PreDestroy and 2nd call to
@PreDestroy. See below.
LoginFilter.doFilter(): ajaxRequest = false; ajaxHeader = null
LoginFilter.doFilter(): session = NOT null
LoginFilter.doFilter
Below, copied from catalina log file (to show date/time when app completed
'start' and when accessed login page)
Dec 07, 2012 4:11:02 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 22788 ms
Dec 07, 2012 4:14:44 AM org.apache.myfaces.el.unified.ResolverBuilderBase
sortELResol
well this method is only called when a bean in this scope is called
(maybe after your filter)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2012/12/7 Howard W. Smith, Jr. :
To confirm what i mentioned in previous email below (my loginfilter should
not be responsible for 2 calls to @PreDestroy). See server log below. You
might want to look at the code in org.apache.openejb.cdi.CdiAppContextsService
lazyStartSessionContext, and see why this is called or at what point is
I was able to get this working with help from David.
1. placed all jars files from rar under tomee/lib.
*2. Added the below to conf/tomee.xml *
ResourceAdapter=wmqRA
MessageListenerInterface=javax.jms.MessageListener
ActivationSpecClass=com.ibm.mq.connector.inbound.ActivationSpecImpl
connectio
btw, are you able to reproduce it?
tested:
@SessionScoped
public class Bean implements Serializable {
@PreDestroy
public void destroy() {
System.out.println("- destroy --");
System.out.flush();
new Exception().printStackTrace(Sy
Below, is how my code looks now to address this
TomEE-calling-@PreDestroy-twice issue. :)
/*
* 1. As of 2012-12-07, TomEE 1.5.1 SNAPSHOT calls @PreDestroy twice
* 2. First time, user bean attributes are NOT NULL
* 3. Second time, user bean attributes are NULL
*/
@PreDe
76 matches
Mail list logo