I suppose this is the correct forum to post this question. If not let me know.
I have Weblogic, Tomcat 7.0, PHP, Java, and PHP/Java Bridge installed on Windows 7.
I used this ->http://docs.oracle.com/cd/E13222_01/wls/docs90/jmx/accessWLS.html
to create a PHP script to call the Weblogic/Java classes to add/delete users/groups etc. However, I cannot get passed the "Unsupported protocol: t3" error.
In the Oracle docs it clearly states that you have to add the wljmxclient.jar classpath. I have added it to my Windows classpath and I even copied the jar file to the JavaBridge/WEB-INF/lib directory on Tomcat. I still get the error.
I tried switching the protocol to iiop but then I got new errors about not being bound to the context etc. I want to fix the t3 error. I can write a script with the WLS Tool and use t3 and it works. I access the console with t3 and it works.
I have seen that others have had the issue but didn't see a solution.
OK. So I found on weblogic wonders that you can do the following to create the wlfullclient.jar file:
1) navigate to
2) issue the following command
java -jar wljarbuilder.jar -profile wlfullclient
Then I added the classpath="C:\Oracle\Middleware\wlserver_12.1\server\lib. I removed the line from my code that calls the setWLSEnv.cmd to avoid ovewriting anything. I even copied the newly created wlfullclient.jar to the C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\JavaBridge\WEB-INF\lib dirrectory to make sure it was still available to my script.
OK. 4 days later and I am still stuck. Surely someone on this Forum knows what i am doing incorrectly.
I am using Weblogic 12c, Tomcat 7.0, PHP 5.4, PHP/Java Bridge on Windows 7. All localhost.
I set up Weblogic. I can run the console at http://localhost:7001/console and create users and groups and delete them. I can even start the WLS command line tool and connect via t3://localhost:7001. I even pinged it. All works.
My Tomcat works. I am install the PHP/Java Bridge examples and they work.
I created a test.php file using this-> http://docs.oracle.com/cd/E24329_01/web.1211/e24415/accesswls.htm#JMXCU153
I made sure that my classpath pointed to the wljmxclient.jar file. The guy above said to create the wlfullclient.jar file. Someone else pointed me to the wlthint3client.jar file. And yet another pointed me to weblogic.jar. I have added all of them and then individually to the classpath. Tried and I still get the same error. I
I created the wlfullclient.jar file with, first, the following ant build.xml file:
and then with the weblogic jarbuilder as described here:
Still got the same error . . . unsupported protocol.
I even added them to the \Tomcat 7.0\webapps\[myapp]\WEB-INF\lib directory to make sure that they were accessible. Still, same error.
I logged into the Weblogic console and enabled tunneling in the protocols tab for t3 and set up the user ID/pwd for IIOP. Still, same error.
I tried http and iiop and get the same unsupported protocol/malformed URL message.
So I am missing something. And this is after looking over the docs, the forums and the net plus trying all combinations.
So does this work? Or what am I doing wrong that it is not working for me?
1) I installed Tomcat 7.0 zip file instead of the installer and set it up manually. In my setenv.bat file it looks like:
set CATALINA_HOME=C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.34
set CATALINA_BASE=C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.34
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_09
set JRE_HOME=C:\Program Files (x86)\Java\jdk1.7.0_09\jre
exit /b 0
2) I enabled IIOP protocol in weblogic through the weblogic console and added a userid/password which I used in num 3 for the userID/password
3) My php script on Tomcat 7 with the PHP/Java Bridge (not the JMXServerURL . . . nowhere did I find that you had to use "rmi" as the protocol")
$serviceURL = new java("javax.management.remote.JMXServiceURL","rmi","localhost","7001","/jndi/iiop://localhost:7001/weblogic.management.mbeanservers.edit");