JBoss Community

Fehler bei Deploying: secure not found as a child of jboss

created by solna in JBoss Web Development - View the full discussion

Hallo zusammen,

 

Ich habe jboss 5.1.0.GA.

 

Bei Deploying bekomme folgender Fehler:

 

org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/opt/jboss-5.1.0.GA/server/default/deploy/Anwendung.war...
.......
.......
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: secure not found as a child of jboss in unordered_sequence: webservices? resource-managers? jmx-name?...

 

Mein web.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <display-name>bla bla</display-name>
    <description>
        This is a simple web application with a source code organization
        based on the recommendations of the Application Developer's Guide.
    </description>
    
        <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    
    <filter>
        <filter-name>encoding-filter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
    </filter>

    <servlet>

        <servlet-name>
          Locks
        </servlet-name>

        <servlet-class>
          servlets.LocksServlet
        </servlet-class>

    </servlet>

</web-app>

 

Mein jboss-web.xml

 

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-web PUBLIC
  -//JBoss//DTD Web Application 5.0//EN
  http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd>

<jboss-web>
    <class-loading>
        <loader-repository>
            com.example:archive=Anwendung.war
            <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
        </loader-repository>
    </class-loading>
    <context-root>Anwendung</context-root>
</jboss-web>

 

Was mache ich falsch? Steht dann <secure> nicht default auf "false"?

Habe leider kein Antwort beim googeln gefunden.

 

Danke

Reply to this message by going to Community

Start a new discussion in JBoss Web Development at Community