OJB Properties File Not Found

When J2 starts up, you get the message:

Display

C:\WINDOWS\system32\OJB.properties (The system cannot find the file specified) java.io.FileNotFoundException: C:\WINDOWS\system32\OJB.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at java.net.URL.openStream(URL.java:913)

Resolution

This has occurred on Windows in all support cases I've seen. Rooted in Maven 1.0, which attempts to copy the resources defined in the portal/project.xml which references an external entity ref that in turn uses one of the quick start properties:

org.apache.jetspeed.project.home = /apache/jakarta-jetspeed-2

Try changing this to:

org.apache.jetspeed.project.home = C:/apache/jakarta-jetspeed-2

  • No labels