2

アプリケーションファイル app-ear-1.0.ear と mytest-portlet-1.0.war を jboss-portal-2.7.2 にデプロイしようとしています。デプロイ後 (app-ear-1.0.ear と mytest-portlet をコピーして) -1.0.war から jboss-portal-2.7.2/server/default/deploy) を開き、ポートレットでページを開くと、次のエラーが表示されます:

エラー:

Cause: javax.portlet.PortletException: Request processing failed
Message: Request processing failed
StackTrace: 
javax.portlet.PortletException: Request processing failed
    at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:544)
...
org.springframework.jndi.JndiLookupFailureException: JndiObjectTargetSource failed to obtain new target object; nested exception is javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
    at org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:139)
..
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
...
javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
...
javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
...
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
...

これを修正する方法を知っている人はいますか?

私の web.xml (mytest-portlet/src/main/webapp/WEB-INF/):

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
...

    <jee:jndi-lookup id="myTestService" jndi-name="app-ear-1.0/ejb/APPMyTest/remote"
                     proxy-interface="app.ejb.facade.portlet.mytest.IAPPMyTestService" lookup-on-startup="false">
        <jee:environment>
            java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
            java.naming.provider.url=jnp://localhost:1099
            java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
        </jee:environment>
    </jee:jndi-lookup>
</beans>   

しかし、Windows 7 では、IntelliJ IDEA から展開する場合はすべて問題ありません。jboss-portal-2.7.2 でファイルをコピーして手動デプロイメントを成功させるには、Mac OS X で何をする必要がありますか?

4

0 に答える 0