WebLogic 服务器通过控制台部署war包
2012-01-14 17:04
197 查看
问题总结:
消息
weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in 'C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\stage\PHR4\PHR4.war' for application
'PHR4'. The specific error is: [Deployer:149158]No application files exist at 'C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\ stage\PHR4\PHR4.war'..
解决方案:将Jboss上部署的PHR4.war【D:\FrameWork\AppServer\jboss-4.2.3.GA\server\default\deploy】拷贝到stage\PHR4\下面。
==================================================
消息
java.lang.ClassNotFoundException: net.sf.cglib.transform.impl.InterceptFieldEnabled
执行此操作时遇到错误。
解决方案:缺少 antlr-2.7.6.jar asm.jar cglib-nodep-2.1_3.jar .(在Linux下面已经出现错误相同)
=====================================
如果访问被拒绝:在
C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\stage\PHR4\PHR4.war\WEB-INF 路径下面添加 weblogic.xml 文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" " http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>
==========================
另一个版本的 weblogic.xml 文件内容:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<session-descriptor></session-descriptor>
<jsp-descriptor></jsp-descriptor>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
然后访问:
http://10.1.112.183:7006/PHR4/PHR4.html
weblogic http创建域: 介绍 ://wenku.baidu.com/view/72256ba8d1f34693daef3ec8.html
========================================================
最近在项目中用weblogic跑Spring+hibernate的运用(在websphere中正常运行)
抛出如下的异常
org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]; nested exception is org.hibernate.QueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]
at org.hibernate.hql.ast.HqlLexer.panic(HqlLexer.java:57)
at antlr.CharScanner.setTokenObjectClass(CharScanner.java:340)
at org.hibernate.hql.ast.HqlLexer.setTokenObjectClass(HqlLexer.java:31)
使用Spring+hibernate如下xml 代码
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
</props>
</property>
在配置中加以下属性就可以解决
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
新增后的xml 代码
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
</props>
</property>
消息
weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in 'C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\stage\PHR4\PHR4.war' for application
'PHR4'. The specific error is: [Deployer:149158]No application files exist at 'C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\ stage\PHR4\PHR4.war'..
解决方案:将Jboss上部署的PHR4.war【D:\FrameWork\AppServer\jboss-4.2.3.GA\server\default\deploy】拷贝到stage\PHR4\下面。
==================================================
消息
java.lang.ClassNotFoundException: net.sf.cglib.transform.impl.InterceptFieldEnabled
执行此操作时遇到错误。
解决方案:缺少 antlr-2.7.6.jar asm.jar cglib-nodep-2.1_3.jar .(在Linux下面已经出现错误相同)
=====================================
如果访问被拒绝:在
C:\Oracle\Middleware\user_projects\domains\phr_domain1\servers\adminserver1\stage\PHR4\PHR4.war\WEB-INF 路径下面添加 weblogic.xml 文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" " http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>
==========================
另一个版本的 weblogic.xml 文件内容:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<session-descriptor></session-descriptor>
<jsp-descriptor></jsp-descriptor>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
然后访问:
http://10.1.112.183:7006/PHR4/PHR4.html
weblogic http创建域: 介绍 ://wenku.baidu.com/view/72256ba8d1f34693daef3ec8.html
========================================================
最近在项目中用weblogic跑Spring+hibernate的运用(在websphere中正常运行)
抛出如下的异常
org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]; nested exception is org.hibernate.QueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from com.datastage.model.TmdDatastageXm project where project.jqbh=?]
at org.hibernate.hql.ast.HqlLexer.panic(HqlLexer.java:57)
at antlr.CharScanner.setTokenObjectClass(CharScanner.java:340)
at org.hibernate.hql.ast.HqlLexer.setTokenObjectClass(HqlLexer.java:31)
使用Spring+hibernate如下xml 代码
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
</props>
</property>
在配置中加以下属性就可以解决
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
新增后的xml 代码
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
</props>
</property>
相关文章推荐
- 通过eclipse把spring boot项目打包成war包并部署到tomcat服务器上的步骤
- ant 部署war包到tomcat,weblogic服务器上
- 通过jenkins调用自动部署war包及jar包到服务器上的shell脚本
- weblogic服务器部署的程序,如何直接通过IP访问(即URL中去掉工程名)
- weblogic服务器部署的程序,如何直接通过IP访问(即URL中去掉工程名)
- ant 部署war包到tomcat,weblogic服务器上
- [CentOS Python系列] 五.阿里云部署web环境及通过IP地址访问服务器网页
- 通过tomcat控制台部署tomcat serverlet项目导致内存无法释放,出现create a memory leak
- Tomcat上运行正常,部署在weblogic服务器上,不认jsp等标签问题
- Weblogic 12c 在集群部署程序的时候,启动受管服务器。状态是Admin,而不是RUNJING
- Jetty的配置、部署与API使用——(2)通过Jetty的Java API运行一个Jetty服务器
- ant 因为依赖关系导致无法编译通过,无法生成部署用的war包
- war包太大,无法成功部署到tomcat服务器
- 用Maven部署war包到远程Tomcat服务器
- 用Maven部署war包到远程Tomcat服务器
- jar包部署到WebLogic服务器
- 关于部署war包到服务器存在代理的问题
- 远程服务器控制台部署JBOSS项目
- 使用SSH上传部署WAR包到服务器
- 用Maven部署war包到远程Tomcat服务器