`

Trouble Shooting

    博客分类:
  • Java
阅读更多

1.

Problem: log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".

Solution: Add '<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">' to log4j.xml

    e.g.:

    <?xml version="1.0" encoding="UTF-8" ?>

    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    ...

    </log4j:configuration>

 

2.

Problem: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

Solution: Specify encoding in pom.xml

    <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-resources-plugin</artifactId>

        <configuration>

            <encoding>UTF-8</encoding>

        </configuration>

    </plugin>

 

3.

Problem: [ERROR] Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log

Solution: 1.login into Websphere administrative console;

          2.Servers -> Server Types -> Websphere application servers -> server1 -> Generic Properties -> Server-specific;

          3.Change the 'Classloader policy' to 'Single';

          4.Change the 'Class loading model' to 'Classes loaded with parent class loader first';

          5.Restart Websphere.

 

4.

PCIS SSO:

    1.make sure the WAS administrator named - 'java';

    2.navigate to - Security -> Global security;

    3.make the 'Application security - Enable application security' is checked.

 

5.

Problem: JBoss can't found JNDI naming:

Solution: In JBoss, we should prefix 'java:/' in the normal jndi name when referencing.

 

6.

Problem: SQL Server + WAS: 

    If the Microsoft SQL Server JDBC Driver v1.2 or 2.0 is used instead of the jTDS driver, then the SQLServerDictionary will throw an exception while trying to parse the driverName "Microsoft SQL Server JDBC Driver" to determine the server version.

    Example stack :

    java.lang.NumberFormatException: For input string: "JDBC" 

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

    at java.lang.Integer.parseInt(Integer.java:447)

    at java.lang.Integer.parseInt(Integer.java:497)

    at org.apache.openjpa.jdbc.sql.SQLServerDictionary.connectedConfiguration(SQLServerDictionary.java:92)

Solution: 

    The SQLServerDictionary was updated to properly handle the driverName that the Microsoft SQL Server JDBC Driver v1.2 and v2.0 reports when queried.

    The fix for this APAR is currently targeted for inclusion in fix pack 7.0.0.7.  Please refer to the Recommended Updates page for delivery information:

    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

 

7.

Problem: log4j:ERROR Attempted to append to closed appender named [console].

Solution: specify each logger with different appander, let's say, do NOT make same appender type used in two loggers.

          We can define multiple [console] appenders with just different name.

 

8.

Problem: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

                  sourceId=null[severity=(INFO 0), summary=(Welcome, trs), detail=(Welcome, trs)]

Solution:

    change FacesMessage.SEVERITY_* to StatusMessage.Severity.*

 

9.

Problem:

[HTTPThreadGroup-7] ERROR CS2SSOLogger  13 Sep 2010 01:24:08,682 - com.cargosmart.webapp.filter.CargosmartCentralHelper.isTokenValid(): ____ exception occurred when validate token via web service. exception: No Deserializer found to deserialize a &apos;http://com.oocl.cargosmart2.afw.ws/ICS2AuthenticationWebService.xsd:com_oocl_frm_afw_token_TokenImpl&apos; using encoding style &apos;http://schemas.xmlsoap.org/soap/encoding/&apos;. [java.lang.IllegalArgumentException]

Solution:

open url: http://dengas.corp.oocl.com:8888/admin/AFWWebService?WSDL

check whether the complexType(e.g.:'com_oocl_frm_afw_token_TokenImpl') had been truncated arbitrarily!!!!!!!!!

<complexType name="com_oocl_frm_afw_to_TokenImpl">  <------- 'token' had been truncated to 'to' here, so issue accured.

try to shorten oc4j home path to solve this problem. e.g.: install oc4j in 'c:\oc4j' folder.

分享到:
评论

相关推荐

    7702-010 trouble shooting guide

    "7702-010 trouble shooting guide" 指南旨在为技术人员提供一个详尽的框架,帮助他们有效地识别和解决与7702-010相关的各种问题。这个指南可能是针对某个特定的硬件组件、软件系统、网络设备或者是一个特定的技术...

    HP-UX Trouble shooting ppt

    HP-UX Trouble shooting 课程的PPT.各版本通用

    ITM trouble shooting

    ### ITM Trouble Shooting #### 简介与问题确定 在IT管理领域,尤其是对于复杂的监控系统如IBM Tivoli Monitoring (ITM),问题诊断是一项关键能力。本文将基于提供的文档概览,深入探讨其中涉及的关键知识点,包括...

    Mailrouting Trouble shooting lotus domino 8

    Mailrouting Trouble shooting lotus domino 8

    DB Issue Trouble Shooting Guideline 很经典的数据结构资料

    DB Issue Trouble Shooting Guideline 很经典的数据结构资料

    西门子双源CT维修手册Gantry Trouble Shooting Guide.pdf

    西门子双源CT维修手册是西门子公司为其SOMATOM Definition双源CT扫描仪所提供的官方技术文档,用于指导技术人员对CT设备的机架部分进行故障排查。这份手册是专为授权人员使用,涵盖了安全信息、操作指南、故障排除...

    trouble shooting java performance

    标题“trouble shooting java performance”直接指出了本书的主题——解决Java性能问题的故障排除方法。作者Erik Ostermueller通过使用开源工具来检测Java应用程序中的反模式,提出了一种可重复的方法来处理基于Java...

    jboss jta configuration trouble shooting

    当遇到"JBoss JTA configuration trouble shooting"的问题时,开发者通常需要深入理解JTA的工作原理以及如何在JBoss应用服务器中正确配置它。以下是对这个主题的详细讲解: 首先,JTA是一个Java标准,定义了API来...

    AD 活动目录trouble shooting,英文版。MS出品

    通过对微软内部文档《AD 活动目录trouble shooting》的学习与分析,我们了解到了关于AD活动目录故障排查的多种方法和技术。这不仅有助于提高IT人员的工作效率,也能帮助企业更好地管理和维护复杂的网络环境。希望...

    mpls trouble shooting training

    try this doc,. it has great detail of MPLS trouble shotting techniques

    HANA trouble shooting guide

    在进行HANA问题的诊断和性能分析时,需要关注一系列潜在的性能瓶颈和故障原因。本文档将详细介绍HANA 2.0的问题排查方法,同时涉及调优建议,以帮助数据库管理员和开发人员快速定位并解决HANA系统中遇到的各种问题。...

    tas58x5 trouble shooting

    TAS5805M故障排查 TAS5805M是一款音频Codec芯片,由德州仪器(TI)公司生产。该芯片广泛应用于音频设备中,例如音箱、耳机、音频处理器等。然而,在实际应用中,TAS5805M芯片可能会出现一些故障,影响音频设备的...

    Akamai Techincal Trouble Shooting Sharing copy.pdf

    ### Akamai技术故障排查详解 #### 一、引言 Akamai Technologies是一家全球领先的云服务提供商,致力于提供高效、可靠且安全的内容分发网络(CDN)服务。Akamai的技术支持工程师们经常面临各种各样的技术问题,本...

    Trouble-Shooting_Guide

    "Trouble-Shooting_Guide"显然是一份详细记录了各种问题解决步骤的文档,旨在帮助用户诊断并修复他们可能遇到的技术问题。这份指南可能是以一种结构化的格式编写的,包括了问题识别、原因分析、解决方案以及预防措施...

    65)_消声器Silencer_SL-20A.pdf

    本手册涵盖了安全使用、产品性能、操作注意事项、维护和 trouble shooting 等方面的内容。 一、安全使用注意事项 1. 使用前请阅读本手册:在开始使用Silencer_SL-20A消声器之前,请务必阅读本手册,了解产品的性能...

    藏经阁-Tricks of the Trade.pdf

    Confirmation 和 Trouble shooting 可以使用 Spark 的日志机制,快速确认问题所在。 Trick 4: Command B Command B 是 Spark 的一个重要命令。通过 Command B,可以快速确认问题所在,提高生产效率。Command B ...

    Brocade Partner ADX ts

    Brocade Partner ADX Training _Trouble Shooting

    NetworkTroubleshootingToolsBook.pdf 英文原版

    Network Troubleshooting Tools Book

Global site tag (gtag.js) - Google Analytics