dev@glassfish.java.net

Re: doc error in add-resources?

From: Prashanth Abbagani <Prashanth.Abbagani_at_Sun.COM>
Date: Thu, 13 Mar 2008 17:11:35 -0800

Can you please share your xml file. I see the reason as missing
'DOCTYPE' element in it.

Your xml should look like
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE resources PUBLIC
         "-//Sun Microsystems Inc.//DTD Application Server 9.1 Domain//EN"
         
"*http://www.sun.com/software/appserver/dtds/sun-resources_1_2.dtd*">
       <resources>
       <jdbc-connection-pool name="SPECjPool" steady-pool-size="100"
         max-pool-size="150" max-wait-time-in-millis="60000"


Vince Kraemer wrote:
> I was reading the 9.1 docs on add-resources... and it looks suspect.
>
> My main area of concern is the description of xml_file_path...
>
> Is that description actually correct?
>
> This snippit from my terminal window seems to say NO, to me.
>
> > pe/6/sailfin/bin/asadmin add-resources this-name-is-unique.txt
> Operation 'createResource' failed in 'resources' Config Mbean.
> Target exception message: DOCTYPE is not present in xml
> /export/home/vbk/sf/this-name-is-unique.txt. Please correct the issue.
> CLI137 Command add-resources failed.
>
> Thanks,
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>