jminix not functional in WebSphere 7

44 views
Skip to first unread message

mike mike

unread,
Apr 10, 2013, 7:13:24 AM4/10/13
to jminix...@googlegroups.com
Hello,

As mentioned in title, I tried to deploy it on websphere 7, no security, and the only result I have is the default 404 error page of the Restlet API.

[10/04/13 12:49:49:107 CEST] 00000021 LogService    I   2013-04-10      12:49:49        0:0:0:0:0:0:0:1 -       0:0:0:0:0:0:0:1 9080    GET     /jminixtest/jmx/        -       404     330     -       0       http://localhost:9080   Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0        -

Is there any way to debug your application? 

Please note the same war is functional on jboss 5.1.

thanks for your help

Kind Regards

Mike.

Laurent Bovet

unread,
Apr 14, 2013, 2:25:56 PM4/14/13
to jminix...@googlegroups.com
Hard to know what's wrong without more details. Do you build with Maven? How does your web.xml look like?


2013/4/10 mike mike <genial...@gmail.com>

Mike.

--
 
---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes jminix-users.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jminix-users...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

mike mike

unread,
Apr 19, 2013, 8:25:16 AM4/19/13
to jminix...@googlegroups.com
Hi,

Firstly, thanks for your answer.

I used the default one:
<!DOCTYPE web-app PUBLIC
        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

<web-app>
    <display-name>Archetype Created Web Application</display-name>

    <servlet>
        <servlet-name>JmxMiniConsoleServlet</servlet-name>
        <servlet-class>org.jminix.console.servlet.MiniConsoleServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>JmxMiniConsoleServlet</servlet-name>
        <url-pattern>/jmx/*</url-pattern>
    </servlet-mapping>

</web-app>

I guess it's during initialization and fetching of the objects, that's common issues with websphere. We can't say it's a really standard application server.
but it's difficult to see where error occurs precisely:)

the more I have is:
[19/04/13 13:45:30:275 CEST] 00000031 ServerRouter  2   Call score for the "null" host: 1.0
[19/04/13 13:45:30:275 CEST] 00000031 ServerRouter  1   New base URI: http://localhost:9080
[19/04/13 13:45:30:275 CEST] 00000031 ServerRouter  1   New remaining part: /JMinix/jmx/
[19/04/13 13:45:30:275 CEST] 00000031 VirtualHost   2   Call score for the "/JMinix/jmx/" URI pattern: 1.0
[19/04/13 13:45:30:276 CEST] 00000031 VirtualHost   2   Attempting to match this pattern: /JMinix/jmx/ >> 12
[19/04/13 13:45:30:276 CEST] 00000031 VirtualHost   1   New base URI: http://localhost:9080/JMinix/jmx/
[19/04/13 13:45:30:276 CEST] 00000031 VirtualHost   1   New remaining part:
[19/04/13 13:45:30:276 CEST] 00000031 VirtualHost   1   Delegating the call to the target Restlet
[19/04/13 13:45:30:277 CEST] 00000031 LogService    I   2013-04-19      13:45:30        0:0:0:0:0:0:0:1 -       0:0:0:0:0:0:0:1 9080    GET     /JMinix/jmx/    -       404     330     -       2       http://localhost:9080   Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0     -

I even tried to create a new connector which use the AdminServiceFactory.getMBeanFactory().getMBeanServer() gfunction do get MBeans from WebSphere, without success.

The application is build with maven.

Any help is welcome.

Thank you again

Regards

Mike.

Laurent Bovet

unread,
Apr 21, 2013, 3:33:22 PM4/21/13
to jminix...@googlegroups.com
Maybe websphere does not resolve the path /JMinix/jmx/ to / as it is expected to. You can try to play with the url pattern, e.g. setting /jmx* instead of /jmx/*.

You can get debug log by setting the system property common.jmx.show.restlet.log to "true" (as a -D setting or alike, whatever websphere specifies).

Philipp, you are a websphere expert, any idea?


2013/4/19 mike mike <genial...@gmail.com>

Philipp Oser

unread,
Apr 22, 2013, 4:05:33 AM4/22/13
to jminix...@googlegroups.com
(You must have misuderstood - I am a Websphere hater, not a Websphere expert... ;-))

What is the context root (the prefix between the hostname and the url part you configure in web.xml) of the application?  You can configure it in the console. If you configure other servlets, this is the same.

Cheers,
P
--
--
Philipp H. Oser, Röntgenstrasse 32, CH-8005 Zürich, Phi...@oser.org
H: +41 44 271 50 91, M: +41 76 574 74 04, http://www.oser.org/~poser/philipp.html
Reply all
Reply to author
Forward
0 new messages