Differences between revisions 5 and 6
Revision 5 as of 2011-06-13 14:39:09
Size: 1158
Editor: c-24-7-125-199
Revision 6 as of 2011-06-13 20:52:26
Size: 1122
Editor: 074-087-128-083
Comment: spam removal
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
[[http://allfreeads.com|free ads]]

OJB Properties File Not Found

When J2 starts up, you get the message:


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)


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

Jetspeed2/OjbPropertiesNotFound (last edited 2011-06-13 20:52:26 by 074-087-128-083)