Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      28036

      Description

      i use Validator Framework in my project.
      and i add plug in tab in my struts-config.xml, like this:

      <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
      <set-property
      property="pathnames"
      value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
      </plug-in>

      and create my validator-rules.xml, like this:
      <!DOCTYPE form-validation PUBLIC
      "-//Apache Software Foundation//DTD Commons Validator Rules
      Configuration 1.0//EN"
      "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">

      <form-validation>
      <validator name="minlength"
      classname="org.apache.struts.validator.FieldChecks"
      method="validateMinLength"
      methodParams="java.lang.Object,
      org.apache.commons.validator.ValidatorAction,
      org.apache.commons.validator.Field,
      org.apache.struts.action.ActionErrors,
      javax.servlet.http.HttpServletRequest"
      msg="errors.minlength">
      </validator>
      </form-validation>
      and my validation.xml

      but when i deploy my project to weblogic server, then some exceptions are
      thrown, like this:
      <Mar 30, 2004 10:23:40 AM GMT+08:00> <Error> <HTTP> <BEA-101046> <[Ser
      vletContext(id=6963414,name=ldp,context-path=/ldp)] action: null
      java.lang.NullPointerException
      at com.fedex.apac.itd.ldp.common.logging.OssLayout.format(Unkn
      own Source)
      at org.apache.log4j.WriterAppender.subAppend(WriterAppender.ja
      va:292)
      at org.apache.log4j.RollingFileAppender.subAppend(RollingFileA
      ppender.java:225)
      at org.apache.log4j.WriterAppender.append(WriterAppender.java:
      150)
      at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton
      .java:221)
      at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopO
      nAppenders(AppenderAttachableImpl.java:57)
      at org.apache.log4j.Category.callAppenders(Category.java:187)
      at org.apache.log4j.Category.forcedLog(Category.java:372)
      at org.apache.log4j.Category.log(Category.java:864)
      at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogg
      er.java:192)
      at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorP
      lugIn.java:170)
      at org.apache.struts.action.ActionServlet.initModulePlugIns(Ac
      tionServlet.java:1096)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.j
      ava:462)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at weblogic.servlet.internal.ServletStubImpl$ServletInitAction
      .run(ServletStubImpl.java:993)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Au
      thenticatedSubject.java:317)
      at weblogic.security.service.SecurityManager.runAs(SecurityMan
      ager.java:118)
      at weblogic.servlet.internal.ServletStubImpl.createServlet(Ser
      vletStubImpl.java:869)
      at weblogic.servlet.internal.ServletStubImpl.createInstances(S
      ervletStubImpl.java:848)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Se
      rvletStubImpl.java:787)
      at weblogic.servlet.internal.WebAppServletContext.preloadServl
      et(WebAppServletContext.java:3252)
      at weblogic.servlet.internal.WebAppServletContext.preloadServl
      ets(WebAppServletContext.java:3197)
      at weblogic.servlet.internal.WebAppServletContext.preloadResou
      rces(WebAppServletContext.java:3174)
      at weblogic.servlet.internal.WebAppServletContext.setStarted(W
      ebAppServletContext.java:5647)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.j
      ava:869)
      at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicatio
      nContainer.java:2022)
      at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplica
      tionContainer.java:2063)
      at weblogic.management.deploy.slave.SlaveDeployer$ComponentAct
      ivateTask.activateContainer(SlaveDeployer.java:2592)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask
      .doCommit(SlaveDeployer.java:2515)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(
      SlaveDeployer.java:2317)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAu
      toCommit(SlaveDeployer.java:2399)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare
      (SlaveDeployer.java:2311)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask
      .prepare(SlaveDeployer.java:2479)
      at weblogic.management.deploy.slave.SlaveDeployer.processPrepa
      reTask(SlaveDeployer.java:798)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta
      (SlaveDeployer.java:507)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdat
      e(SlaveDeployer.java:465)
      at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveC
      allbackHandler.java:25)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:19
      7)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      >
      <Mar 30, 2004 10:23:40 AM GMT+08:00> <Error> <HTTP> <BEA-101216> <Serv
      let: "action" failed to preload on startup in Web application: "ldp".
      javax.servlet.UnavailableException
      at org.apache.struts.action.ActionServlet.initModulePlugIns(Ac
      tionServlet.java:1103)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.j
      ava:462)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at weblogic.servlet.internal.ServletStubImpl$ServletInitAction
      .run(ServletStubImpl.java:993)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Au
      thenticatedSubject.java:317)
      at weblogic.security.service.SecurityManager.runAs(SecurityMan
      ager.java:118)
      at weblogic.servlet.internal.ServletStubImpl.createServlet(Ser
      vletStubImpl.java:869)
      at weblogic.servlet.internal.ServletStubImpl.createInstances(S
      ervletStubImpl.java:848)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Se
      rvletStubImpl.java:787)
      at weblogic.servlet.internal.WebAppServletContext.preloadServl
      et(WebAppServletContext.java:3252)
      at weblogic.servlet.internal.WebAppServletContext.preloadServl
      ets(WebAppServletContext.java:3197)
      at weblogic.servlet.internal.WebAppServletContext.preloadResou
      rces(WebAppServletContext.java:3174)
      at weblogic.servlet.internal.WebAppServletContext.setStarted(W
      ebAppServletContext.java:5647)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.j
      ava:869)
      at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicatio
      nContainer.java:2022)
      at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplica
      tionContainer.java:2063)
      at weblogic.management.deploy.slave.SlaveDeployer$ComponentAct
      ivateTask.activateContainer(SlaveDeployer.java:2592)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask
      .doCommit(SlaveDeployer.java:2515)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(
      SlaveDeployer.java:2317)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAu
      toCommit(SlaveDeployer.java:2399)
      at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare
      (SlaveDeployer.java:2311)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask
      .prepare(SlaveDeployer.java:2479)
      at weblogic.management.deploy.slave.SlaveDeployer.processPrepa
      reTask(SlaveDeployer.java:798)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta
      (SlaveDeployer.java:507)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdat
      e(SlaveDeployer.java:465)
      at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveC
      allbackHandler.java:25)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:19
      7)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      >

      can you tell me why the project can not be deploy to server normally,
      if i remove the plugin tab, then the project can deploy.
      thanks

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dongluyang@hotmail.com dly
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: