问题总结:
消息
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 文件,内容如下:
/
==========================
另一个版本的 weblogic.xml 文件内容:
true
然后访问:
========================================================
最近在项目中用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 代码
org.hibernate.dialect.OracleDialect
false
true
在配置中加以下属性就可以解决
org.hibernate.hql.ast.ASTQueryTranslatorFactory
新增后的xml 代码
org.hibernate.dialect.OracleDialect
false
true
org.hibernate.hql.classic.ClassicQueryTranslatorFactory