Discussions

EJB design: Cold Fusion MX and Struts

  1. Cold Fusion MX and Struts (2 messages)

    Has anyone had any luck getting Struts to work with ColdFusion MX?

    I have followed the directions on Macromedia's site but the server just tells my page not found for any Struts-related URL I request.

    Any help would be greatly appreciate...

    Also, any help on using Struts Validator with Cold Fusion...?

    Thanks
  2. Cold Fusion MX and Struts[ Go to top ]

    Maybe this:
    Streamlining Application Development Using Struts in ColdFusion MX

    --
    Andrew Kuzmin
    Java201.com
  3. Andrew,

    Thanks for your post.

    My starting point was that article. But I cannot get the example app to work.

    After going through the JRun server log line by line last night, I realized several Jakarta components referenced in the example's config files were not included in the distribution (e.g., validator).

    I have gotten it to show me the first page (a login form). But submitting the form only gives me the login page again (failure forward rather than success). Since the template pre-populates the correct login credentials, I'm not sure why it's a problem.

    More often than not, I got error messages on server start up (org.apache.struts.util.LabelValueBean, see the second example below) or when I access the page (immediately below). The latter's more frustrating because I don't know if the problem is the config file it's looking for or a value in the file.

    Any help would be greatly appreciated...


    When accessing the page:
     javax.servlet.UnavailableException: Parsing error processing resource path
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:952)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
    at jrun.servlet.JRunRequestDispatcher.init(JRunRequestDispatcher.java:709)
    at jrun.servlet.JRunRequestDispatcher.(JRunRequestDispatcher.java:101)
    at jrun.servlet.WebApplicationService.getDispatcher(WebApplicationService.java:838)
    at jrun.servlet.ServletEngineService$1.fetch(ServletEngineService.java:511)
    at jrunx.util.Cache.get(Cache.java:116)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:523)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



    When starting the JRun server:
    10/03 06:45:34 error Could not pre-load servlet: action

    [2]java.lang.InstantiationException: org.apache.struts.util.LabelValueBean

    at java.lang.Class.newInstance0(Unknown Source)

    at java.lang.Class.newInstance(Unknown Source)

    at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)

    at org.apache.commons.digester.Rule.begin(Rule.java:152)

    at org.apache.commons.digester.Digester.startElement(Digester.java:1286)

    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)

    at org.apache.crimson.parser.Parser2.content(Unknown Source)

    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)

    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)

    at org.apache.crimson.parser.Parser2.parse(Unknown Source)

    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)

    at org.apache.commons.digester.Digester.parse(Digester.java:1591)

    at org.apache.struts.plugins.DigestingPlugIn.init(DigestingPlugIn.java:132)

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)

    at javax.servlet.GenericServlet.init(GenericServlet.java:256)

    at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)

    at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)

    at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)

    at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)

    at jrun.deployment.DeployerService.deploy(DeployerService.java:430)

    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)

    at jrun.deployment.DeployerService.run(DeployerService.java:891)

    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)

    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    [1]java.lang.InstantiationException: org.apache.struts.util.LabelValueBean

    at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)

    at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)

    at org.apache.commons.digester.Digester.startElement(Digester.java:1289)

    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)

    at org.apache.crimson.parser.Parser2.content(Unknown Source)

    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)

    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)

    at org.apache.crimson.parser.Parser2.parse(Unknown Source)

    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)

    at org.apache.commons.digester.Digester.parse(Digester.java:1591)

    at org.apache.struts.plugins.DigestingPlugIn.init(DigestingPlugIn.java:132)

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)

    at javax.servlet.GenericServlet.init(GenericServlet.java:256)

    at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)

    at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)

    at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)

    at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)

    at jrun.deployment.DeployerService.deploy(DeployerService.java:430)

    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)

    at jrun.deployment.DeployerService.run(DeployerService.java:891)

    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)

    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    [0]javax.servlet.ServletException: Error at (2, -1: org.apache.struts.util.LabelValueBean

    at org.apache.struts.plugins.DigestingPlugIn.init(DigestingPlugIn.java:142)

    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)

    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)

    at javax.servlet.GenericServlet.init(GenericServlet.java:256)

    at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)

    at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)

    at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)

    at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)

    at jrun.deployment.DeployerService.deploy(DeployerService.java:430)

    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)

    at jrun.deployment.DeployerService.run(DeployerService.java:891)

    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)

    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)