polishgem
polishgem
2013-09-04 09:20
浏览 357
已采纳

weblogic10.3.6 cas3.4.12部署问题

weblogic cas证书的生成配置参考:[url]http://wenku.baidu.com/view/0c372fea102de2bd9605880d.html[/url]

开始有一个weblogic与hibernate jpa实现冲突问题,也是弄了好久,不得已,修改了weblogic的两个包,参考[url]http://www.oschina.net/question/202069_31304[/url],同时修改了setDomainEnv.sh和startWebLogic.sh配置。

最终还有个错误没解决,具体错误如下:
[code="java"]org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@11b2084f targetAction = [EvaluateAction@3f3f839c expression = authenticationViaFormAction.submit(flowRequestContext, flowScope.credentials, messageContext), resultExpression = [null]], attributes = map[[empty]]] in state 'realSubmit' of flow 'login' -- action execution attributes were 'map[[empty]]'
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:391)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.binding.expression.EvaluationException: An OgnlException occurred getting the value for expression 'authenticationViaFormAction.submit(flowRequestContext, flowScope.credentials, messageContext)' on context [class org.springframework.webflow.engine.impl.RequestControlContextImpl]
at org.springframework.binding.expression.ognl.OgnlExpression.getValue(OgnlExpression.java:92)
at org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)
at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
at org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
Truncated. see log file for complete stacktrace
Caused By: ognl.MethodFailedException: Method "submit" failed for object org.jasig.cas.web.flow.AuthenticationViaFormAction@69a7f4b2 [java.lang.NullPointerException]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1329)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.github.inspektr.audit.AuditTrailManagementAspect.executeAuditCode(AuditTrailManagementAspect.java:147)
at com.github.inspektr.audit.AuditTrailManagementAspect.handleAuditTrail(AuditTrailManagementAspect.java:139)[/code]
几天了都没解决,希望有类似问题的朋友可以讨论一下

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

4条回答 默认 最新

  • Dead_Knight
    Dead_Knight 2013-09-04 15:26
    已采纳

    这样的问题,为什么要改包呢?还要删除weblogic带的jar?
    weblogic早就考虑到包冲突的问题了,通过下面办法解决:
    [code="java"]
    <?xml version="1.0" encoding="UTF-8"?>
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
    http://xmlns.oracle.com/weblogic/weblogic-web-app
    http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    wls:container-descriptor
    wls:prefer-application-packages
    wls:package-namejavax.persistence.*/wls:package-name
    wls:package-nameantlr.*/wls:package-name
    wls:package-namecom.bea.xbean.*/wls:package-name
    wls:package-namecom.bea.xml.*/wls:package-name
    /wls:prefer-application-packages
    /wls:container-descriptor
    /wls:weblogic-web-app

    [/code]
    我的项目部署到weblogic,首先就把javax.persistence.*这个包冲突通过上面的配置解决掉,意思就是用应用的jar,而不是weblogic自带的jar

    点赞 评论
  • Dead_Knight
    Dead_Knight 2013-09-04 15:27

    参考我的另一个问题回答
    [url]http://www.iteye.com/problems/97376[/url]

    点赞 评论
  • emon123
    emon123 2013-09-09 11:01

    楼主,我也遇到跟你一样的问题了。你解决了吗?

    点赞 评论
  • tatto530
    tatto530 2013-09-13 20:35

    楼主,我也遇到跟你一样的问题了。你解决了吗?

    点赞 评论

相关推荐