Problem getting Psi Probe to work (Error 403)

1,574 views
Skip to first unread message

Hans im Glück

unread,
Nov 27, 2015, 10:06:20 AM11/27/15
to psi-probe-discuss
Hi all,

I'd like to use Psi Probe on our Tomcat 7, but having problems to get it to work.

First of all I'd like to list some specs of our system environment:
  • OS: Windows Server 2008 R2
  • WebServer: Apache Tomcat/7.0.47
I deployed Psi probe using the Tomcat manager tool. I also added the user information to tomcat-users.xml, but every time I try to request the Psi Probe frontend, my server only delivers an Error 403 ("You do not have sufficient privileges to access this page. Please use the navigation bar to choose another area or click "back" button in your browser. ")

Can anyone help me to fix this problem, because I have no clue what to do ;-)

Thanks in advance

Jeremy Landis

unread,
Feb 5, 2016, 10:07:25 PM2/5/16
to psi-probe-discuss
Sorry for latest response.  Are you still experiencing issues?  This should work without issue in tomcat 7 update 47.  If possible, please provide some screen shots of issues you are experiencing.  If you resolved issue and you think it might require an adjustment to the library, please see us over on github with a pull request.

Thanks,

Jeremy

Hans im Glück

unread,
Mar 21, 2016, 5:52:36 AM3/21/16
to psi-probe-discuss
Hi Jeremy,

this weekend we updated the software on our web server:
  • Tomcat 7.0.68
  • Java 7 Update 80 64Bit
  • Psi Probe 3.0.0
Nevertheless, I'm still getting the error message "You do not have sufficient privileges to access this page. Please use the navigation bar to choose another area or click "back" button in your browser."

I attached a screenshot of my user config file.


Peter Minearo

unread,
Apr 14, 2016, 10:43:03 PM4/14/16
to psi-probe-discuss
In the log file I attached in my last reply, there was a NullPointerException.  I figured out how to fix that problem.

In the file, web/src/main/webapp/WEB-INF/spring-probe-resources.xml move the Tomcat[Version]ContainerAdapter you are using to the top of the list, or remove the versions you are not using.  This does not solve the 403 problem.

<bean id="containerWrapper" class="psiprobe.beans.ContainerWrapperBean">

                <!--

                        Setting this property to true will override the server polling each

                        adapter performs to test for compatibility.  Instead, it will use

                        the first one in the list below.  Reorder those values if necessary.

                -->

                <property name="forceFirstAdapter" value="false"/>

                <property name="adapterClasses">

                        <list>

                                <value>psiprobe.Tomcat90ContainerAdapter</value>

                                <value>psiprobe.Tomcat80ContainerAdapter</value>

                                <value>psiprobe.Tomcat70ContainerAdapter</value>

                        </list>

                </property>

                <property name="resourceResolvers">

                        <map>

                                <entry key="jboss" value-ref="jbossResourceResolver"/>

                                <entry key="default" value-ref="defaultResourceResolver"/>

                        </map>

                </property>

        </bean>

Peter Minearo

unread,
Apr 14, 2016, 10:43:03 PM4/14/16
to psi-probe-discuss
Figured out the fix for this:

Open the file web/src/main/webapp/WEB-INF/web.xml and scroll to the bottom of the page.  There is a listing of security roles psi-probe is expecting.  Create those roles in $CATALINA_HOME/conf/tomcat-users.xml and assign those roles to users.  The page magically appears.

There is one problem however.  The only log files that show up are catalina.out and probe.log.  Is there some sort of configuration that will include other log files in the directory?  Or is this a bug?




On Friday, November 27, 2015 at 7:06:20 AM UTC-8, Hans im Glück wrote:

Peter Minearo

unread,
Apr 14, 2016, 10:43:04 PM4/14/16
to psi-probe-discuss
I am getting the same problem.

Sys Env:

Java: 1.8.0_45-b14
Tomcat: 8.0.32
Probe: 3.0.0-SNAPSHOT

I have attached probe.log and here is what the page looks like in the browser:





On Friday, November 27, 2015 at 7:06:20 AM UTC-8, Hans im Glück wrote:
probe.log

Joan Lorenzo

unread,
Mar 22, 2017, 2:14:08 PM3/22/17
to psi-probe-discuss
Same here:

Java:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Probe: 
Version 3.0.0-SNAPSHOT 


I will try to deploy the last psi-probe war.
Reply all
Reply to author
Forward
0 new messages