Re: get jvmroute value

2015-05-12 Thread Romain Manni-Bucau
Yes, Catalina part depends what is in server.xml. Le 13 mai 2015 04:26, "José Luis Cetina" a écrit : > I just found it: > > MBeanServer server = ManagementFactory.getPlatformMBeanServer(); > String jvmRoute = (String)server.getAttribute(new > ObjectName("Catalina:type=Engine"), "jvmRoute"); > >

Re: get jvmroute value

2015-05-12 Thread José Luis Cetina
I just found it: MBeanServer server = ManagementFactory.getPlatformMBeanServer(); String jvmRoute = (String)server.getAttribute(new ObjectName("Catalina:type=Engine"), "jvmRoute"); Thanks 2015-05-12 17:53 GMT-05:00 José Luis Cetina : > Is there any way to get the jvmroute value from server.xml

Re: get jvmroute value

2015-05-12 Thread Romain Manni-Bucau
Hello more or less the same works (just update the beginning of the object name). in tomee just reuse JVM MBeanServer (ManagementFactory etc...), no need of MBeanServerLocator or any other custom MBeanServer. Romain Manni-Bucau @rmannibucau | Blog

Re: Memory Leak in TomEE 1.7.0

2015-05-12 Thread Romain Manni-Bucau
I see, normally only one of both properties is needed. I don't think we'll set it by default (I know some servers do it) to ensure we are aligned with Tomcat which decided to do so for performances reason. BTW feel free to ask them again since this choice has almost 10 years now. Romain Manni-

get jvmroute value

2015-05-12 Thread José Luis Cetina
Is there any way to get the jvmroute value from server.xml I see this example in JBoos MBeanServer server = org.jboss.mx.util.MBeanServerLocator.locateJBoss(); String jvmRoute = (String)server.getAttribute(new ObjectName("jboss.web:type=Engine"), "jvmRoute"); Is there a similar way to do this

Re: Installation of TomEE

2015-05-12 Thread Andy
I just downloaded the distro and it runs fine on my system out of the box. Did you change anything at all? Andy. On 13/05/2015 00:36, Daniel Cunha wrote: Andy, it seem so stranger: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.openejb.assembler.DeployerEjb.

Re: Memory Leak in TomEE 1.7.0

2015-05-12 Thread gnanapandithan
Yes. it is casuse of my issue. I took heap dump and I could see char array and IfTag class consume more memory. I read BodyContentImpl the source code and found if you pass the property then it will clear array and create new one else old one will be keep on adding. I didn't do any code change. It

Re: Memory Leak in TomEE 1.7.0

2015-05-12 Thread gnanapandithan
Yes. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Memory-Leak-in-TomEE-1-7-0-tp4674753p4674760.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Installation of TomEE

2015-05-12 Thread Daniel Cunha
Andy, it seem so stranger: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.openejb.assembler.DeployerEjb. Can be a problem with zip/tar downloaded? Not unziped very well, some file corrupted? On Tue, May 12, 2015 at 7:33 PM, Andy Gumbrecht wrote: > Need all of i

Re: Installation of TomEE

2015-05-12 Thread Andy Gumbrecht
Need all of it, at least the very first line where errors begin. Delete everything in logs and restart. You should now have a log file that you can share. Andy. On 13/05/2015 00:08, psrakesh wrote: There are a few errors here...appreciate your help in resolving it: ---

Re: Installation of TomEE

2015-05-12 Thread Andy Gumbrecht
Open a console in [TomEE]/bin and run:catalina.bat start If there are no logs then TomEE did not start. Andy. On 12/05/2015 23:51, psrakesh wrote: Andy Checked that folder. Surprisingly, there are no log files. I am using startup.bat. Do I need to make configuration changes to enable loggi

Re: Installation of TomEE

2015-05-12 Thread psrakesh
There are a few errors here...appreciate your help in resolving it: - .java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at

Re: Installation of TomEE

2015-05-12 Thread Daniel Cunha
Psrakesh, Can you run startup.bat in foreground!? TomEE should shows status of what is happening in your cmd. :) On Tue, May 12, 2015 at 6:51 PM, psrakesh wrote: > Andy > Checked that folder. Surprisingly, there are no log files. I am using > startup.bat. Do I need to make configuration changes

Re: Installation of TomEE

2015-05-12 Thread psrakesh
Andy Checked that folder. Surprisingly, there are no log files. I am using startup.bat. Do I need to make configuration changes to enable logging? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Installation-of-TomEE-tp4674759p4674763.html Sent from the TomEE Users ma

Re: Installation of TomEE

2015-05-12 Thread Andy Gumbrecht
Hi psrakesh, Have you checked the [tomEE]/logs for any information that may help? If you're not sure then post any errors you find in the logs. Andy. On 12/05/2015 23:32, psrakesh wrote: I have installed Plume 1.7.1 on Windows 64 bit computer alone with Jdk 1.8. On running the startup.bat,

Installation of TomEE

2015-05-12 Thread psrakesh
I have installed Plume 1.7.1 on Windows 64 bit computer alone with Jdk 1.8. On running the startup.bat, the server is started but I don't see the default page on localhost:8080. The environment variables have been set and no other process runs on 8080. Please help. -- View this message in contex

Re: Memory Leak in TomEE 1.7.0

2015-05-12 Thread Romain Manni-Bucau
Hi we stay aligned on tomcat for this part. I googled as well and found this issue for Tomcat 5.5 but not for Tomcat 7. Are you sure it is the cause of your issue? Romain Manni-Bucau @rmannibucau | Blog | Github

Memory Leak in TomEE 1.7.0

2015-05-12 Thread gnanapandithan
We were using Apache Geronimo Application server in my project. Now We have migrated to Apache TomEE 1.7.0 server. We are facing outofmemory issue in TomEE 1.7.0 after 20 days. It is keep on increasing 50 MB daily. We couldn't re-produce this scenario in my load box though we give more load to app

How do I suppress namespace in generated XML

2015-05-12 Thread David Goodenough
I have a legacy servlet which does not expect a namespace in the XML that gets passed between it and its client. It also does not generate one. In the client if I use CXF WebClient to send the XML it seems to want to put the namespace in, which does not cause too much of a problem as the servlet

Re: Add DataSource dynamically.

2015-05-12 Thread Romain Manni-Bucau
in definition: PropertiesHelper.propertiesToString(props) Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber

Re: Add DataSource dynamically.

2015-05-12 Thread Alex Soto
Hi yo umention to use DataSourceFactory. I have seen this method https://github.com/apache/tomee/blob/98029f7374edea604347e1c0a5f598fb793a65e6/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java#L85 but how I can set Properties like username, password, ...

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Kasun Gajasinghe
That's really good to hear Jon. On Tue, May 12, 2015 at 6:31 PM, Jonathan Gallimore < jgallim...@tomitribe.com> wrote: > Just pushed a vote: > > http://tomee-openejb.979440.n4.nabble.com/VOTE-Release-Apache-TomEE-1-7-2-td4674745.html > > Please do give it a try, and let us know if you encounter a

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Jonathan Gallimore
Just pushed a vote: http://tomee-openejb.979440.n4.nabble.com/VOTE-Release-Apache-TomEE-1-7-2-td4674745.html Please do give it a try, and let us know if you encounter any issues. Thanks Jon On Tue, May 12, 2015 at 1:11 PM, Thusitha Thilina Dayaratne < thusithathil...@gmail.com> wrote: > Hi, >

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Thusitha Thilina Dayaratne
Hi, > > I couldn't find any thing on the tomee site. Tomee 1.7.1 is based on > Tomcat > > 7.0.55. I have checked the github and there is a release tag as 1.7.2 > which > > is based on Tomcat 7.0.61. > > > > Should I go with Tomee 1.7.1? > > > > As per my understanding seems that 1.7.2 official rel

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Romain Manni-Bucau
2015-05-12 14:06 GMT+02:00 Thusitha Thilina Dayaratne < thusithathil...@gmail.com>: > Hi, > > > I couldn't find any thing on the tomee site. Tomee 1.7.1 is based on > Tomcat > > 7.0.55. I have checked the github and there is a release tag as 1.7.2 > which > > is based on Tomcat 7.0.61. > > > > Sho

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Thusitha Thilina Dayaratne
Hi, > I couldn't find any thing on the tomee site. Tomee 1.7.1 is based on Tomcat > 7.0.55. I have checked the github and there is a release tag as 1.7.2 which > is based on Tomcat 7.0.61. > > Should I go with Tomee 1.7.1? > > As per my understanding seems that 1.7.2 official release will be based

Re: Tomee version for Tomcat 7.0.59

2015-05-12 Thread Romain Manni-Bucau
Hi 2015-05-12 13:15 GMT+02:00 Thusitha Thilina Dayaratne < thusithathil...@gmail.com>: > Hi, > > Is there a tomee release with Tomcat 7.0.59? > No > I couldn't find any thing on the tomee site. Tomee 1.7.1 is based on Tomcat > 7.0.55. I have checked the github and there is a release tag as 1.

Tomee version for Tomcat 7.0.59

2015-05-12 Thread Thusitha Thilina Dayaratne
Hi, Is there a tomee release with Tomcat 7.0.59? I couldn't find any thing on the tomee site. Tomee 1.7.1 is based on Tomcat 7.0.55. I have checked the github and there is a release tag as 1.7.2 which is based on Tomcat 7.0.61. Should I go with Tomee 1.7.1? As per my understanding seems that 1.7

Re: Add DataSource dynamically.

2015-05-12 Thread Alex Soto
Cool thank you so much. I am going to work in this direction :). El dt., 12 maig 2015 a les 11:33, Romain Manni-Bucau () va escriure: > Hi Alex > > a dynamic router is surely the way to go, ie one datasource fully handled > by tomee and other ones handled by you. You can of course reuse tomee > D

Re: Add DataSource dynamically.

2015-05-12 Thread Romain Manni-Bucau
Hi Alex a dynamic router is surely the way to go, ie one datasource fully handled by tomee and other ones handled by you. You can of course reuse tomee DataSourceFactory to help to make it smooth and reuse our configuration but you'll have to instantiate them (ie call the create method yourself) a

Add DataSource dynamically.

2015-05-12 Thread Alex Soto
Hi guys, I have one question. Currently I am developing a multitenant application which each tenant has its own database schema. The schema in fact is a Oracle DB schema. So each tenant may need its own DataSource because each tenant will have its own login and password. The problem is that we n