users@glassfish.java.net

Re: "java.net.UnknownServiceException: no content-type"

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Dec 2008 08:13:29 PST

And another thing:

this piece of code:
[code]
                            System.out.println("Creating input stream");
                            InputStream is = this.getClass().getClassLoader().getResourceAsStream(
                                            "META-INF/kettle-partition-plugins.xml");
                            StringBuilder transXml = new StringBuilder();
                            int c;
                            while ((c = is.read()) != -1) {
                                    System.out.println("Read: " + (char)c);
                                    transXml.append((char)c);
                            }
                            
                            System.out.println(transXml.toString());
[/code]

works fine in the @Timeout method and prints to the server output log contents of the xml file.

???

Regards,
GW
[Message sent by forum member 'grzewal' (grzewal)]

http://forums.java.net/jive/thread.jspa?messageID=321039