- This topic has 3 replies, 2 voices, and was last updated 18 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
robinsinghMemberI am running Ubuntu 606 Dapper Drake with eclipse 3.2 and MyEclipse5.0
I can successfully run Weblogic7 from the command line using StartWLS.sh
but when I run it from with in myEclipse I get the following errors.Starting WebLogic Server... <7-Sep-2006 12:12:32 EDT PM> <Warning> <Management> <141091> <-Dweblogic.Domain=<domainName> is no longer a required command line option, if you do not pass it in the domain name can be be inferred from the configuration file : config.xml> <7-Sep-2006 12:12:33 EDT PM> <Notice> <Management> <140005> <Loading configuration /home/robin/bea2/user_projects/mydomain/config.xml> *************************************************************************** The WebLogic Server did not start up properly. Exception raised: java.lang.UnsatisfiedLinkError: no weblogicunix1 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at weblogic.platform.Unix.<init>(Unix.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:126) at weblogic.t3.srvr.SetUIDManager.init(SetUIDManager.java:51) at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:681) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:593) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:281) at weblogic.Server.main(Server.java:32) Reason: Fatal initialization exception Throwable: java.lang.UnsatisfiedLinkError: no weblogicunix1 in java.library.path java.lang.UnsatisfiedLinkError: no weblogicunix1 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at weblogic.platform.Unix.<init>(Unix.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:126) at weblogic.t3.srvr.SetUIDManager.init(SetUIDManager.java:51) at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:681) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:593) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:281) at weblogic.Server.main(Server.java:32) ***************************************************************************
Following are my settings :
Bea home Dir – /home/robin/bea2
Weblogic Install Dir – /home/robin/bea2/weblogic700
Admin Username – <username>
Admin Password – <password>
Execution domain root – /home/robin/bea2/user_projects/mydomain
Execution domain name – mydomain
Execution server name – myserver
hostname:portname – localhost:7001
SEcurity Policy file – /home/robin/bea2/weblogic700/server/lib/weblogic.policy
Jaas login config file – <blank>I am using Sun JDK 142 in the JDK section and rest all the settings are accepted as default.
I also have Sun JDK 1.5 installed on my box ( but since I dont have that selected as the JDK to be used to run Weblogic,
it shouldnt be conflicting in any way.. or can it ?_
—
Having said that I can run the Weblogic from command line without any problems , here’s the server startup log from command line./bea2/user_projects/mydomain$ ./startWebLogic.sh LD_LIBRARY_PATH=/home/robin/bea2/weblogic700/server/lib/linux/i686:/home/robin/b ea2/weblogic700/server/lib/linux/i686/oci817_8:/home/robin/bea2/weblogic700/serv er/lib/linux/i686:/home/robin/bea2/weblogic700/server/lib/linux/i686/oci817_8 CLASSPATH=/home/robin/bea2/jrockit70sp7_142_10/lib/tools.jar:/home/robin/bea2/we blogic700/server:/home/robin/bea2/weblogic700/server/lib/weblogic_sp.jar:/home/r obin/bea2/weblogic700/server/lib/weblogic.jar: PATH=.:/home/robin/bea2/weblogic700/server/bin:/home/robin/bea2/jrockit70sp7_142 _10/jre/bin:/home/robin/bea2/jrockit70sp7_142_10/bin:/home/robin/bea2/weblogic70 0/server/lib/linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/bin/X11:/usr/games *************************************************** * To start WebLogic Server, use a username and * * password assigned to an admin-level user. For * * server administration, use the WebLogic Server * * console at http://<hostname>:<port>/console * *************************************************** ++ /home/robin/bea2/jrockit70sp7_142_10/bin/java -Xms32m -Xmx200m -Dweblogic.sec urity.SSL.trustedCAKeyStore=/home/robin/bea2/weblogic700/server/lib/cacerts -cla sspath /home/robin/bea2/jrockit70sp7_142_10/lib/tools.jar:/home/robin/bea2/weblo gic700/server:/home/robin/bea2/weblogic700/server/lib/weblogic_sp.jar:/home/robi n/bea2/weblogic700/server/lib/weblogic.jar: -Dweblogic.Name=myserver -Dbea.home= /home/robin/bea2 -Dweblogic.management.username= -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled= -Djava.security.policy=/home/robin/bea2/weblo gic700/server/lib/weblogic.policy weblogic.Server <7-Sep-2006 11:36:47 GMT-05:00 AM> <Info> <Security> <090065> <Getting boot iden tity from user.> Enter username to boot WebLogic server:system Enter password to boot WebLogic server: Starting WebLogic Server... <7-Sep-2006 11:36:58 GMT-05:00 AM> <Notice> <Management> <140005> <Loading configuration /home/robin/bea2/user_projects/mydomain/./config .xml> <7-Sep-2006 11:37:03 GMT-05:00 AM> <Notice> <Security> <090082> <Security initializing using realm myrealm.> <7-Sep-2006 11:37:04 GMT-05:00 AM> <Notice> <WebLogicServer> <000327> <Starting WebLogic Admin Server "myserver" for domain "mydomain"> <7-Sep-2006 11:37:15 GMT-05:00 AM> <Notice> <Management> <141052> <Application Poller started for development server.> <7-Sep-2006 11:37:17 GMT-05:00 AM> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7002> <7-Sep-2006 11:37:17 GMT-05:00 AM> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7001> <7-Sep-2006 11:37:17 GMT-05:00 AM> <Notice> <Management> <141030> <Starting discovery of Managed Server... This feature is on by default, you may turn this off by passing -Dweblogic.management.discover=false> <7-Sep-2006 11:37:17 GMT-05:00 AM> <Notice> <WebLogicServer> <000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode> <7-Sep-2006 11:37:18 GMT-05:00 AM> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING> <7-Sep-2006 11:37:18 GMT-05:00 AM> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode> ++ set +x robin@robin-laptop:~/bea2/user_projects/mydomain$
Am I missing something.
robin
robinsinghMemberOh Ok , never mind I just copied the LD_LIBRARY_PATH and CLASSPATH settings in the LibraryPath and AppendClasspath fields in Weblogic 7 configuration
page and its working just fine now.Shouldnt myEclipse pick these settings on its own ?
robinsinghMemberOh Ok , never mind I just copied the LD_LIBRARY_PATH and CLASSPATH settings in the LibraryPath and AppendClasspath fields in Weblogic 7 configuration
page and its working just fine now.Shouldnt myEclipse pick these settings on its own ? After All, these settings dont need to be explicitly setup like this,
when running myEclipse with Weblogic7 on Windows platforms.
Riyad KallaMemberI don’t believe the connectors pick up these settings on any platform, but it’s possible at some point a shortcut was put in on windows to honor the LIBRARY_PATH and CLASSPATH variables, I’ll file it to have someone look into it.
THanks for following up.
-
AuthorPosts