GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes Urgent need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Urgent need help" Watch "Urgent need help" New topic
Author

Urgent need help

bob morkos
Ranch Hand

Joined: Sep 06, 2001
Posts: 104
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

Joined: Sep 06, 2001
Posts: 104
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
 
subject: Urgent need help