weblogic问题

http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/
并在Oracle官网下载一个完整的oracle-jdk7-installer.tar.gz 放到这个文件夹中
sudo mv ~/downloads/oracle-jdk7-installer.tar.gz /var/cache/oracle-jdk7-installer
需要修复一下dpkg配置信息
sudo dpkg --configure -a
$ cd /var/cache/apt/archives
$ sudo dpkg -i oracle-java7-installer_7u80+7u60arm-0\~webupd8\~1_all.deb 
MySQL安装目录下的my.ini文件
[client]节点
default-character-set=utf8    (增加)
[mysql]节点
default-character-set=utf8    (修改)
[mysqld]节点
default-character-set=utf8    (修改)
character_set_server=utf8    (增加)

wls1036_dev.zip
启动weblogic domain

$JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.allowPasswordEcho=true weblogic.Server

windows下连接oracle时记得设置环境变量nls_lang

weblogic sockets 和 thread 问题解决
1 下载weblogic 10.3.6 的generic 安装版本。
2 下载 Jrockit 1.6 的64位版本
3 安装Jrockit 1.6
4 java -jar wls-10.3.6.generic.jar 安装 weblogic,在安装过程中JDK 一定要选择Jrockit。
5 新建domain,完成。

./wlst.sh /home/lzd2/qdgswf/1/create_data_source.py -p /home/lzd2/qdgswf/1/myDomain-ds.properties

#!/usr/bin/python
# Author : Tim Hall
# Save Script as : create_data_source.py

import time
import getopt
import sys
import re

# Get location of the properties file.
properties = ''
try:
   opts, args = getopt.getopt(sys.argv[1:],"p:h::",["properies="])
except getopt.GetoptError:
   print 'set_datasource.py -p '
   sys.exit(2)
for opt, arg in opts:
   if opt == '-h':
      print 'set_datasource.py -p '
      sys.exit()
   elif opt in ("-p", "--properties"):
      properties = arg
print 'properties=', properties

# Load the properties from the properties file.
from java.io import FileInputStream
 
propInputStream = FileInputStream(properties)
configProps = Properties()
configProps.load(propInputStream)

# Set all variables from values in properties file.
adminUsername=configProps.get("admin.username")
adminPassword=configProps.get("admin.password")
adminURL=configProps.get("admin.url")
dsName=configProps.get("ds.name")
dsJNDIName=configProps.get("ds.jndi.name")
dsURL=configProps.get("ds.url")
dsDriver=configProps.get("ds.driver")
dsUsername=configProps.get("ds.username")
dsPassword=configProps.get("ds.password")
dsTargetType=configProps.get("ds.target.type")
dsTargetName=configProps.get("ds.target.name")

# Display the variable values.
print 'adminUsername=', adminUsername
print 'adminPassword=', adminPassword
print 'adminURL=', adminURL
print 'dsName=', dsName
print 'dsJNDIName=', dsJNDIName
print 'dsURL=', dsURL
print 'dsDriver=', dsDriver
print 'dsUsername=', dsUsername
print 'dsPassword=', dsPassword
print 'dsTargetType=', dsTargetType
print 'dsTargetName=', dsTargetName

# Connect to the AdminServer.
connect(adminUsername, adminPassword, adminURL)

edit()
startEdit()

# Create data source.
cd('/')
cmo.createJDBCSystemResource(dsName)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName)
cmo.setName(dsName)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDataSourceParams/' + dsName)
set('JNDINames',jarray.array([String(dsJNDIName)], String))

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName)
cmo.setUrl(dsURL)
cmo.setDriverName(dsDriver)
set('Password', dsPassword)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCConnectionPoolParams/' + dsName)
cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n\r\n')

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName)
cmo.createProperty('user')

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDriverParams/' + dsName + '/Properties/' + dsName + '/Properties/user')
cmo.setValue(dsUsername)

cd('/JDBCSystemResources/' + dsName + '/JDBCResource/' + dsName + '/JDBCDataSourceParams/' + dsName)
cmo.setGlobalTransactionsProtocol('TwoPhaseCommit')

cd('/SystemResources/' + dsName)
set('Targets',jarray.array([ObjectName('com.bea:Name=' + dsTargetName + ',Type=' + dsTargetType)], ObjectName))

save()
activate()

disconnect()
exit()
# AdminServer connection details.
admin.username=weblogic
admin.password=weblogic1
admin.url=t3://localhost:7001

ds.name=MYDS
ds.jndi.name=jdbc/MYDS
ds.url=jdbc:oracle:thin:@192.168.0.0:1521:orcl
ds.driver=oracle.jdbc.xa.client.OracleXADataSource
ds.username=wftest
ds.password=wftest

ds.target.type=Server
ds.target.name=myserver
connect("weblogic","weblogic1","t3://localhost:7001");
progress=redeploy('intra');

unzip -j -n build/distributions/lib.zip "*.jar" -d ../libqdgs
    解压, -j 无目录结构, -n不覆盖, "*.jar"指定文件类型, -d 指定目录

下载指定jar包的方法之一

apply plugin: 'application'
mainClassName = "com.gmigdos.utils.gradle.DownloadDependencies"
jar {
    baseName = 'DownloadDependencies'
    version =  '0.1.0'
}
repositories {
    mavenCentral()
    // Add other repositories here
}
dependencies {
  compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.2.4'
  compile group: 'org.springframework', name: 'spring-jdbc', version: '4.2.4.RELEASE'
  compile group: 'org.springframework', name: 'spring-webmvc', version: '4.2.4.RELEASE'
  compile group: 'org.mybatis', name: 'mybatis', version: '3.3.1'
  compile group: 'cglib', name: 'cglib', version: '3.2.0'
  compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'

  compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
  compile group: 'log4j', name: 'log4j', version: '1.2.17'
  compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.2'

  compile "joda-time:joda-time:2.7"
  testCompile group: 'org.mockito', name: 'mockito-core', version: '2.10.0'
  testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'

    testCompile(
        'junit:junit:4.11'
    )
}
     gradle distZip  

mydomain->Web 应用程序->选中!!!启用归档实际路径

weblogic.xml中添加
 
    true
 

WLS_MEM_ARGS_32BIT="-Xmx2048m -Xms2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m"


mvn idea:idea -DjdkName=1.7

project settings->module->path->修改compile output path
mvn install:install-file\n   -Dfile=/home/lzd2/mywls/wlserver/server/lib/ojdbc6.jar\n   -DgroupId=com.oracle\n   -DartifactId=ojdbc6\n   -Dversion=11.2.0.1.0\n   -Dpackaging=jar\n   -DgeneratePom=true




你可能感兴趣的:(weblogic,11)