Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

J2EE Connector deployment problem

View: New views
2 Messages — Rating Filter:   Alert me  

J2EE Connector deployment problem

by johnxmas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to add a GBean for log4j in a resource adapter, but I get the following error:
jar:file:/D:/geronimo-tomcat6-javaee5-2.1.3/var/temp/geronimo-deploymentUtil45578.rar!/META-INF/geronimo-ra.xml:58:3: error: cvc-complex-type.2.4a: Expected element 'resourceadapter@http://geronimo.apache.org/xml/ns/j2ee/connector-1.2' instead of 'service@http://geronimo.apache.org/xml/ns/j2ee/connector-1.2' here in element connector@http://geronimo.apache.org/xml/ns/j2ee/connector-1.2


My geronimo-ra.xml looks like that

<connector>
  <environment>
           //
  </environment>

  <resourceadapter>
    //
  </resourceadapter>

  <service>
    <gbean name="DirectoryLog4jConfiguration" class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean">
      <attribute name="log4jResource">META-INF/log4j.properties</attribute>
    </gbean>
  </service>


<connector>

Where must I include the GBean element ?

Thanks for your help

Jean-Noël

Re: J2EE Connector deployment problem

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try to remove the <service> element, just leave <gbean> definition.

Forrest