I'm new to jdeveloper and encounter a problem which i cant run and display my jsp page.
This are the errors prompt out when i click on run the project:
[waiting for the server to complete its initialization...]
...
WARNING: Code-source "C:/Documents and Settings/fmo-itm/Desktop/jdevj2eebase1013/j2ee/home/applib" could not be found for shared-library "global.libraries" in /C:/jdevj2eebase1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/config/server.xml.
06/02/24 16:26:13 Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /C:/jdevj2eebase1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/config/server.xml.
06/02/24 16:26:13 Fatal error: server exiting
Process exited with exit code 1.
solution:
以下方法是google到的:
I experienced the exact same error and I was able to resolve as follows.
I initially installed JDeveloper Studio Edition Version: 10.1.3.3.0.4157 in a directory called c:/jdev.
Then I developed one application and had no issues in running the app using the embedded OC4J server.
Earlier this week, I wanted to test the JDeveloper 11g TP3. I downloaded the newer version and installed in a directory called c:/jdev11. I also renamed my old directory as c:/jdev10 so that there is no confusion.
Basically, at this time, I had two JDeveloper versions on my system.
JDeveloper 10g installed in c:/jdev10
JDeveloper 11g TP3 installed in c:/jdev11
After making these changes, I went back to my JDeveloper 10g version, and when I tried to run my application through the embedded OC4J container, I started getting the error described earlier in this post.
In looking through, it appears the JDeveloper Home (the directory where you installed the JDeveloper) is hardcoded in the following file:
{JDEVELOPER_HOME}/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml.
I reverted back to original name for the directory (from C:/jdev10 to C:/jdev), and it fixed the issue.
I recommend the JDeveloper team to use a environment variable to resolve the path, rather than hardcoding in the server.xml.
Best regards,
John
他的问题是装了2个jdev, 路径设置错了,
我的问题跟他一样, 不过不是装了2个,而是从别人机器上考的JDEV, 所以里面很多.XML文件设置的路径都是同事机器上的路径, 运行时就没有找到相应的文件(我的路径是D:/ProgramFiles/JDEV,而原文件路径是D:/JDEV),所以出现的那个exception.