Announcement Announcement Module
Collapse
No announcement yet.
imagedb standalone problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • imagedb standalone problem

    Hi guys,

    I'm trying to run the imagedb sample app in standalone mode. It worked fine as a webapp, but when I try to run it in standalone I get the error message:

    Am I missing some jars or something?

    Thanks for any help,

    Andy



    C:\spring-framework-2.0-rc2\samples\imagedb\standalone>
    C:\spring-framework-2.0-rc2\samples\imagedb\standalone>standalone.bat 2
    C:\spring-framework-2.0-rc2\samples\imagedb\standalone>cd ..\war
    C:\spring-framework-2.0-rc2\samples\imagedb\war>java -cp ../../../lib/ant/ant.j
    r;../../../lib/ant/ant-launcher.jar;../../../lib/j2ee/xml-apis.jar org.apache.t
    ols.ant.Main -buildfile ../standalone/run.xml run -DnrOfCalls=2
    Buildfile: ..\standalone\run.xml

    run:
    [java] Jul 18, 2006 10:40:31 AM org.springframework.core.CollectionFactory
    <clinit>
    [java] INFO: JDK 1.4+ collections available
    [java] Jul 18, 2006 10:40:31 AM org.springframework.core.CollectionFactory
    <clinit>
    [java] INFO: Commons Collections 3.x available
    [java] Jul 18, 2006 10:40:31 AM org.springframework.beans.factory.xml.XmlB
    anDefinitionReader loadBeanDefinitions
    [java] INFO: Loading XML bean definitions from file [C:\spring-framework-20-rc2\samples\imagedb\war\WEB-INF\applicationContext.xml]
    [java] javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.a
    ache.xerces.internal.jaxp.DocumentBuilderFactoryIm pl could not be instantiated:
    java.lang.NullPointerException
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute( ExecuteJav
    .java:180)
    [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:7 10)
    [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Jav a.java:178

    [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.ja va:84)
    [java] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.j
    va:275)
    [java] at org.apache.tools.ant.Task.perform(Task.java:364)
    [java] at org.apache.tools.ant.Target.execute(Target.java:34 1)
    [java] at org.apache.tools.ant.Target.performTasks(Target.ja va:369)
    [java] at org.apache.tools.ant.Project.executeSortedTargets( Project.ja
    a:1216)

  • #2
    xerces

    Hi - I eventually figured out how to get this working and thought I'd post the answer here in case anybody else has the same problem.

    To get the standalone version of imagedb.jar to work you also have to copy a xerces jar into the WEB-INF/lib folder. I used xerces-2.6.2.jar and it is finally working.

    Andy

    Comment

    Working...
    X