I have an XML document contained in a BSTR and I want to load the xml document using the IXMLDOMDocument2. The problem is that one of the nodes of my XML has inner text that contains a less than sign. If I try to load the XML document using IXMLDOMDocument2->loadXML then it fails to load...
Solved it. All I had to do was get the datasource like this..
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
if(envCtx == null )
throw new Exception("Boom - No Environment Context");
this.datasource =
(DataSource)...
I am working on a simple java servlet and I am getting the following error from tomcat.
Taken from ImageServerServlet.java
public void init() throws ServletException
{
try
{
InitialContext ic = new InitialContext();
this.datasource = ( DataSource )ic.lookup(...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.