Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

weblogic.descriptor.BeanAlreadyExistsException: Bean already exists

2780557Nov 3 2016 — edited Nov 6 2016

weblogic.application.ModuleException: Unmarshaller failed

  at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1604)

  at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1358)

  at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:372)

  at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)

  at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)

  Truncated. see log file for complete stacktrace

Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.FilterBeanImpl@1a37281f(/Filters[trinidad])"

  at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)

  at weblogic.j2ee.descriptor.WebAppBeanImpl.setFilters(WebAppBeanImpl.java:715)

  at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:606)

  Truncated. see log file for complete stacktrace

>

when i run my application i see this error.

Why? i dont change anything and not work. Why?

My file web.xml is this:

<?xml version = '1.0' encoding = 'windows-1252'?>

<web-app 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"

         version="2.5">

  <context-param>

    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

    <param-value>client</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>

    <param-value>false</param-value>

  </context-param>

  <context-param>

    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>

    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>

    <param-value>false</param-value>

  </context-param>

  <context-param>

    <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>

    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>

    <param-value>false</param-value>

  </context-param>

  <context-param>

    <description>Security precaution to prevent clickjacking: bust frames if the ancestor window domain(protocol, host, and port) and the frame domain are different. Another options for this parameter are always and never.</description>

    <param-name>org.apache.myfaces.trinidad.security.FRAME_BUSTING</param-name>

    <param-value>differentOrigin</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.FACELETS_SKIP_XML_INSTRUCTIONS</param-name>

    <param-value>true</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>

    <param-value>true</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.FACELETS_DECORATORS</param-name>

    <param-value>oracle.adfinternal.view.faces.facelets.rich.AdfTagDecorator</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.FACELETS_RESOURCE_RESOLVER</param-name>

    <param-value>oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver</param-value>

  </context-param>

  <context-param>

    <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>

    <param-value>*.jsf;*.xhtml</param-value>

  </context-param>

  <filter>

    <filter-name>JpsFilter</filter-name>

    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>

    <init-param>

      <param-name>enable.anonymous</param-name>

      <param-value>true</param-value>

    </init-param>

  </filter>

  <filter>

    <filter-name>trinidad</filter-name>

    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>

  </filter>

  <filter>

    <filter-name>adfBindings</filter-name>

    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>

  </filter>

  <filter>

    <filter-name>ADFLibraryFilter</filter-name>

    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>

  </filter>

  <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

  </filter-mapping>

  <filter-mapping>

    <filter-name>trinidad</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>ERROR</dispatcher>

  </filter-mapping>

  <filter-mapping>

    <filter-name>adfBindings</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

  </filter-mapping>

  <filter-mapping>

    <filter-name>ADFLibraryFilter</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

  </filter-mapping>

  <filter>

    <filter-name>trinidad</filter-name>

    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>

</filter>

<filter-mapping>

    <filter-name>trinidad</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

</filter-mapping>

  <listener>

    <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>

  </listener>

  <listener>

    <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>

  </listener>

  <listener>

    <listener-class>oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack</listener-class>

  </listener>

  <servlet>

    <servlet-name>Faces Servlet</servlet-name>

    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

    <load-on-startup>1</load-on-startup>

  </servlet>

  <servlet>

    <servlet-name>resources</servlet-name>

    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>BIGRAPHSERVLET</servlet-name>

    <servlet-class>oracle.adf.view.faces.bi.webapp.GraphServlet</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>BIGAUGESERVLET</servlet-name>

    <servlet-class>oracle.adf.view.faces.bi.webapp.GaugeServlet</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>MapProxyServlet</servlet-name>

    <servlet-class>oracle.adf.view.faces.bi.webapp.MapProxyServlet</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>adflibResources</servlet-name>

    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>

  </servlet>

  <servlet-mapping>

    <servlet-name>Faces Servlet</servlet-name>

    <url-pattern>/faces/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/adf/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/afr/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>BIGRAPHSERVLET</servlet-name>

    <url-pattern>/servlet/GraphServlet/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>BIGAUGESERVLET</servlet-name>

    <url-pattern>/servlet/GaugeServlet/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>MapProxyServlet</servlet-name>

    <url-pattern>/mapproxy/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/bi/*</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>adflibResources</servlet-name>

    <url-pattern>/adflib/*</url-pattern>

  </servlet-mapping>

  <mime-mapping>

    <extension>swf</extension>

    <mime-type>application/x-shockwave-flash</mime-type>

  </mime-mapping>

  <mime-mapping>

    <extension>amf</extension>

    <mime-type>application/x-amf</mime-type>

  </mime-mapping>

  <jsp-config>

    <jsp-property-group>

      <url-pattern>*.jsff</url-pattern>

      <is-xml>true</is-xml>

    </jsp-property-group>

  </jsp-config>

</web-app>

what's wrong?

Help me please.

my jdeve version is 11.2.4.0

This post has been answered by 2780557 on Nov 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2016
Added on Nov 3 2016
6 comments
1,149 views