File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent need help

 
bob morkos
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After installing and running cocoon. I installed Cocoon 1.8, and I don't know why it's not working. Could somoene tell me what's wrong. This is what I get below:
<dos>
C:\webapp\cocoon\Cocoon>build
Cocoon Build System
-------------------
Building with classpath .\lib\ant.jar;c:\jdk1.3.1\lib\tools.jar;.\lib\xerces_1_0
_3.jar;.\lib\xalan_1_0_1.jar;.\lib\fop_0_12_1.jar;.\lib\servlet_2_2.jar;;C:\IBM
Connectors\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;C:\IMNnq_NT;C:\cocoon\x
ml-cocoon2\lib;C:\cocoon\xml-cocoon2\bin;C:\jdk1.3.1\bin;c:/jdk1.3.1/;;.
Starting Ant...
Buildfile: build.xml
Project base dir set to: C:\webapp\cocoon\Cocoon
Executing Target: init
------------------- Cocoon 1.7.4 [1999-2000] ----------------
Executing Target: prepare
Created dir: C:\webapp\cocoon\Cocoon\build
Executing Target: prepare-projectx
Executing Target: prepare-xt
Executing Target: prepare-ecma
Executing Target: prepare-ldap
Copying 5 files to C:\webapp\cocoon\Cocoon\build\src
Executing Target: prepare-doclet
Copying 1 files to C:\webapp\cocoon\Cocoon\build\src
Executing Target: prepare-src
Created dir: C:\webapp\cocoon\Cocoon\build\classes
Copying 112 files to C:\webapp\cocoon\Cocoon\build\src
Executing Target: compile
Compiling 106 source files to C:\webapp\cocoon\Cocoon\build\classes
Note: 6 files use or override a deprecated API. Recompile with "-deprecation" f
or details.
1 warning
Copying 12 support files to C:\webapp\cocoon\Cocoon\build\classes
Executing Target: package
Building jar: C:\webapp\cocoon\Cocoon\build\cocoon.jar
Completed in 7 seconds
</dos>

<http:localhost:8080/cocoon/Cocoon.xml>
Unable to open resource: cocoon.properties
java.lang.NullPointerException
at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
at com.newatlanta.servletexec.ServletExec.CallServletInit(ServletExec.java)
at com.newatlanta.servletexec.ApplServletContext.CreateServlet(ApplServletContext.java)
at com.newatlanta.servletexec.ApplServletContext.loadConfiguredServlet(ApplServletContext.java)
at com.newatlanta.servletexec.ApplServletContext.getServlet(ApplServletContext.java)
at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java)
at com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java)
at com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java)
at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java)
at com.newatlanta.servletexec.ServletExec.run(ServletExec.java)

</http:localhost:8080/cocoon/Cocoon.xml>
 
bob morkos
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution. You have to hard code the path of the propertie file (c: ...) and set the correct classpath to the .jar files in your web server.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic