rama ilango

Greenhorn
+ Follow
since Dec 11, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rama ilango

Hi,
I need to lookup the EJB URL from one application to another application which is running in another server.
The remote EJB application available in 'https://test.com/test' (Ex)

I am using the following factory.
Context.INITIAL_CONTEXT_FACTORY - "com.ibm.websphere.naming.WsnInitialContextFactory"

When trying with following provider URL, I am getting 'ServiceUnavailableException'
Context.PROVIDER_URL - "iiop:test.com:2809/test"

Please help to resolve this issue and how should i form the provider URL.

Thanks,
ramailango
The below is full stack trace. Please help on this

W org.apache.struts.action.RequestProcessor processException Unhandled Exception thrown: class javax.naming.CommunicationException
00000063 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause action: javax.servlet.ServletException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that cluster]
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1229)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
Hi,

I am calling EJB service in my code. It is working fine with web sphere WAS 7.0. But when tried to run the same code in WAS 8.5, am getting the below error.

Error 500: javax.servlet.ServletException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is: java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy:
This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server
that is part of a cluster is also deployed on all other members of that cluster]

How to resolve this issue? Why it is not working in 8.5? Need to change the EJB coding?
Hi,

I am calling EJB service in my code. It is working fine with web sphere WAS 7.0. But when tried to run the same code in WAS 8.5, am getting the below error.

Error 500: javax.servlet.ServletException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is: java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy:
This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server
that is part of a cluster is also deployed on all other members of that cluster]

How to resolve this issue? Why it is not working in 8.5?
10 years ago
Hi
I want to delete the file "test ex.txt" file.
i run the following command in command prompt.i can delete the file successfully.
/bin/rm -f /mnt/"test ex.txt"

I want to run the command from java.So i am using the following code
String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
Runtime rt = Runtime.getRuntime();
process = rt.exec(cmd);
The file was not deleted.
How to delete the file with space in name?
Help me
14 years ago
Hi,

I connected the mysql database using java.When i access the multiple db connection at a time, the following error is occured

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1053)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2743)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at enspeed.rm.GlobalConnection.getConnection(GlobalConnection.java:27)
at enspeed.rm.CommonUtils.dateExpired(CommonUtils.java:145)
at enspeed.rm.HtmlHelperV2.PrintFooter(HtmlHelperV2.java:1914)
at enspeed.rm.LicenseAgreement.licenseDisp(LicenseAgreement.java:261)
at enspeed.rm.LicenseAgreement.processRequest(LicenseAgreement.java:141)
at enspeed.rm.LicenseAgreement.doGet(LicenseAgreement.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
Common Utils : com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"

I properly closed all the connections.But the error is occured.How to solve it?
Reply please
15 years ago
Actually i got a error like this while try to connect a remote server. Can you help me?

spawn ssh root@x.x.x.x
Could not create directory '/.ssh'. The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established. RSA key fingerprint is 45:fb:f7:75:0e:37:31:06:69:dd:11:05:e7:38:0f:ae. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/.ssh/known_hosts).
15 years ago
How to set up the certificate for apache and doesn't ask password to communicate?
Please give steps for set up certificate for apache.
15 years ago
my php file is
<?php
$output=shell_exec("sh autorun.sh");
echo "$output";
?>

my shellscript autorun.sh is
echo "enter"
result=`ssh root@192.xxx.xxx.xxx ls`
echo "$result"

When i run the autorun.sh in command prompt, it display
enter
airhead
airhead.tgz
anaconda-ks.cfg
Desktop

the above result is correct.

When i run the autorun.sh from above php file the following error will display
enter
RSA key fingerprint is 01:fe:fa:cb:63:ad:9c:11:69:67:90:ce:ea:2f:19:4a


How to solve this problem?
15 years ago
for example
this is my script file as shelltest.sh

output=`java test`
echo "$output";
echo "success";

when run this script, it run the test.java.
this java file call the thread.
So this script is completed, after stop the thread only.
But i want : when thread is running in background, the script file should print the success(It is in echo) and come out from sh.
reply me
15 years ago
I will call java program by shell script.
This java start the thread and return the result to the shell script.
My problem is shell script is waiting upto stop the thread.
I want the result when thread is running in background.
please reply.
15 years ago
What is the linux command to trim the string?
15 years ago
for example
a=" 58 "

how to remove the spaces from the above string?
15 years ago
Using AES DECRYPT i can do the decryption.But
my question is how to do the same by java
15 years ago
hi

I encrypted the string successfully using md5.the encrypted value is 9B566BFF5C12EBB856633E6834A5727C.
How can i decrypt?
Advance thanks for reply
15 years ago