简体   繁体   English

如何在 JBoss EAP 6 中为 http 连接器启用额外登录

[英]how to enable additional login for http connector in JBoss EAP 6

We have two java application running on the jboss 6.4 and one is calling to other using http call.我们在 jboss 6.4 上运行了两个 java 应用程序,一个使用 http 调用调用其他应用程序。 it is working fine but few times in day conenction is failing with below error : CAUSED BY: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)它工作正常,但在一天中几次连接失败并出现以下错误:CAUSED BY: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read (SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl。 readRecord(SSLSocketImpl.java:973) 在 sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)

Applcaction 1 is taking the request from the oracle queue and as per the asynchronous call sending the http call to applcation 2 . Applcaction 1 正在从 oracle 队列中获取请求,并根据异步调用将 http 调用发送到 applcation 2 。 We would like to debug the issue of the failure to find the more info .我们想调试无法找到更多信息的问题。 how we can enable additional login between Htppconnector and httpclient ?我们如何在 Htppconnector 和 httpclient 之间启用额外的登录? or what could be the possible reason of Connection reset ?或者连接重置的可能原因是什么?

We are using standalone-full.xml and it has below login level ::我们正在使用 standalone-full.xml 并且它的登录级别低于 ::

<logger category="com.arjuna">
            <level name="WARN" />
        </logger>
        <logger category="org.apache.tomcat.util.modeler">
            <level name="WARN" />
        </logger>
        <logger category="org.jboss.as.config">
            <level name="DEBUG" />
        </logger>
        <logger category="sun.rmi">
            <level name="WARN" />
        </logger>
        <logger category="jacorb">
            <level name="WARN" />
        </logger>
        <logger category="jacorb.config">
            <level name="ERROR" />
        </logger>
        <root-logger>
            <level name="INFO" />
            <handlers>
                <handler name="CONSOLE" />
                <handler name="FILE" />
            </handlers>
        </root-logger>

        --------

    <subsystem xmlns="urn:jboss:domain:web:2.2"
        default-virtual-server="default-host" native="false">
        <connector name="http" protocol="HTTP/1.1" scheme="http"
            socket-binding="http" />
        <connector name="HTTPS" protocol="HTTP/1.1" scheme="https"
            socket-binding="https" secure="true">
            ----------------------
        </connector>

        <virtual-server name="default-host"
            enable-welcome-root="true">
            <alias name="localhost" />
        </virtual-server>
        <valve name="AccessLog" module="org.jboss.as.web"
            class-name="org.apache.catalina.valves.AccessLogValve" enabled="true">
            <param param-name="prefix"
                param-value="${jboss.bind.address:xx.xx.xx}_${jboss.host.name:jboss}_access_log." />
            <param param-name="suffix" param-value=".log" />
            <param param-name="directory" param-value="${jboss.server.log.dir}" />
            <param param-name="pattern" param-value="%h %l %u %t %r %s %b %D" />
            <param param-name="resolveHosts" param-value="false" />
            <param param-name="rotatable" param-value="true" />
        </valve>

You can enable access logging by adding it in the web subsystem.您可以通过在 web 子系统中添加访问日志来启用它。 It will log all coming requests and their outcomes.它将记录所有即将到来的请求及其结果。

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">  
        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>  
        <virtual-server name="default-host" enable-welcome-root="true">  
            <alias name="localhost"/>  
            <alias name="example.com"/>  
               <access-log pattern="%a %t %H %p %U %s " >  
                    <directory relative-to="jboss.server.log.dir" />  
              </access-log>  
        </virtual-server>  
</subsystem> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM