-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 David,
On 3/10/17 1:07 PM, KARR, DAVID wrote: > I have an app using CXF/REST/Spring/JDBC that is working pretty > well in TomEE (7.0.1). I'm trying to move it to Tomcat (8.5.11) > because it doesn't need to be in TomEE, and I'm having problems > adding additional features due to aspects of TomEE. > > I'm first testing the port by running Tomcat in Eclipse. I had > previously verified that the app works fine in the same > environment when running in TomEE. > > I moved all of my Resource and Environment entries to the Tomcat > context.xml file. > > When I start it up, I'm seeing errors like the following: > ------------------- > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: > > Line 1 in XML document from ServletContext resource > [/WEB-INF/applicationContext.xml] is invalid; nested exception is > org.xml.sax.SAXParseException; systemId: > http://.../ProxyWarning.html; lineNumber: 1; columnNumber: 3; The > markup in the document preceding the root element must be > well-formed. at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBe anDefinitions(XmlBeanDefinitionReader.java:399) > > > ... > Caused by: org.xml.sax.SAXParseException; systemId: > http://.../ProxyWarning.html; lineNumber: 1; columnNumber: 3; The > markup in the document preceding the root element must be > well-formed. at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXP arseException(ErrorHandlerWrapper.java:203) > > > - ------------------- > > That URL that I've elided is the page we see in our enterprise > when we try to reach the internet without going through our proxy. > > So, this app that was working fine in TomEE now is getting this > proxy error when it runs in Tomcat. Any ideas what I might be > missing? That error seems to be that the markup is bad. Are you saying that the markup is bad because the resource you are requesting ends up being an HTTP BAD REQUEST or other response rather than the XML document you are expecting? How did you have TomEE configured for a proxy before? Generally, proxies are configured for the whole JVM. http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-u sed-by-the-jvm In Tomcat, you generally do this in one of two ways: 1. For a standard command-line launch (e.g. testing, *NIX systems, etc.) create/edit CATALINA_BASE/bin/setenv.sh and add the following line : CATALINA_OPTS="$CATALINA_OPTS -Dhttp.proxyHost=... ..." 2. For Windows Service-based services, open the Tomcat Service Manager (tomcatXw.exe //ES//) and add the appropriate system properties to the "system properties" tab. FYI There will be a few presentations at TomcatCon/ApacheCon in Miami in May. that might interest you, including a presentation by Romain on TomEE and Meecrowave. http://events.linuxfoundation.org/events/apachecon-north-america/attend/ register- Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYwvEIAAoJEBzwKT+lPKRYDWQP/2ohd4RsfEmWSJD/9SJaSSGT 16seqbJqIg6rmwpREZNa7I++YOoiBFImKyeRlYTwQFfZP46cbJymrpLzwp8P73dX SwG5szY9atjAQ+sdYUDksv/meCc5XvjDrF4em/dr2C7XPkcvoXy+lqRarTzHwrDU gtrqd30+ULsDaY2AmGCiekHqP8+N8SJAqS0iiat3fwTyrIuGS8Cxc0PC5e55aGl9 gBQPVibu0e0V3KtGGltsA3HqCKzn2cWhyMyXTNLn01qyXLwwQ2nMyuIuxMfaS2Mz LQkaxAja6e8SZg1cWZDNurjaEFxsOCSAK+nSjoztph6+9Cukp4gA1E1v33DjMGAp nnqoGZi9RWu5Le/kr7BHcOxgAEnWahPBvgyglOY2x57xfoqjUjcY7bJhUXSiEXix E0nmybgXmutA8ugnqdGnUVQx+K1vAq+bMu8oIafkKYYA/JnLPHr/mXDI6Y7PGcdX 3BOlDd6ORq+jMg8P8AktDPYyBnnq/OYX7rdpNpIoVWNFsPoSfb7tChNJgPFRSODf c+c8BISqxYyNECQh6y+HTTbadg8xU9vnb46AJg10mjn78tdvykjfRveGQVj5JJA4 G47G8P3b4sztO3KXNvPkbtCXbasrf0O1XZRBSeHNjhadyT7EXhRbGoqXMxe1aUHv cx7/QMdM5nGexmcfTtoj =VCwa -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org