博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac安装weblogic 12
阅读量:7096 次
发布时间:2019-06-28

本文共 9899 字,大约阅读时间需要 32 分钟。

hot3.png

从前台往后台转,不知道如何有效率的上手后台的东西,只能见一个问题解决一个问题了,先从服务器开始吧.

网上的童鞋们大都没有使用新出的weblogic12,我下了这个最新的,研究试试吧.

官网下载地址:

我下载的那个zip的包,zip for windows x86,Linux x86,Mac OS X(182MB).

起先不知道12和以前的版本差异大,上网上找各种weblogic的安装资料,结果都对不上号,没办法看官网英文文档,说是12的安装方式都变了,额,自己摸索试试吧.

weblogic12的主目录下有个config.sh和config.cmd,自然mac运行sh的.

输入命令 ./config.sh

结果提示没有设置JAVA_HOME,无奈,解决问题,在.base_profile文件中设置环境变量.

ok后,重新输入命令,weblogic开始安装.

 

haiwangtekiMacBook-Air:wls12120 haiwang$ ./configure.sh 

**************************************************

WebLogic Server 12g (12.1.2.0) Zip Configuration

 

MW_HOME:   /Users/haiwang/Programe/Weblogic/wls12120

JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

 

Note:      MW_HOME not supplied, default used

**************************************************

等待它一路解压文件,

 

Please wait while      745 jars are unpacked ...

Unpacking coherence-hibernate.jar                                               Unpacking coherence-loadbalancer.jar                                            Unpacking coherence-mock.jar                                                    Unpacking coherence-rest.jar          

成功后

 

BUILD SUCCESSFUL

Total time: 0 seconds

CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/weblogic_sp.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/weblogic.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/lib/webservices.jar:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/Users/haiwang/Programe/Weblogic/wls12120/wlserver/modules/features/oracle.wls.common.nodemanager_1.0.0.0.jar:

 

PATH=/Users/haiwang/Programe/Weblogic/wls12120/wlserver/server/bin:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.ant_1.7.1/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/Users/haiwang/Programe/Gradle/gradle-1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/haiwang/Programe/Weblogic/wls12120/oracle_common/modules/org.apache.maven_3.0.4/bin

 

Your environment has been set.

 

貌似它自己设置了环境变量.

 

Configuring WLS...

 

BUILD SUCCESSFUL

Total time: 0 seconds

 

Do you want to configure a new domain?  [y/n]? 

 

输入y,创建新的域

输入username和password,结果报错了,shit.

 

<2014-2-24 ????09ʱ31??23?? CST> <Info> <Management> <BEA-141254> <Generating new domain directory in /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain.> 

<2014-2-24 ????09ʱ31??23?? CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: 

 

There are 1 nested errors:

 

weblogic.management.ManagementException: Failure during domain creation

at weblogic.management.internal.DomainGenerator.generateDefaultDomain(DomainGenerator.java:119)

at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:82)

at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)

at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)

at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:895)

at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:572)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:471)

at weblogic.Server.main(Server.java:74)

Caused by: com.oracle.cie.domain.security.InvalidPasswordException: 60455: ??????Ч??

60455: ???????ٱ???Ϊ 8 ????ĸ?????ַ?, ?????ٰ???һ?????ֻ?һ???????ַ???

60455: ???????

at com.oracle.cie.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:763)

at com.oracle.cie.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:707)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at weblogic.management.internal.CIEDomainGenerator.generateDefaultDomain(CIEDomainGenerator.java:62)

at weblogic.management.internal.DomainGenerator.generateDefaultDomain(DomainGenerator.java:114)

... 7 more

 

<2014-2-24 ????09ʱ31??23?? CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> 

<2014-2-24 ????09ʱ31??23?? CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> 

<2014-2-24 ????09ʱ31??23?? CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> 

haiwangtekiMacBook-Air:wls12120 haiwang$ 

妈的,这让老夫如何是好.

看错误信息,是创建域失败,密码不行,额,我的控制台是UTF-8编码的,我输入的是123qwe,123123也做了尝试,都是密码不行.

将控制台字符编码改为无损ASII,

 

Do you want to configure a new domain?  [y/n]? y

Enter username to boot WebLogic server:haiwang

Enter password to boot WebLogic server:

For confirmation, please re-enter password required to boot WebLogic server:

haiwangtekiMacBook-Air:wls12120 haiwang$ 

 

貌似没出错,但是这就没了??

我的user_projects的domain里面并没有启动weblogic的命令文件啊.

草,我再试试其他字符编码,GBK,这回不错,日期都显示中文了,

 

Do you want to configure a new domain?  [y/n]? y

<2014-2-24 下午10时07分32秒 CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.> 

<2014-2-24 下午10时07分32秒 CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> 

<2014-2-24 下午10时07分32秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.65-b04-462 from Apple Inc..> 

<2014-2-24 下午10时07分33秒 CST> <Info> <Management> <BEA-140013> </Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain/config not found> 

<2014-2-24 下午10时07分33秒 CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.> 

Enter username to boot WebLogic server:haiwang

Enter password to boot WebLogic server:

For confirmation, please re-enter password required to boot WebLogic server:

<2014-2-24 下午10时07分48秒 CST> <Info> <Management> <BEA-141254> <Generating new domain directory in /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain.> 

<2014-2-24 下午10时07分56秒 CST> <Info> <Management> <BEA-141255> <Domain generation completed in 7,712 milliseconds.> 

<2014-2-24 下午10时07分56秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.2.0.0  Fri Jun 7 15:16:15 PDT 2013 1530982 WLS_12.1.2.0.0_GENERIC_130607.1100> 

<2014-2-24 下午10时07分57秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 

<2014-2-24 下午10时07分57秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 

<2014-2-24 下午10时07分57秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file /Users/haiwang/Programe/Weblogic/wls12120/user_projects/domains/mydomain/servers/myserver/logs/myserver.log is opened. All server side log events will be written to this file.> 

<2014-2-24 下午10时08分00秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 

<2014-2-24 下午10时08分00秒 CST> <Warning> <Store> <BEA-280109> <Unable to load the native wlfileio library for the persistent file store "_WLS_myserver". The store will use buffered I/O. The store is still operating in a transactionally safe synchronous mode. See store open log messages for the requested and final write policies.> 

<2014-2-24 下午10时08分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> 

<2014-2-24 下午10时08分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 

<2014-2-24 下午10时08分02秒 CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 

<2014-2-24 下午10时08分03秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[2]". The address fe80:0:0:0:0:0:0:1%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10时08分03秒 CST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:9afe:94ff:fe48:b170%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address> 

<2014-2-24 下午10时08分03秒 CST> <Warning> <Server> <BEA-002611> <The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1, fe80:0:0:0:0:0:0:1%1.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.108:7001 for protocols iiop, t3, ldap, snmp, http.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 

<2014-2-24 下午10时08分03秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> 

哈哈,原来是字符集的事情,而且密码还得字母数字都有,不少于8位,哎,一晚上没白弄,出来了.

这下我的mydomain文件夹下面有很多文件了,startWebLogic.sh也出来了,ok了.

http://localhost:7001/console,进去了

home页

哎,终于弄出来了.账号haiwang,密码1234qwer.记录下.可以睡觉了.

以后的控制台还得设置称gbk的编码格式,幸好mac上的控制台有很多种,可以设置.

转载于:https://my.oschina.net/u/2336787/blog/1611236

你可能感兴趣的文章
linux 文本命令之----tr
查看>>
Failed to execute goal 拒绝访问
查看>>
HttpsURLConnection
查看>>
搞懂深度学习到底需要哪些数学知识
查看>>
java学习:理解final
查看>>
我的友情链接
查看>>
什么是区域链
查看>>
spring 手动 注入 销毁 bean
查看>>
Spring Boot 启动加载数据 CommandLineRunner
查看>>
AXIS2中OMElement和Java对象之间的转换 分享
查看>>
Manual Transaction 模式
查看>>
老男孩教育每日一题-第104天-如何查看linux系统时间?若当前系统时区不是中国,如何修改?...
查看>>
Hive 环境搭建
查看>>
SpringMVC 之 @Autowired 注释使用说明
查看>>
基本的HTML网页
查看>>
Confluence 6 连接到 Jira 用户管理的限制
查看>>
Confluence 6 用户宏示例 - Color and Size
查看>>
系统集成资质培训 - 一道关键路径题目的分析(已更新)
查看>>
CentOS7 vsftpd安装
查看>>
web上存漏洞及原理分析、防范方法(安全文件上存方法)
查看>>