| I am working in the capacity of IT Project Lead in Pune, India. Here I would like to demonstrate issues I have seen in various technologies like J2EE, Java, Web Services, EJB, Adobe Flex, PHP, XHTML, XML, XSLT, JPA, Hibernate, Spring, Struts, J2ME, Java Script, JQUERY, PHP, Prototype.js , AJAX, WebLogic, JBoss, Tomcat, Application Design to the best of my knowledge and experience I have gained so far.
I also dedicate this blog to my friend Punit Shah from whom I have learnt so much.
I hope you will find it worth learning. Please feel free to discuss any doubts, I am also looking forward to learn many new things through this channel . |
 |
GOOd (thnx a ton …..)
Hi Vashist,
Thanks for the solutions, you have got a very good blog, thanks for every post. I have solved 3 major issues because of your blog. Please keep up the good work, I hope lots and lots of people will like it, as you are writing the solutions which we face in real development world.
–
Regards
Ahuja
Hey Vashi,
Great keep it up mate… thanks for posting all the real time solutions….
rocksolutions is really rocking…
regards
joe
good work buddy!!!
keep it up
–
justin
nice one, simple and straight to the solutions!!!!
thanks for your time. you gonna rock one day!!! seems like lots to learn from you through this channel
–
justin
great!!!!
keep the pace… really very helpful
Hi friend R Vashisht,
We utilize the operating system Red Hat Enterprise Linux 5 “with the Weblogic11g as an application server,
We have also deployed the “JavaBridge.war” to work with PHP applications, but we need the integration with the Sybase database ASE15.5.
PHP 5 was installed, but weblogic does not recognize the connection function called “sybase_connect”
It is possible to achieve this integration in some way on weblogic 11g?
On “apache” everything works fine.
In windows if you recognize the function when it calls the connection to sybase.
thanks
Hi Jorge,
Are you able to connect to some other DB like MYSQL from the same instance, Please check that and confirm.
Hi Vanish,
I tested with MySQL database and SYBASE.
I do not recognize the functions of php when the war is deployed in WebLogic,
attaching part of the log:
——————————
Error 500–Internal Server Error
java.lang.RuntimeException: PHP Fatal error: Call to undefined function mysql_connect() in /opt/Oracle/Middleware/user_projects/domains/sybase/servers/AdminServer/tmp/_WL_user/JavaBridge/7qvs7g/war/hello.php on line 18
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:503)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:402)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:410)
at php.java.servlet.CGIServlet.handle(CGIServlet.java:401)
at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:427)
at php.java.servlet.CGIServlet.doGet(CGIServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
——————-
Thanks for your help friend Vanish.
Hi,
For me it seems like PHP environment is not available. Just to clear my doubt, can you please confirm if you are able to invoke other PHP
inbuilt functions. Also if possible you can past your php.ini settings, please make sure to replace all the secured IP address details for security reasons.
Thanks
Rakesh Vashisht
Hi Vanish,
I tested with MySQL database and SYBASE.
I do not recognize the functions of php when the war is deployed in WebLogic,
attaching part of the log:
——————————
Error 500–Internal Server Error
java.lang.RuntimeException: PHP Fatal error: Call to undefined function mysql_connect() in /opt/Oracle/Middleware/user_projects/domains/sybase/servers/AdminServer/tmp/_WL_user/JavaBridge/7qvs7g/war/hello.php on line 18
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:503)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:402)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:410)
at php.java.servlet.CGIServlet.handle(CGIServlet.java:401)
at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:427)
at php.java.servlet.CGIServlet.doGet(CGIServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
——————-
Thanks for your help friend Vanish.
ok