Resolving "java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener "

2016-03-26 Thread wlad
Hi, I am trying to deploy some simple CXF web services application to TomEE, and am missing some spring class(es) here, but can't find which one is it (I believe it is just some missing jar in question). This is simple project(education purpose) where different style web services are generated

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

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

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

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: /Realm

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: Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true *Context path=/myApp debug=0 privileged=true docBase=myApp Realm

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

Re: Deploying JEE app to TomEE as WAR (using ANT), instead of as EAR

2013-12-11 Thread wlad
Hi, thanks for reply. I know that ear file should be deployed to tomee/apps folder, as stated in spec. But what i didn't know is that i have to create tomee/*apps* folder by myself (it doesnt exist by default) and then copy ear there. Just found about that. Anyway if i copy ear to tomee/webapps ,

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-17 Thread wlad
Classloader exception i was getting, could be due some incompatibility between openjpa and java 1.7 version. I was getting this same exception with OpenJDK 1.7, and also with Oracle's java 1.7 version. Removed 1.7, and installed OpenJDK 1.6 and now it works. -- View this message in context:

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-04 Thread wlad
wlad wrote When you say remove javaagent from catalina.sh, do you mean removing(or just putting #, commenting) next lines from catalina.sh by that? / # Add OpenEJB javaagent if [ -r $CATALINA_HOME/lib/openejb-javaagent.jar ]; then JAVA_OPTS=-javaagent:$CATALINA_HOME/lib/openejb

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-04 Thread wlad
wlad wrote Turns out adding jvm option -XX:+AlwaysLockClassLoader appears to resolve issue. Now, how could i try that? How can i add -XX:+AlwaysLockClassLoader option to jvm? [to answer my own question] I tried adding -XX:+AlwaysLockClassLoader option to jvm (Run Configuration-Arguments

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-04 Thread wlad
Romain Manni-Bucau wrote Hmm it is works in normal mode you should contact eclipse guys IMO I have downloaded Eclipse Juno version, set up TomEE, and again getting same exception. Same situation. Anyway, thanks for help. I will keep digging, and if i solve this, i will post what i did. Thank

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-04 Thread wlad
Hi, You are totally correct (i myself didn't realize that at first). Actually ant deploy task is not important. It is just here beacause build.xml was build the way its content was copied from some other project that was deploying its jars to tomee, so some ant tasks remained there (even they do

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-03 Thread wlad
You can download and take a look at this example (zipped eclipse project) from this link http://ge.tt/2NAVMgt/v/0?c . -- View this message in context:

Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-03 Thread wlad
Hi, I am using Eclipse IDE, TomEE server and MySQL database. I am working on simple JEE example that should demonstrate connecting to database using EntityManagerFactory, EntityManager, EntityTransaction - persist entities to database, find them by ID, update, remove. All these operations are in

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-03 Thread wlad
Romain Manni-Bucau wrote Is it on trunk? Hi Romain, I'm pretty new in these things, and not quite sure I understand some details. Maybe its my limited english, but what do you mean by to be on a trunk? Romain Manni-Bucau wrote Are you sure you didnt put openjpa in your app? I do have

Re: Getting exception: java.lang.LinkageError: ... attempted duplicate class definition for name...

2013-10-03 Thread wlad
Romain Manni-Bucau wrote Did tou try 1.6.0-snapshot (trunk) version? Hi, I have downloaded and set up apache-tomee-plus-1.6.0-SNAPSHOT version (following your blog http://rmannibucau.wordpress.com/2012/05/23/getting-tomee-snapshot/ ), but am still getting same error. Other example i have, that

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-30 Thread wlad
I have finally(!!!) made this example run. Server wasn't deploying jars from its webapps folder because in server settings, selected option was Use workspace metadata (does not modify Tomcat installation). After selecting option Use Tomcat installation (takes control of Tomcat installation) this

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-30 Thread wlad
Romain Manni-Bucau wrote did you try http://localhost:8080/tomee/? Yes, I did, and I am getting just blank white page with black header at the top of the page. Header that has caption (links) Apache TomEE and Home on the left corner, and Sign In link on the right corner. -- View this message

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-30 Thread wlad
=tomee-admin / user username=tomee password=tomee roles=tomee-admin,manager-gui / Now, I'm not sure about role tags. What should I put there? Lets say, that my username is wlad and password is 123, how can I register as user? -- View this message in context: http://openejb.979440.n4.nabble.com

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-30 Thread wlad
Romain Manni-Bucau wrote tomee-admin is the needed role so: role rolename=tomee-admin / user username=wlad password=123 roles=tomee-admin,manager-gui / would work Thanks a lot. Good to know I can see JNDI names of deployed beans. -- View this message in context: http://openejb.979440

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-29 Thread wlad
Romain Manni-Bucau wrote Im pretty sure you have an environment issues since we use since the first release of tomee ejbd to be certified. Maybe start from an empty/clean environment. OK, I have unistalled Eclipse IDE I had (Indigo version), and installed newest Eclipse IDE for Java EE

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-29 Thread wlad
Romain Manni-Bucau wrote To compile versions can be different but not at runtime. Hi I have copied openejb-client-4.5.2.jar from tomee's lib folder and put it in runtime-libs folder of my project so it uses same version. Still same. I can see that in apache-tomee-webprofile-1.5.2/webapps folder

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
Romain Manni-Bucau wrote Are you sure it is tomee which runs on port 8080? I have downloaded and set up apache-tomee-webprofile-1.5.2 in Eclipse (setting done following this http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html tutorial, but using TomEE, not Tomcat7).

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
Romain Manni-Bucau wrote is your client using the same version as the server? It's a simple client, just plain public static void main method, that should demonstrate using of JNDI service for EJB bean lookup, and calling bean method. Here is the zipped eclipse project, so you can try to run

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
Romain Manni-Bucau wrote the client version is different from the server one it seems. Please align it I have downloaded another Tomcat/EE version: apache-tomee-plus-1.5.0 and set it up with Eclipse. But still, I am not able to run this example. Log message I am getting now is: Buildfile:

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
I did use tomee 1.5.2 at first, but then when you mentioned version aligning I tried with 1.5.0, but nothing. -- View this message in context: http://openejb.979440.n4.nabble.com/JNDI-LOOKUP-error-Cannot-open-input-stream-to-server-tp4665304p4665320.html Sent from the OpenEJB User mailing list

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
You made it, nice to see it running. I'm still struggling with it, still getting error: Buildfile: /home/vladimir/workspace/MBS-Vezbe/Vezbe03/build.xml runClient1: [java] Sep 27, 2013 4:34:26 PM org.apache.openejb.client.EventLogger log [java] INFO:

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
Romain Manni-Bucau wrote Your script was referring 1.5.2, are you sure you updated it to use 1.5.0 I am using tomee 1.5.2. I have only tried to run this example with 1.5.0, but didn't help, so I've switched back to 1.5.2. Romain Manni-Bucau wrote (or update openejb-client to 4.5.2)? (May

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
This is what I've just tried(update from openejb-client-4.5.0 to openejb-client-4.5.2): - copy ...tomee-1.5.2/lib/openejb-client-4.5.2.jar - paste in runtime-libs folder of my example - removed openejb-client-4.5.0.jar that was there Eclipse recognized openejb-client-4.5.2.jar under

Re: JNDI_LOOKUP error=Cannot open input stream to server

2013-09-27 Thread wlad
Romain Manni-Bucau wrote Maybe start from an empty/clean environment. Yes, it sounds like only solution. I will remove current Eclipse IDE, and install fresh one, and try everything from beginning. I will post the results here. Thanks for help. -- View this message in context:

JNDI_LOOKUP error=Cannot open input stream to server

2013-09-26 Thread wlad
I'm new to JEE. I use Eclipse IDE, OpenEJB as persistence provider, TomEE app server. TomEE runs fine with Eclipse (http://localhost:8080/). I have simple example (that is valid), but can't make it run. The log message I'm getting is: Buildfile: