1.如果Weblogic配置连接池的时候报异常:JDBC驱动程序不在类路径中
Answer:首先看拷贝JAR包到 db2java.jar、db2jcc.jar、db2jcc_javax.jar、db2jcc_license_cu.jar、db2policy.jar拷入%WL_HOME%\server\lib下面没有,同时
更新startWebLogic.cmd 文件,classpath 加入%WL_HOME%\server\lib\db2java.jar;%WL_HOME%\server\lib\db2jcc.jar;%WL_HOME%\server\lib\db2jcc_javax.jar;%WL_HOME%\server\lib\db2jcc_license_cisuz.jar;%WL_HOME%\server\lib\db2jcc_license_cu.jar;%WL_HOME%\server\lib\db2policy.jar;不能强制换行
部署的时候,core包部署在应用程序下面,web包部署在Web应用程序模块下面
2.第一次部署成功,但把Weblogic关闭之后再启动,报"the jndi not Exist"Answer:部署的时候把WEB包的默认值100改为110,反正不能与core包的值相等且不能小。这样程序就会先加载core再加载web包
3.启动Weblogic的时候报错:Module Name: ebills.core.jar, Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descripto
r corresponds to the format in the DTD. The error was:
Error parsing file 'META-INF/ejb-jar.xml' at line: 5671 column: 47. Attribute
value "Session_CorpForExcManager" of type ID must be unique within the document.
Answer:如果是拷贝的其它业务的EJB,则注释名称要改变
4.Weblogic设置业务超时时间Answer:登录控制台-》-》服务-》JTA-》修改时间,退出,重新启动Weblogic
5.启动Weblogic的时候报错:Module Name: ebills.core.jar, Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descripto
r corresponds to the format in the DTD. The error was:
Error parsing file 'META-INF/ejb-jar.xml' at line: 5671 column: 47. Attribute
value "Session_CorpForExcManager" of type ID must be unique within the document.
Answer:如果是拷贝的其它业务的EJB,则注释名称要改变
6.进入页面报异常:weblogic.servlet.jsp.JspException: (line 1177): The TLD description for tag 'message' requires that the body be empty.
Answer:看struts标签写对没有,是否少了“”
7.编译后的工程路径:
E:\task\qz_ebills\qzebills.core\release\ebills.core.ear
104.部署CORE包出错
java.io.IOException: Compiler failed executable.exec
at weblogic.ejb20.ejbc.EJBCompiler.doCompile
Answer:查看D盘gjyw下的systemconfig.properties文件
8.清WEBLOGIC缓存
ANSWER:E:\bea\user_projects\domains\sdBankDomain\myserver\.wlnotdelete
9.部署web包时,后台窗口直接关闭;异常信息
####<2012-2-21 下午07时15分22秒 CST> <Error> <HTTP> <PC-LY> <myserver> <ExecuteThread: '4' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101216> <Servlet: "initServlet" failed to preload on startup in Web application: "1web".
java.lang.Throwable: java/lang/StringBuilder
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:919)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3333)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3290)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3276)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3259)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5949)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2503)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2421)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2237)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2132)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2384)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Answer:查看是否一直
10.Weblogic的JDBC连接池 Oracle数据库的URL如下
11.Weblogic做中间件
工程的JDK版本要与Weblogic的JDK版本要一直,否则部署不成功
12.部署core包的应用程序的时候报错,java.lang.OutOfMemoryError
Answer:修改commEvn.bat文件
set MEM_ARGS=-Xms256m -Xmx512m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:bea_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xms256m -Xmx512m
goto continue
:sun
if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms128m -Xmx256m -XX:MaxPermSize=512m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:sun_prod_mode
set JAVA_VM=-server
set MEM_ARGS=-Xms128m -Xmx256m -XX:MaxPermSize=512m
goto continue