kaarthik asokkumar

Greenhorn
+ Follow
since Jan 21, 2005
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 kaarthik asokkumar

hi
i am using jboss 4.2 and mysql (version 5.1) in windows vista. I was successfully connecting to db using the jdbc:mysql://localhost:3306/devpfmdb. how ever suddenly the server fails to connect throwing the below exception. I am not sure why this happend all of the sudden. i reinstalled my mysql but did not make any difference. I used sql explorer as a UI to the database which also failed to connect. I tried changing url connection in the sql explored to jdbc:mysql://127.0.0.1:3306/devpfmdb and it worked but changing that in jboss db did work. Any help would be appreciated.

Last packet sent to the server was 0 ms ago.); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.ConnectException
MESSAGE: Connection refused: connect
STACKTRACE:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)

my datasource

- <local-tx-datasource>
<jndi-name>devpfmdb</jndi-name>
<use-java-context>true</use-java-context>
<connection-url>jdbc:mysql://localhost:3306/devpfmdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>admin</user-name>
<password>admin</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
- <metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
15 years ago
For Invocation targertexception this is what you may have to do.


1. Copy 2 files: "backport-util-concurrent-3.1.jar" and "geronimo-stax-api_1.0_spec-1.0.1.jar" from <Axis2Home_Location>/lib folder to the <Eclipse_Location>\plugins\Axis2_Codegen_Wizard_1.3.0\lib folder.

2. Edit the plugins.xml file in the <Eclipse_Location>\plugins\Axis2_Codegen_Wizard_1.3.0 folder as follows:

<runtime>
...
<library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
<export name="*"/>
</library>
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
...
</runtime>

3) Change the plugin name to 1.4 and the version folder to 1.4

Axis2 version 1.4 misses some jar files for plugin. To find that out turn on the debug for eclipse. To turn on the debug start eclipse from command prompt.
15 years ago
Hi
Is there any tool that will help me to generate EJB clients (stubs). I am currently using JBOSS and eclipse.
i think i know what the issue is. I need to generate my stubs. Can any one please share some experience on generating the stubs using eclipse and jboss ??
hi
I am working with EJB3 in jboss container using a eclipse id. I created a test session bean(stateless) and created a remote interface. I have my ejb in a separate ear and i am trying to access the ejb through from UserInterface ear (differrent ear but they share the same jvm). I get a class cast exception

Object ob = context.lookup("pfmbusinessenterprise/CalculatorBean/remote");
CalculatorRemote calc = (CalculatorRemote) PortableRemoteObject.narrow(ob, CalculatorRemote.class);

I explicitly created CalculatorRemote interface in the UserInterface ear.

I dont get this error when i explicitly add the ejb application as a dependency. I dont want to do this as i wanted to have the 2 ears separate.

JNDI look up is fine but its the casting that is causing a problem. I dont know what i am missing..

java.lang.ClassCastException
18:33:18,996 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
18:33:18,996 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
18:33:18,996 ERROR [STDERR] at business.test.clienttest.test(clienttest.java:13)


@ Stateless
public class CalculatorBean implements CalculatorRemote {

public String test (){
return "You are ok";
}
}

import javax.ejb.Remote;

@Remote
public interface CalculatorRemote {
public String test ();
}

Any help would be great.
thanks mark i think i found the issue. The property that was giving a problem was <value> java:/devpfmdb</value> changed it to value>java:/devpfmdb</value>
it worked. An extra space cost an extra day.
I am stuck at this point. i tried jmx console and used the same name but in vain..
When i dont use spring config below code line works
DataSource envCtx = (DataSource) initCtx.lookup("java:/devpfmdb");

however if i use the spring config below it throw an exception at start up.

<bean id="datasource" class =org.springframework.jndi.JndiObjectFactoryBean>
<property name="jndiName">
<value>java:/devpfmdb</value>
</property>
</bean>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datasource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: java: not bound
hi all
I am trying to use springs JndiObjectFactoryBean to get a datasource connection through Jboss connection pool. When ever i do so i get an error java: not bound on starting my application. When i remove the the spring initialization server starts up fine and binds my data source correctly. My thought was spring is loaded before Jboss binds the datasource to a JNDI. Any help would really be appreciated.

Below are some of my configs
jboss-web.xml
<resource-ref>
<description>DB Connection</description>
<res-ref-name>devpfmdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java evpfmdb</jndi-name>
<res-auth>Container</res-auth>
</resource-ref>
web.xml
<resource-ref>
<description>DB Connection</description>
<res-ref-name>devpfmdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Bean config
<bean id="datasource" class ="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java evpfmdb</value>
</property>
</bean>
Hi All
I work with a J2EE application(mostly web container) I have a scenario where i set a session object(bean) when a request comes from a browser.
The user then opens a second browser from the first one and sends me a second request to set the same session variable with a new bean refrence. This causes a problem in the data integrity as data gets mixed in the bean references as both the beans are set as the same session variable(not sure how its mixed but it get mixed). I know that some one might have had this problem bfore but not quite sure on how to handle this.(I am not currently not planning to use EJBs). Any help would really be appreciated.
16 years ago
Hi
I am using reportmill 6.0 for generating reports. But seems that the documentation for 6.0 is not adequate (Not properly documented) for me to understand how to work on it in generating dynamic templates. Any information sharing on this would be really Appreciated.

Thanks
Kaarthik
I used HFSJ i think this is a good one for certification
sounds gr8 i am ready to help u guyz.
18 years ago
thnx leena good piece of start