Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002392 [Resin] minor always 02-02-08 09:27 02-02-08 09:28
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.5 Product Version 3.1.5
  Product Build
Summary 0002392: Resin embedding issue with eclipse
Description (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();

     resin.start();

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

     System.out.println(result);
   }


results in:
---------------------------------------------
Exception in thread "main"
 classpath:com/caucho/resin/resin-embed.xml:1:
XML file has no top-element. All well-formed XML files have a single
top-level element.
    at com.caucho.config.ConfigException.create(ConfigException.java:152)
    at com.caucho.config.Config.configure(Config.java:146)
    at com.caucho.resin.ResinEmbed.<init>(ResinEmbed.java:103)
    at com.caucho.resin.ResinEmbed.<init>(ResinEmbed.java:92)
    at org.leaf.test.ResinLauncher.main(ResinLauncher.java:23)
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
 element.
    at com.caucho.xml.XmlParser.error(XmlParser.java:2972)
    at com.caucho.xml.XmlParser.parseInt(XmlParser.java:266)
    at com.caucho.xml.AbstractParser.parse(AbstractParser.java:644)
    at com.caucho.config.Config.parseDocument(Config.java:391)
    at com.caucho.config.Config.parseDocument(Config.java:335)
    at com.caucho.config.Config.configure(Config.java:140)
    ... 3 more
---------------------------------------------
which is weird as as the XML file seems to have a top-level element.
 The
parser is also Caucho's XML parser so...

That was using resin-3.1.s080130. I did not expect to run bug-free as
 it
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.

S!
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002710)
ferg
02-02-08 09:28

server/1e80

See http://caucho.com/resin/doc/resin-embedding.xtp [^] and http://wiki.caucho.com/JUnit [^]
 

- Issue History
Date Modified Username Field Change
02-02-08 09:27 ferg New Issue
02-02-08 09:28 ferg Note Added: 0002710
02-02-08 09:28 ferg Assigned To  => ferg
02-02-08 09:28 ferg Status new => closed
02-02-08 09:28 ferg Resolution open => fixed
02-02-08 09:28 ferg Fixed in Version  => 3.1.5


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker