At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /embedded-

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值