Re: wsdl

2015-07-15 Thread Leonardo K. Shikida
not sure if I am doing it right I've changed tomee's server.xml like Engine name=Catalina defaultHost=myhost.mydomain.com and Host name=myhost.mydomain.com appBase=webapps unpackWARs=true autoDeploy=true and I am getting java.lang.IllegalArgumentException: Invalid virtual host

Re: Conditional properties to EntityManagerFactory

2015-07-15 Thread Daniel Cunha
Hi Felipe, you can inject EntityManager with @PersistenceContext http://docs.oracle.com/javaee/6/api/javax/persistence/PersistenceContext.html Configure your persistence like this persistence.xml

Parse SOAP request manually

2015-07-15 Thread using namespace
I have a web-service deployed on Tomee plus 1.7.1 which works normally when third-party client SOAP request payload is a well-formed xml. However sometimes client does requests containing malformed xml, to be more specifically I guess some html tags sometimes are missing. I tried to implement

Re: Parse SOAP request manually

2015-07-15 Thread Romain Manni-Bucau
Hi using a cxf interceptor you can do it, see http://cxf.apache.org/docs/interceptors.html Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog http://rmannibucau.wordpress.com | Github https://github.com/rmannibucau | LinkedIn https://www.linkedin.com/in/rmannibucau |

Re: wsdl

2015-07-15 Thread Romain Manni-Bucau
Hi Weird if on a recent version, if not editing host in conf/conf.d/cxf.properties can help Le 15 juil. 2015 20:27, Leonardo K. Shikida shik...@gmail.com a écrit : not sure if I am doing it right I've changed tomee's server.xml like Engine name=Catalina defaultHost=myhost.mydomain.com and

javax.ws.rs.client.Client read timeout not working TomEE 2.0.0

2015-07-15 Thread sgjava
I tried the non-proprietary way of connect/read timeouts which were supposed to be supported according to https://issues.apache.org/jira/browse/CXF-6353. The code fragment is: final Client client = ClientBuilder.newClient(); // Use client properties the generic way

Re: wsdl

2015-07-15 Thread Leonardo K. Shikida
well, still having this weird message SEVERE: error invoking Observer{class=org.apache.tomee.webservices.TomeeJaxRsService} java.lang.IllegalArgumentException: Invalid virtual host 'localhost'. Do you have a matching Host entry in the server.xml? at

Conditional properties to EntityManagerFactory

2015-07-15 Thread Felipe Jaekel
Hi, I need to enable Hibernate SQL output only when my webapp in running on my dev environment. On Tomcat since I could do something like this: MapString, String properties = new HashMapString, String(); if(ServerUtil.isLocal()) { properties.put(hibernate.show_sql, true);

Re: wsdl

2015-07-15 Thread Romain Manni-Bucau
Yes Think the issue is not fully linked but tge conf looks good Le 16 juil. 2015 00:29, Leonardo K. Shikida shik...@gmail.com a écrit : btw it's 1.6.0.2 (just saw some discussion about 1.7.1/2 here -- https://issues.apache.org/jira/browse/TOMEE-1460) cxf.properties must have something like

Re: wsdl

2015-07-15 Thread Leonardo K. Shikida
btw it's 1.6.0.2 (just saw some discussion about 1.7.1/2 here -- https://issues.apache.org/jira/browse/TOMEE-1460) cxf.properties must have something like this? virtualHost = myhost.mydomain.com [] Leo On Wed, Jul 15, 2015 at 3:52 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi

Re: Feedback on TomEE 1.7.2

2015-07-15 Thread twelveeighty
I agree with the original poster that the config documentation for TomEE is scattered, but I agree even more with Andy's reply that the documentation isn't going to get better until we roll up our sleeves and fix it, so it would be much appreciated if OP edited that MDB page and added his pointers

wsdl

2015-07-15 Thread Leonardo K. Shikida
Hi my generated wsdl is generated like this wsdl:service name=XYZWSService wsdl:port binding=tns:XYZWSServiceSoapBinding name=XYZWSPort soap:address location=*http://127.0.0.1:9998/ABC/webservices/XYZWS http://127.0.0.1:9998/ABC/webservices/XYZWS*/ /wsdl:port /wsdl:service

Re: wsdl

2015-07-15 Thread Romain Manni-Bucau
Hi did you change the host inserver.xml? guess you kept localhost. That said not sure you can get the host instead of the IP. Alternative is to provide the wsdl instead of letting it be generated Romain Manni-Bucau @rmannibucau https://twitter.com/rmannibucau | Blog