how start it on tomcat

76 views
Skip to first unread message

heli ho

unread,
Feb 11, 2014, 2:46:52 AM2/11/14
to jminix...@googlegroups.com
what i need to do

lbovet

unread,
Feb 11, 2014, 2:38:10 PM2/11/14
to jminix...@googlegroups.com
Hello. Thanks for your interest.

If you follow the steps on http://code.google.com/p/jminix/wiki/Documentation, you should get it running easily. Since it is a servlet, it works with tomcat. Refer to the tomcat documentation for installing tomcat.

heli ho

unread,
Feb 11, 2014, 6:13:54 PM2/11/14
to jminix...@googlegroups.com
i add this to C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT\WEB-INF\web.xml

<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>



where to locate a .jar?

to this C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\_\org\jminix\console\servlet\
JmxMiniConsoleServlet.jar

?

Laurent Bovet

unread,
Feb 12, 2014, 2:11:18 AM2/12/14
to jminix...@googlegroups.com

The jars should go to WEB-INF/lib

--
 
---
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 .

heli ho

unread,
Feb 12, 2014, 10:02:07 PM2/12/14
to jminix...@googlegroups.com, lbo...@windmaster.ch
this is on C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT\WEB-INF\web.xml



<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
  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/web-app_3_0.xsd"
  version="3.0"
  metadata-complete="true">

  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>


<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>/jmx2/*</url-pattern>
</servlet-mapping>  

</web-app>





on C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT\WEB-INF\lib              i place jminix.jar


restart tomcat


go to localhost:8080/jmx2/


its say "HTTP Status 500 - Error instantiating servlet class org.jminix.console.servlet.MiniConsoleServlet"

lbovet

unread,
Feb 16, 2014, 3:11:28 PM2/16/14
to jminix...@googlegroups.com, lbo...@windmaster.ch
You also need to put the dependencies (jar files listed in the documentation) in the WEB-INF/lib folder. If you use maven, this comes automatically. Otherwise, you'll need to hand-pick them, which is not that convenient.
Reply all
Reply to author
Forward
0 new messages