Mantis - Resin
Viewing Issue Advanced Details
2392 minor always 02-02-08 09:27 02-02-08 09:28
closed 3.1.5  
none 3.1.5  
0002392: Resin embedding issue with eclipse
(rep by Daniel Lopez)

 wanted to have a go at the Resin Embedded features, as I wanted to
start some functional testing on a web application and including all
jars in the classpath and calling:

    * @param args
    * @throws IOException
   public static void main(String[] args) throws IOException
     ResinEmbed resin = new ResinEmbed();


     String result = resin.request("GET /");


results in:
Exception in thread "main"
XML file has no top-element. All well-formed XML files have a single
top-level element.
    at com.caucho.config.ConfigException.create(
    at com.caucho.config.Config.configure(
    at com.caucho.resin.ResinEmbed.<init>(
    at com.caucho.resin.ResinEmbed.<init>(
    at org.leaf.test.ResinLauncher.main(
Caused by: com.caucho.xml.XmlParseException:
classpath:com/caucho/resin/resin-embed.xml:1: XML file has no
top-element. All well-formed XML files have a single top-level
    at com.caucho.xml.XmlParser.error(
    at com.caucho.xml.XmlParser.parseInt(
    at com.caucho.xml.AbstractParser.parse(
    at com.caucho.config.Config.parseDocument(
    at com.caucho.config.Config.parseDocument(
    at com.caucho.config.Config.configure(
    ... 3 more
which is weird as as the XML file seems to have a top-level element.
parser is also Caucho's XML parser so...

That was using resin-3.1.s080130. I did not expect to run bug-free as
is a snapshot, but just in case you wanted to have a look at it.

That was using JDK 1.6 and trying to run the class inside Eclipse.


02-02-08 09:28   

See [^] and [^]