Possible Bug in 1.5.3-SNAPSHOT

2013-07-03 Thread Jack Anamanda
I deployed my application (runs fine on 1.5.2-JAX-RS) on apache-tomee-1.5.3-20130627.041046-72-jaxrs and when calling a certain JAX-RS method I get the following exception:The JAX-RS method looks something like this:As it works fine in 1.5.2, I don't think it's related to my application but rather

Re: slf4j-jdk14-1.7.2.jar overrides logback

2013-05-15 Thread Jack Anamanda
Did you try some logging in the project when TomEE is not started? Just to make clear, cause I don't have problems there. Only when I run my tests "offline" SLF4J picks the wrong logging framework. The SLF4J website says: "Even when multiple bindings are present, SLF4J will pick one logging framewo

Re: slf4j-jdk14-1.7.2.jar overrides logback

2013-05-15 Thread Jack Anamanda
Yes, WTP -- View this message in context: http://openejb.979440.n4.nabble.com/slf4j-jdk14-1-7-2-jar-overrides-logback-tp4662958p4662985.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: slf4j-jdk14-1.7.2.jar overrides logback

2013-05-15 Thread Jack Anamanda
I start TomEE from withing Eclipse. Logging dependencies are as follows (just updated from 1.0.11 to 1.0.12): org.slf4j slf4j-api 1.7.5 ch.qos.logback

slf4j-jdk14-1.7.2.jar overrides logback

2013-05-14 Thread Jack Anamanda
Hi. I'm using the SLF4J logging API and Logback as underlying framework. When I deploy my webapp on TomEE this works fine and logback.xml gets picked up. But when I run my TestNG tests in src/test/java outside of TomEE using the Eclipse TestNG plugin, Logback is being overridden by slf4j-jdk14-1.7.

Re: How to change CXF JSON output format?

2013-05-02 Thread Jack Anamanda
While trying to make a smaller example than my actual Pojo I figured it out: My outer object used "long" for its numbers, but a contained object used "Number". Number types get converted to dollar sign properties. Maybe this is correct behaviour, don't know. I will just use long (: -- View this

How to change CXF JSON output format?

2013-05-02 Thread Jack Anamanda
Hi guys. When I return an @XmlRootElement object in a JAX-RS method, I get the following format for properties of type long : "width" : { "$" : "32", "@xsi.type" : "xs:int" } How can I change this, so that I just get the following: "width" : 32, I'm on TomEE 1.5.2 with the JAX-RS profile. Thank

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
When you deploy an application as default application (no explicit context), use path="" or omitt the path attribute, since "" is the default. See here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html I tried defining a different appbase yesterday and set the docbase to the name of my

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Doesn't work in 1.6.0-Snapshot either (: As a workaround, I deployed my application as ROOT.war and removed the virtual host from server.xml. This works, but isn't very elegant. -- View this message in context: http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662279.html

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Yes, on 1.5.3-Snapshot and 1.6.1-Snapshot (I don't know which build, if that matters). -- View this message in context: http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662277.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Virtual host not working

2013-04-15 Thread Jack Anamanda
Yes, the following gives the same error: Caused by: java.lang.IllegalArgumentException: can't find path under current webapp deployment [] If I use "/" as path (just random trying stuff here): Caused by: java.lang.IllegalArgumentException: can't find path under current webapp deploym

Re: Virtual host not working

2013-04-14 Thread Jack Anamanda
My Tomcat / TomEE is also fronted with Apache. I was using the following proxy config (removed some parts that are not relevant for this problem) so Tomcat had to decide what to do with "domain.com" requests, i.e. to map them to the Domain.war application in context "/Domain": ServerName doma

Re: Virtual host not working

2013-04-14 Thread Jack Anamanda
VirtualHostTest.war Adding a virtual host also doesn't work when you start the server from within Eclipse. Here is a 2KB small example. Just add it to a server and start, a timer will print a message every 5 seconds. Then ad

Re: Virtual host not working

2013-04-13 Thread Jack Anamanda
Doesn't work with 1.6.0 as well. I tried with and without the host line in system.properties. I get a different error though, and I already got this error in 1.5.x, but only sometimes and only when I tried the virtual host thing.The error disappeared when I stopped TomEE and waited a moment before

Re: Virtual host not working

2013-04-13 Thread Jack Anamanda
I added MYAPPCONTEXT.host = MYAPPCONTEXT.com to the system.properties file and tried again with 1.5.3 (and the virtual host in server.xml). Same error. I will try 1.6.0 now. -- View this message in context: http://openejb.979440.n4.nabble.com/Virtual-host-not-working-tp4662204p4662210.html Sent

Virtual host not working

2013-04-12 Thread Jack Anamanda
I migrated an application from Tomcat to TomEE. Finally, everything seems to work, except for my virtual host, that worked fine on Tomcat. The host part in my server.xml looks like this: www.MYAPPCONTEXT.com TomEE is located in /opt/tomcat/ (I just mention it so you don't get c