• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent need help

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic