Home » Lambda Probe Community Forums » Bugs & Issues

Thread: Jboss-4.2 + LambdaProbe

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 11 - Pages: 1 - Last Post: 04-May-2010 17:43 by: malfunction84 Threads: [ Previous | Next ]
letsay

Posts: 1
Registered: 19/06/07
Jboss-4.2 + LambdaProbe
Posted: 19-Jun-2007 20:07
 
  Click to reply to this thread Reply

Hi,

I'm using "jboss-4.2.0.GA", but lambdaprobe dont work with this version of jboss.

I used "jboss-4.0.5.GA" until now and everything worked correctely.

I can log in lambdaprobe, but it gets me a error.
The error is :

"

There was an error

Application encountered an unexpected error.We would greatly appreciate if you send the information below back to us so we can correct the problemas soon as possible!

java.lang.StackOverflowErrorjavax.servlet.ServletException: java.lang.StackOverflowErrorat org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)at org.apache.jsp.index_jsp._jspService(index_jsp.java:64)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)at ...
"

Someone has this problem too??
tks




turbomonkey

Posts: 329
Registered: 05/04/06
Re: Jboss-4.2 + LambdaProbe
Posted: 27-Jun-2007 22:10   in response to: letsay
 
  Click to reply to this thread Reply

Probe has not been tested on JBoss 4.2 yet...


nhelder

Posts: 7
Registered: 10/08/07
Re: Jboss-4.2 + LambdaProbe
Posted: 16-Aug-2007 15:06   in response to: turbomonkey
 
  Click to reply to this thread Reply

Do you have an ETA as far as when JBoss 4.2.x will be supported?

I'd very much like to incorporate this product into our JBoss development environment.

Thanks,

- Nathan

CamaraFred

Posts: 2
Registered: 22/08/07
Re: Jboss-4.2 + LambdaProbe
Posted: 22-Aug-2007 14:52   in response to: turbomonkey
 
  Click to reply to this thread Reply

I was having the same error.

For what i can see you just need to change org.jstripe.tomcat.probe.Tomcat55ContainerAdaptor class
on the canBoundTo method, from:

public boolean canBoundTo(String binding) {
return binding != null && (binding.startsWith("Apache Tomcat/5.5") || binding.startsWith("Apache Tomcat/6.0"));
}

to

public boolean canBoundTo(String binding) {
return binding != null && (binding.startsWith("Apache Tomcat/5.5") || binding.startsWith("Apache Tomcat/6.0") || binding.startsWith("JBossWeb/2.0.0.GA"));
}

I've downloaded the source code, changed it, compiled it with jdk1.4 and updated it in the probe.war. This error dissapeard and it is working fine.

CamaraFred

Posts: 2
Registered: 22/08/07
Re: Jboss-4.2 + LambdaProbe
Posted: 22-Aug-2007 14:52   in response to: turbomonkey
 
  Click to reply to this thread Reply

I was having the same error.

For what i can see you just need to change org.jstripe.tomcat.probe.Tomcat55ContainerAdaptor class
on the canBoundTo method, from:

public boolean canBoundTo(String binding) {
return binding != null && (binding.startsWith("Apache Tomcat/5.5") || binding.startsWith("Apache Tomcat/6.0"));
}

to

public boolean canBoundTo(String binding) {
return binding != null && (binding.startsWith("Apache Tomcat/5.5") || binding.startsWith("Apache Tomcat/6.0") || binding.startsWith("JBossWeb/2.0.0.GA"));
}

I've downloaded the source code, changed it, compiled it with jdk1.4 and updated it in the probe.war. This error dissapeard and it is working fine.

nhelder

Posts: 7
Registered: 10/08/07
Re: Jboss-4.2 + LambdaProbe
Posted: 24-Aug-2007 20:57   in response to: CamaraFred
 
  Click to reply to this thread Reply

Following CamaraFred's steps, and the install steps for JBoss, LambdaProbe is now up and running in my JBoss 4.2.1 install.

Thanks!

nhelder

Posts: 7
Registered: 10/08/07
Re: Jboss-4.2 + LambdaProbe
Posted: 24-Aug-2007 20:57   in response to: CamaraFred
 
  Click to reply to this thread Reply

Following CamaraFred's steps, and the install steps for JBoss, LambdaProbe is now up and running in my JBoss 4.2.1 install.

Thanks!

---

Sorry for the double post... out of memory error from the forum made me think that the first "post" hadn't gone through.

nhelder

Posts: 7
Registered: 10/08/07
Re: Jboss-4.2.2 + LambdaProbe
Posted: 30-Nov-2007 20:39   in response to: nhelder
 
  Click to reply to this thread Reply

Just in case anyone is wondering, the "tomcat" string in JBoss 4.2.2 is: "JBossWeb/2.0.1.GA" .


A couple other changes I made to the source (and have been documented elsewhere, but just for fun I'll list them here) prior to running the ant build script were:

Edit: src\probe\WEB-INF\jboss-web.xml
    added: <context-root>/probe</context-root>
This sets the context path for Lambda Probe to "/probe", rather than defaulting to "/<the_name_of_the_lambda_probe_war_file>"

Edit: src\probe\WEB-INF\src\log4j.properties
    changed: log4j.appender.R.File=E:/java/jboss/server/default/log/probe.log
This just relocates Lambda Probe's log file.


After running the ant build script, I edited the resulting .war file by removing the following jar files from <war_file>\WEB-INF\lib:
  commons-collections-3.2.jar
  commons-fileupload-1.2-SNAPSHOT.jar
  commons-io-1.1.jar
  commons-logging-api.jar
  commons-logging.jar
  jcommon-1.0.0.jar
  jfreechart-1.0.1.jar
  jmx.jar
  log4j-1.2.13.jar
  quartz-1.5.1.jar
These jars are already on the classpath of our JBoss servers.

  - Nathan


javaguru

Posts: 2
Registered: 10/01/08
Re: Jboss-4.2.2 + LambdaProbe
Posted: 10-Jan-2008 01:16   in response to: nhelder
 
  Click to reply to this thread Reply

Sorry I just posted the same error. Is there a war I can download that works?

Thanks,
JavaGuru

pierrot

Posts: 1
Registered: 17/01/08
Re: Jboss-4.2.2 + LambdaProbe
Posted: 17-Jan-2008 13:38   in response to: javaguru
 
  Click to reply to this thread Reply

Hi,
Before recompile some class, try to update  "spring-resources.xml", after deploy probe.war (%JBOSS%/server/xxx/deploy/probe/WEB-INF/), and change value "false" to "true" for "forceFirstAdaptor" property name.

<bean id="containerWrapper" class="org.jstripe.tomcat.probe.beans.ContainerWrapperBean">
        <property name="forceFirstAdaptor" value="true"/>
        <property name="adaptorClasses">
            <list>
                <value>org.jstripe.tomcat.probe.Tomcat55ContainerAdaptor</value>
                <value>org.jstripe.tomcat.probe.Tomcat50ContainerAdaptor</value>
            </list>
        </property>

Hope this help.
Pierre.


nandox

Posts: 2
Registered: 09/01/08
Re: Jboss-4.2.2 + LambdaProbe
Posted: 17-Jan-2008 14:18   in response to: pierrot
 
  Click to reply to this thread Reply

Hi

I didn´t need to recompile anything to run it on JBoss 4.2.1-GA. Only with the pierrot´s solution I could make it (thank's, pierrot!).


To change the log's folder I changed the following files:

probe.war/WEB-INF/web.xml:

        <servlet-mapping>
           <servlet-name>probe</servlet-name>
           <url-pattern>/logs/*</url-pattern>
        </servlet-mapping>
  to

<servlet-mapping>
<servlet-name>probe</servlet-name>
<url-pattern>/log/*</url-pattern>
</servlet-mapping>

and probe.war/WEB-INF/classes/log4j.properties:
   
    log4j.appender.R.File=${catalina.base}/logs/probe.log

 to

    log4j.appender.R.File=${catalina.base}/log/probe.log

Thank's


malfunction84

Posts: 49
Registered: 14/11/08
Re: Jboss-4.2 + LambdaProbe
Posted: 04-May-2010 17:43   in response to: CamaraFred
 
  Click to reply to this thread Reply

Thanks to CamaraFred, this issue is resolved in PSI Probe 2.0.2.

http://code.google.com/p/psi-probe/issues/detail?id=83



Point your RSS reader here for a feed of the latest messages in all forums