Bean already exists

hi when i run my application am geting below error,i don't have any duplicate bean in C:\Users\Tshifhiwa\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee\drs\CascadingSOC\META-INF i only have two file=application,weblogic-application,am i jdeveloper 11.1.1.6
<10 Nov 2012 8:45:43 PM> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\Users\Tshifhiwa\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee\drs\CascadingSOC/META-INF/weblogic-application.xml of module CascadingSOC. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
     at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:161)
     at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
     at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
     at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
     at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
     at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
     at weblogic.application.ApplicationDescriptor.getWeblogicApplicationDescriptor(ApplicationDescriptor.java:324)
     at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:181)
     at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
     at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
     at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
     at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
     at weblogic.management.deploy.internal.MBeanConverter.createApplicationForAppDeployment(MBeanConverter.java:67)
     at weblogic.management.deploy.internal.MBeanConverter.setupNew81MBean(MBeanConverter.java:315)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.compatibilityProcessor(ActivateOperation.java:81)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.setupPrepare(AbstractOperation.java:295)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:97)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
     at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.LibraryRefBeanImpl@86974b6a(/LibraryRefs[[CompoundKey: adf.oracle.domain]])"
     at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
     at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:539)
     at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:381)
     at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
     at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:140)
     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:200)
     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:169)
     at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
     at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:150)
     ... 27 more
Caused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.LibraryRefBeanImpl@86974b6a(/LibraryRefs[[CompoundKey: adf.oracle.domain]])"
     at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)
     at weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl.setLibraryRefs(WeblogicApplicationBeanImpl.java:1440)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
     ... 35 more
.>
<10 Nov 2012 8:45:43 PM> <Error> <Deployer> <BEA-149605> <Failed to create App/Comp mbeans for AppDeploymentMBean CascadingSOC. Error - weblogic.management.DeploymentException: Unmarshaller failed.
weblogic.management.DeploymentException: Unmarshaller failed
     at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
     at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
     at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
     at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
     at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
     Truncated. see log file for complete stacktrace
Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.LibraryRefBeanImpl@86974b6a(/LibraryRefs[[CompoundKey: adf.oracle.domain]])"
     at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)
     at weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl.setLibraryRefs(WeblogicApplicationBeanImpl.java:1440)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     Truncated. see log file for complete stacktrace
>
<10 Nov 2012 8:45:43 PM> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1352573142571' for task '0'. Error is: 'weblogic.management.DeploymentException: Unmarshaller failed'
weblogic.management.DeploymentException: Unmarshaller failed
     at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
     at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
     at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
     at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
     at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
     Truncated. see log file for complete stacktrace
Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.LibraryRefBeanImpl@86974b6a(/LibraryRefs[[CompoundKey: adf.oracle.domain]])"
     at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)
     at weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl.setLibraryRefs(WeblogicApplicationBeanImpl.java:1440)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     Truncated. see log file for complete stacktrace
>
<10 Nov 2012 8:45:43 PM> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'CascadingSOC'.>
<10 Nov 2012 8:45:43 PM> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException: Unmarshaller failed
     at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
     at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
     at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
     at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
     at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
     Truncated. see log file for complete stacktrace
Caused By: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.wl.LibraryRefBeanImpl@86974b6a(/LibraryRefs[[CompoundKey: adf.oracle.domain]])"
     at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)
     at weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl.setLibraryRefs(WeblogicApplicationBeanImpl.java:1440)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     Truncated. see log file for complete stacktrace
>
[08:45:43 PM] #### Deployment incomplete. ####
[08:45:43 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application CascadingSOC due to error deploying to IntegratedWebLogicServer.
[Application CascadingSOC stopped and undeployed from Server Instance IntegratedWebLogicServer]
Edited by: adf0994 on 2012/11/10 9:52 PM

Check your weblogic-application.xml if there is a duplicate library-ref
  <library-ref>
    <library-name>adf.oracle.domain</library-name>
  </library-ref>Timo

Similar Messages

  • BeanAlreadyExistsException: Bean already exists when run weblogic.appc

    We use weblogic.appc to generate the ejb jar file. It works fine on my Windows XP, but failed on another Windows XP. Below is the stack trace of the error message:
    <Mar 17, 2009 8:49:27 AM PDT> <Error> <J2EE> <BEA-160197> <Unable to load descri
    ptor D:\VSS\Client_Manager\bin\std-web-matrixejb.jar/META-INF/ejb-jar.xml of module std-web-matrixejb.jar. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.
    getDescriptorBeanFromReaderAbstractDescriptorLoader2.java:774)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:131)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
    LWithSchema(EjbDescriptorReaderImpl.java:671)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXML(EjbDescriptorReaderImpl.java:220)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
    escriptorFromJarFile(EjbDescriptorReaderImpl.java:185)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1430)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:467)
    at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:298)
    at weblogic.application.compiler.EJBModule.compile(EJBModule.java:83)
    at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:16)
    at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:25
    at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
    at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.Appc.runBody(Appc.java:172)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.Appc.main(Appc.java:183)
    at weblogic.appc.main(appc.java:14)
    Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsExcept
    ion: Bean already exists: "weblogic.j2ee.descriptor.SessionBeanBeanImpl@3eb8f669
    (//Sessions[<!DOCTYPE ejb-jar PUBLIC '-..Sun Microsystems, Inc...DTD Enterprise
    JavaBeans 2.0..EN' 'http:..java.sun.com.dtd.ejb-jar_2_0.dtd'> <ejb-jar> <enterpr
    ise-beans> <session> <ejb-name>com.matrix.clientmanager.ejb.LoginDocHome<.ejb-na
    me> <home>com.matrix.clientmanager.ejb.LoginEjbHome<.home> <remote>com.matrix.cl
    ientmanager.ejb.LoginEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ej
    b.LoginEjb<.ejb-class> <session-type>Stateless<.session-type> <transaction-type>
    Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.clientmanager.
    ejb.GroupMaintenanceDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.GroupM
    aintenanceEjbHome<.home> <remote>com.matrix.clientmanager.ejb.GroupMaintenanceEj
    bRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ejb.GroupMaintenanceEjb<.
    ejb-class> <session-type>Stateless<.session-type> <transaction-type>Bean<.transa
    ction-type> <.session> <session> <ejb-name>com.matrix.clientmanager.ejb.StatusTr
    eeDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.StatusTreeEjbHome<.home>
    <remote>com.matrix.clientmanager.ejb.StatusTreeEjbRemoteIf<.remote> <ejb-class>
    com.matrix.clientmanager.ejb.StatusTreeEjb<.ejb-class> <session-type>Stateless<.
    session-type> <transaction-type>Bean<.transaction-type> <.session> <session> <ej
    b-name>com.matrix.clientmanager.ejb.ChangeStatusDocHome<.ejb-name> <home>com.mat
    rix.clientmanager.ejb.ChangeStatusEjbHome<.home> <remote>com.matrix.clientmanage
    r.ejb.ChangeStatusEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ejb.C
    hangeStatusEjb<.ejb-class> <session-type>Stateless<.session-type> <transaction-t
    ype>Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.clientmana
    ger.ejb.EmployeeDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.EmployeeEj
    bHome<.home> <remote>com.matrix.clientmanager.ejb.EmployeeEjbRemoteIf<.remote> <
    ejb-class>com.matrix.clientmanager.ejb.EmployeeEjb<.ejb-class> <session-type>Sta
    teless<.session-type> <transaction-type>Bean<.transaction-type> <.session> <sess
    ion> <ejb-name>com.matrix.clientmanager.ejb.RoleScreenMappingDocHome<.ejb-name>
    <home>com.matrix.clientmanager.ejb.RoleScreenMappingEjbHome<.home> <remote>com.m
    atrix.clientmanager.ejb.RoleScreenMappingEjbRemoteIf<.remote> <ejb-class>com.mat
    rix.clientmanager.ejb.RoleScreenMappingEjb<.ejb-class> <session-type>Stateless<.
    session-type> <transaction-type>Bean<.transaction-type> <.session> <session> <ej
    b-name>com.matrix.clientmanager.ejb.StatusLibraryDocHome<.ejb-name> <home>com.ma
    trix.clientmanager.ejb.StatusLibraryEjbHome<.home> <remote>com.matrix.clientmana
    ger.ejb.StatusLibraryEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ej
    b.StatusLibraryEjb<.ejb-class> <session-type>Stateless<.session-type> <transacti
    on-type>Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.client
    manager.ejb.LetterGroupDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.Let
    terGroupEjbHome<.home> <remote>com.matrix.clientmanager.ejb.LetterGroupEjbRemote
    If<.remote> <ejb-class>com.matrix.clientmanager.ejb.LetterGroupEjb<.ejb-class> <
    session-type>Stateless<.session-type> <transaction-type>Bean<.transaction-type>
    <.session> <session> <ejb-name>com.matrix.clientmanage])"
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
    at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty
    .setValue(RuntimeBindingType.java:483)
    at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRunti
    meProperty.fillCollection(AttributeRuntimeBindingType.java:385)
    at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
    at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalOb
    jectFromIntermediary(AttributeRuntimeBindingType.java:145)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:159)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:130)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(U
    nmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:154)
    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    ... 33 more
    Edited by: [email protected] on Mar 17, 2009 10:25 AM

    This exception is caused due to duplicate entries of the bean (TaskServiceBean) in CompositeServices\OrderApprovalHumanTask\public_html\WEB-INF\weblogic.xml file in WebLogicFusionOrderDemo project. Replace this file with the original one in the downloaded project zip and the application deploys successfully.

  • Include file causes redefinition of bean which already exists!!

    hi,
    i have a jsp page in which i have 3 directives include.
    in every included file i have the same bean used like that:
    <jsp:usebean id="myid" class="myclass" scope="session"/>
    that causes the following error:
    "the tag tried to define a bean which already exists : myid"
    (it s in frensh i tried to traduce it)
    does someone know how to fix that problem??
    thanks in advance!

    i have a jsp page in which i have 3 directives include.
    in every included file i have the same bean used like that:
    <jsp:usebean id="myid" class="myclass" scope="session"/>In one translation unit, the value of the id attribute of "jsp:usebean" must be unique. Duplicate id’s found in the same translation unit shall result in a fatal translation error. The jsp page, together with the included files as specified by page directive "include" recursively, is considered inside one translation unit.
    Removing that line in your included files will fix the problem. Of course, you need to include that line exactly once in the including page.

  • Tag attempted to define a bean which already exists

    I am having problems with something i thought was solved in version 10.1.3.0.0, but obviously not.
    Here is the error message i get:
    500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: /html/portlet/journal_content/view.jsp: Line # 101, </liferay-portlet:renderURL>
    Error: Tag attempted to define a bean which already exists: portletURL
    I have tried adding init-param forgive_dup_dir_attr to the jsp servlet, but it doesn't help.
    Any ideas how to solve this??
    BR's

    500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: /html/portlet/journal_content/view.jsp:
    Line # 101, </liferay-portlet:renderURL>
    Error: Tag attempted to define a bean which already exists: portletURLPlease see my message how to avoid "Tag attempted to define a bean which already exists". Please tell me if it helps.
    I am having problems with something i thought was solved in version 10.1.3.0.0, but
    obviously notUnfortunately, it is not. It should be resolved in the next major version.

  • Error: Tag attempted to define a bean which already exists:

    I am getting following error
    oracle.jsp.parse.JspParseException: Line # 1, Error: Tag
    attempted to define a bean which already exists: webBoard
    The first few line of my code is given below
    <%@ page import = "java.io.*" %>
    <%@ page import = "java.util.*" %>
    <jsp:useBean id ="webBoard" scope = "session" class
    = "com.webBoard.DBBean"/>
    Any help will be highly appreciated.
    Thanks and Regards
    Sai Kumar

    I am getting following error
    oracle.jsp.parse.JspParseException: Line # 1, Error: Tag
    attempted to define a bean which already exists: webBoard
    The first few line of my code is given below
    <%@ page import = "java.io.*" %>
    <%@ page import = "java.util.*" %>
    <jsp:useBean id ="webBoard" scope = "session" class
    = "com.webBoard.DBBean"/>
    Any help will be highly appreciated.
    Thanks and Regards
    Sai Kumar

  • Already existing adapter modules in Decentralized Adapter Engine(urgent)

    hi 2 all,
    I have installed a Decentralized AE.
    I wanted to know whether i can use already existing modules in XI directly in my communication channel with my non central DAE as the adapter engine.
    Or i have to deploy SCA of those already existing modules also ??
    If i can use how to write that in modules
    regards,
    ujjwal kumar

    ya i used it but i am getting the error:
    Delivery of the message to the application using connection AFW failed, due to: Object not found in lookup of XMLAnonymizerBean
    so i might be using wrong format.
    i wrote module name as :localejbs/AF_Modules/XMLAnonymizerBean
    and module type as local enterprise bean
    regards

  • INVALID CLASS:model_cmd_bean as model class already exists.

    Hello all,
    I am gettin the following error:INVALID CLASS:model_cmd_bean as model class already exists. while creating a java bean Model.
    but this is the 1st time i m using these wraper class and cmd class for creating a model.
    Sugest what shoul i do?

    Hi,
    Welcome to SDN Community
    Check these forum links,
    Import JavaBean Error : Invalid Class
    invalid class - ..as Model Class already exist
    Hope this helps.
    Regards
    Srinivasan T

  • How to verify if user already exists in MySQL database using JSP?

    Hi, I am trying to create a website that allows users to register and then login. All regsitration details are stored in a MySQL table and I am attempting to have a java bean check that a new user does not already exist by looking up the username. However, I cannot get this to work, the bean is allowing anyone through. I believe there may be a problem with my while loop as the bean checks through the stored usernames in the database. Any suggestions appreciated thanks. See my code below:[
    code]package foo;
    import java.sql.*;
    import java.util.*;
    public class FormBean {
         private String firstName;
         private String lastName;
         private String email;
         private String userName;
         private String password1;
         private String password2;
         private Hashtable errors;
         public boolean validate() {
              boolean allOk=true;
              if (firstName.equals("")) {
                   errors.put("firstName","Please enter your first name");
                   firstName="";
                   allOk=false;
              if (lastName.equals("")) {
                   errors.put("lastName","Please enter your last name");
                   lastName="";
                   allOk=false;
              if (email.equals("") || (email.indexOf('@') == -1)) {
                   errors.put("email","Please enter a valid email address");
                   email="";
                   allOk=false;
              if (userName.equals("")) {
                   errors.put("userName","Please enter a username");
                   userName="";
                   allOk=false;
    try {
              String database = "******hidden******";
              Class.forName("com.mysql.jdbc.Driver");
              Connection conn = DriverManager.getConnection(database,"********hidden*******");
              Statement stat = conn.createStatement();
              String query="SELECT u_name FROM users;";
              String DbUserName="";
              ResultSet rst=stat.executeQuery(query);
              while(rst.next()) {
    DbUserName=rst.getString("u_name");
    if (userName.equals(DbUserName)) {
    allOk=false;
    errors.put("userName","User name already exists, please choose another");
    userName="";
    conn.close();
    break;
    } catch (Exception ex) {
    ex.printStackTrace();
              if (password1.equals("") ) {
                   errors.put("password1","Please enter a valid password");
                   password1="";
                   allOk=false;
              if (!password1.equals("") && (password2.equals("") || !password1.equals(password2))) {
                   errors.put("password2","Please confirm your password");
                   password2="";
                   allOk=false;
    return allOk;
         public String getErrorMsg(String s) {
              String errorMsg =(String)errors.get(s.trim());
         return (errorMsg == null) ? "":errorMsg;
         public FormBean() {
         firstName="";
         lastName="";
         email="";
    userName="";
         password1="";
         password2="";
         errors = new Hashtable();
         public String getFirstName() {
              return firstName;
         public String getLastName() {
              return lastName;
         public String getEmail() {
              return email;
         public String getUserName() {
              return userName;
         public String getPassword1() {
              return password1;
         public String getPassword2() {
              return password2;
         public void setFirstName(String fname) {
              firstName =fname;
         public void setLastName(String lname) {
              lastName =lname;
         public void setEmail(String eml) {
              email=eml;
         public void setUserName(String u) {
              userName=u;
         public void setPassword1(String p1) {
              password1=p1;
         public void setPassword2(String p2) {
              password2=p2;
         public void setErrors(String key, String msg) {     
              errors.put(key,msg);

    Hmm, tried that and now have more build errors in the finally section.
    init:
    deps-jar:
    Compiling 1 source file to C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\build\classes
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:57: cannot resolve symbol
    symbol  : variable rst
    location: class foo.FormBean
                if (rst != null) rst.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:58: cannot resolve symbol
    symbol  : variable stat
    location: class foo.FormBean
                if (stat != null) stat.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (conn != null)  conn.close();
    C:\resin-2.1.11\doc\examples\basic\WEB-INF\classes\JavaLibrary1\test\FormBean.java:59: cannot resolve symbol
    symbol  : variable conn
    location: class foo.FormBean
                if (con != null)  conn.close();
    6 errors
    BUILD FAILED (total time: 1 second)Just for a quick test, I deleted the sql exception and finally code and replaced it with a regular exception just to see what happened and got no build errors, however when I run the form I am getting an sql exception from the prepared statement, parameter out of range (1 > 0). I tried reading into prepared statements, and although I now understand their basics, I still have no idea why I'm getting this error?

  • Need help with Sharepoint foundation web application stuck on "STOPPING" error job-service-instance-GUID Number already exists

    Hi All,
         I cant get to stop SharePoint foundation web app service. Its stuck on status stopping
    I have tried the following:
    reset IIS
    restarted the Timer Service
    When I try to use powershell command to stop I get the following error:
    Can anyone who went through this help PLEASE
    Stop-SPServiceInstance : An object of the type
    Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named
    "job-service-instance-1ff39eb2-12d2-457d-a749-265e350eb1b1" already exists
    under the parent Microsoft.SharePoint.Administration.SPTimerService named
    "SPTimerV4". Rename your object or delete the existing object.
    At line:1 char:127
    + ... pplication"} | Stop-SPServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:
    SPCmdletStopServiceInstance) [Stop-SPServiceInstance], SPDuplicateObjectEx
    ception
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStopServ
    iceInstance

    Hi,
    It seems that the issue is in the timer job definition for executing this operation.
    My suggestion is to start the service again and delete the job definition from the error and again try to stop it.
    This might be helpful:
    http://sharepoint.stackexchange.com/questions/22368/is-there-a-powershell-cmdlet-to-delete-a-timer-job 
    I had a lot of issues in the past when try to stop this instance after the Web apps are provisioned.
    As general rule now If I have multi-server Farm topology that has servers that should not serve Web App requests I turn off the service prior to provisioning any Web Apps in the Farm. 
    BR,
    Ivan

  • Error: Source system already exists. Message no. RSAR201. Points rewarded.

    Error: Source system already exists. Message no. RSAR201
    We have installed a BI 7.0 system recently and I am setting up the server to connect to SAP ERP.
    In TA SM59 a connection to the SAP ERP has been established. The “Remote Logon” is OK, (meaning clicking it nothing happens). The “Connection Test” is OK.
    According to the Best Practices paper: “B84: BI Connectivity” (B84)
    http://help.sap.com/bp_biv170/BBLibrary/documentation/B84_BB_ConfigGuide_EN_DE.doc
    I have done the following:
    In TA RSA1
    1.     Choose Modeling.
    2.     Choose Source Systems.
    3.     Select SAP in the window on the right.
    4.     Choose the Context menu (right mouse click).
    5.     Choose Create.
    6.     Make the following entries:
    Available destination: (The above tested connection)
    Background user in source system: RFCUSER (I created the user in ERP according to step 1.4 in “B84”)
    Password for source system: *****
    Background user in BI: RFCUSER (I created the user in BI according to step 1.4 in “B84”)
    Password for BI user: *****
    8.     In the dialog box Please log on as an administrator in the following screen choose Continue.
    9.     Log on to the Source System with your administrator user. Choose the correct client.
    10.     On the dialog box New Source System Connection choose Continue.
    THEN I GET THE ERROR:
    Source system already exists.
    Message no. RSAR201
    What is wrong? I cannot locate any SAP notes to help on this problem.
    Best regards,
    Carsten Pold

    Hello Carsten,
    just some guessing at this point...
    a)
    Is the connection really new? For example, was there another system connected to that ERP, maybe with the same logical name? Or was any of the two systems copied from another system?
    b)
    Authorisations issues in this process may result in strange error messages. Make sure that the admin user in step 9 really has SAP_ALL. There are a lot of complex activities that this user must be able to do (ALE management, RFC access etc.). To exclude issues with the RFCUSER users: If possible, give them SAP_ALL, too. Of course only temporarily for testing.
    c)
    I normally don't use existing RFC destinations. Usually, I let the system create those, too. So maybe it makes a difference if you remove the RFC destinations on both sides and try again. In that case, you will of course have to provide the RFC details when creating the source system connection...
    I hope this brings you forward a little...
    Regards,
    Christian!

  • Lightroom not putting folders in subdirectories as directed on import; then not letting me move folders to clean up because "folders already exist" (but they don't!) Please help!

    I have used Lightroom for years and have never had issues importing until a few weeks ago. I have a very organized system of files for my portraits - "Portraits" > "Babies & Families" > "2014" > "(Surname)". While importing I create a subfolder using the family surname under "Destination" in LR. It shows an italicized folder in the correct place prior to clicking "Import," but when I go to "Library" mode to select the folder, all the newly created folders are now on the root directory. I try to then drag and drop them to their proper place, but I'm told that a folder by this name already exists in that destination and won't allow the move. Tried emailing a contact at Adobe, and then followed up with a phone call, but haven't heard back. Desperately need help before my entire file system becomes one big mess. Any thoughts or advice graciously welcomed.
    Thanks,
    Anita

    Thanks for the tip. That partially took care of the problem. Now all the orphans are back together, but a new root folder called "Photos" has been created as the parent of a new set of "Portraits" > "Babies & Familes" > "2014". So now I have Root folder > "Portraits" > "Babies & Familes" > "2014" > "Surname" AND "Portraits" (at root) > "Babies & Familes" > "2014". I've tried to drag the Surname folders into the preexisting "2014" but it says they already exist, so then I tried dragging "2014" under the preexisting "Portraits" and was able to do that but it somehow screwed up the original "2014" folder which now has a "?" next to "2014" and all it's contents! It's getting worse! What now?

  • How do I get the pictures from my iPhoto on my external Hard Drive to show up in the already existing iPhoto on my MacBook?

    I have an early 2008 MacBook. I had been using iPhoto on this MacBook until I purchased an iMac in 2011, at which time I copied my iPhoto Library from my MacBook to my iMac. Then I realized that my pictures and music were consuming the memory on my iMac, so I moved iPhoto and my iTunes LIbrary to an external Hard Drive. Now I am in a situation where I do not have access to my iMac, but will need to use my MacBook as my main computer for the next year. So, I have my iPhoto on an external hard drive and I plug it into my MacBook and see the iPhoto Library folder, but when I click on it, it opens up the old iPhoto that is still existing on my MacBook and will not show any of the new pictures?! At first I thought it wasn't able to show up anything because my MacBook was running two operating systems behind what my iMac was when I was running my iPhoto Library from that computer. So, I upgraded to OS X 10.7.5 and upgraded the existing iPhoto on my MacBook to iPhoto '11 version 9.4.3. However whenever I plug in the external hard drive and click on the iPhoto Library folder to open it up, it is still just opening up the already existing iPhoto on the MacBook (with my older pictures) rather than the iPhoto on the hard drive (with my newer pictures). How can I access my pictures that are on my external hard drive?

    Thank you for your advice. I followed your directions, but came up with the same results. However, I did discover that whenever I open up the iPhoto Library that is already existing on my MacBook a certain set of pictures shows up. But then when I open up the iPhoto Library from the Hard drive another set of pictures shows up. BUT not ALL of my pictures are showing up on the iPhoto Library from the hard drive. At least the last two years of pictures are not showing up?! Actually, it appears that all the pictures are there from when I started using iPhoto about 5 years ago up until around the time that I got my iMac desktop computer and started using that (2 years ago). I have noticed that more recent videos I have made are showing up in a folder on the hard drive, but will not appear when I open up iMovie?! Any ideas on how to access my pictures from the last 2 years off of the hard drive???

  • I plugged in my brand new nano to my husbands desktop to get it registered, but had a problem mid way through when I tried to used an apple login that already existed.  Now it's not registered and the computer won't recognize my device.  How do I fix this

    I plugged in my brand new nano to my husbands desktop to get it registered, but had a problem mid way through when I tried to used an apple login that already existed.  Now it's not registered and the computer won't recognize my device.  How do I fix this?

    iPod not recognized in 'My Computer' and in iTunes for Windows
    Call U.S. iPod and Mac technical support: 1-800-APL-CARE (1-800-275-2273) to register your iPod Nano.

  • Cannot backup my files / copy my files and folders due to error message " The operation can't be completed because an item with the name ".DS_Store" already exists. "

    Hi Apple community!
    I have a [rather worrying] problem.
    When I try to copy all my files from my documents on my mac [or the entire documents folder] into an external drive, I get this error message
    " The operation can’t be completed because an item with the name “.DS_Store” already exists. "
    I am not given an option to skip this file or anything else.
    But I simply cannot complete the operation!
    I have tried deleting a few of the .ds_store files, [both in the original and in the destinations]
    but no success.
    The same thing keeps happening.
    At first, this was just happening when I was trying to backup to my dropbox folder [the one on my mac's harddrive, which gets synced to the cloud],
    but then I tried to back up my documents to my external hard drive, and I realized it is giving me the same error message.
    So effectively, it seems I cannot backup my files anywhere!
    Any help or advice would be greatly appreciated.
    Thank you.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Operation can't be completed because an item of same name already exists - Mavericks

    I am trying to copy a large file folder (of a large iTunes library of music files) from a WD Live NAS drive to a new AirPlay Time Capsule via Finder on my Retina MBP. Every time I try it, I get the same error "operation can't be completed because an item of the same name already exists."
    I have tried a number of the following solutions:
    1. I cleared my cache out as in this thread:
    https://discussions.apple.com/thread/2231287?start=120&tstart=0
    2. I tried using the Terminal app, as in this thread:
    https://discussions.apple.com/message/21786245#21786245
    3. I tried closing both Finder windows once I started the copy operation, as in this thread:
    https://discussions.apple.com/thread/2231287?start=105&tstart=0
    4. I tried deleting/renaming all files that contained a ~ as in a thread I can't find right now.
    All of these things are not working. I was able to copy several other large file folders (mostly of videos) without a hitch. I can't figure it out. Can anyone assist?
    Many thanks...

    subcrapper wrote:
    "have you tried using Disk Utility to erase 1TB HHD and reformat before trying to copy the data back?"
    Yes, I had to format the 1TB to FAT before I use it.
    whoa there. why did you format the drive FAT? that's an obsolete windows drive format and OS X is known to have various issues with it. this may easily account for your problems. strongly suggest you reformat the drive mac os extended.
    "have you tried using the restore option within Disk Utility to copy the data back instead of doing it manually?"
    There's nothing on the 1TB to restore because I sent it in for warranty exchange. So its brand new, nothing in it.
    he was suggesting that you use the restore tab in disk utility to copy the 640GB drive to the new 1TB one. that's what I suggested too but I mentioned using superduper or CCCloner.
    but you really should reformat the drive first. the only reason to use FAT is if you want to use the drive from both mac and windows. but then you'll likely have to live with the quirks of FAT and OS X.

Maybe you are looking for

  • My iPod Touch 4g is stuck in Apple Mode after attempting to install the Siri GUI. What can I do to restore?

    I have an 8GB, 4g iPod Touch. It has the lastest iOS on it (iOS 5). Yesterday I used Cydia to jailbreak it. I had no idea what I was doing but I followed step-by-step instuctions and it worked! Needless to say, I've messed up several times (while reb

  • Problems with idoc ORDERS05

    Hi experts, I created a new Z segment for idoc ORDERS05 and it works fine. This idoc is generated whenever a PO is created or modified. But if the PO has locked or deleted items, there is no segment for this items in the IDOC. Should I modify any cod

  • Can anyone post screen caps of a mini drive formatted to a Mac for me?

    "B Noir" and I recently fixed my iPod mini by deleting excess files, which we think were created when (many moons ago) I plugged the mini into a mac at school. My Windows-formatted mini was showing some files that bore an uncanny resemblence to a mac

  • "Daisy-Chain" G4's and G5's to Intel?

    Is daisy-chaining of these possible with the intel as the "host"? Am I asking this right?

  • Open several word documents

    In SolMan (Solar01), MS Word documents are attached to the documentation tabs, and can be opened, edited and saved. But appearently only one document can be opened at the time, and if you navigate to another place in the structure than where you open