Karthika Kannan

Greenhorn
+ Follow
since Feb 18, 2006
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 Karthika Kannan

Hi everyone,

I am trying to build an ejb jar for Weblogic 10, using Ant in Eclipse. I am getting the exception below:

java.lang.NoClassDefFoundError: weblogic/utils/NestedException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:294)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:221)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)
at org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)
at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.parseBuildFile(InternalAntRunner.java:191)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:400)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

This seems to be becuase the older weblogic jar had an "weblogic/utils/NestedException", but the Weblogic10 jar has a class "weblogic/auddi/NestedException".

I tried using the Ant in the Weblogic 10 folder also, with no success.

Any suggestions would be very helpful.

Thanks.

Regards,
Karthika
15 years ago
I'm trying to insert a row into a table(Oracle) from a java program, using a sequence(seq.nextval) as the primary key.I'm using a prepared statement for this query:
INSERT INTO TEST VALUES(ERROR_SEQ.nextval,?,?)

I'm getting the following exception:

ORA-01006: bind variable does not exist

Stack Tracejava.sql.SQLException: ORA-01006: bind variable does not exist

Could somebody help me out.
Thanks.

Karthika
Hi,

There are multiple clients listening on a single queue. Depending upon the correlation id of the message,a client consumes the corresponding message.If the message's correlation id does not match with the client,the client puts it back on the queue.The problem I'm facing is that once a client consumes a wrong message, it keeps reading the same message again and again.It does not read the message that it is supposed to because it is caught up with the wrong message that has been sent first.

When a message is sent, it is put at the end of the queue.And so, the client should read the next message in the queue(FIFO). But this is not happening.

Could someone help me out.

Karthika
18 years ago
Hi Kiran,

Where have you put the jars?
Have you put them in the shared library?

Karthika
18 years ago
Hi Satish,

Mastering EJBs is a good book to start with.
You could also read the J2ee tutorial from Sun.
Both are available online.
Mastering EJBs
Sun J2ee tutorial

Karthika
Sorry Babji,
I've not worked with custom services. Maybe you could use fixed JNDI names.
I'm not sure though.

Karthika
18 years ago
Babji,

I looked up this problem and found this link. It says that you shouldn't use fully qualified names. Instead, use local the JNDI java:comp/env context.I haven't tried it as yet.Have a look at the linkskywayradio

Karthika
18 years ago
Babji,

See the material on this link.It might help.
web page

Karthika
18 years ago
Hi,
have you created an authentication alias and then specified it while creating the data source?If you haven't, then that could be the problem.

Hope this helps.

karthika
18 years ago
Hi,
I think this might answer your question about classpath:

You have to include the jars in a shared library and attach it to your application. You have to create the shared library and then attach it to your application.

Hope this helps.

karthika
18 years ago
Hi,

I'm using Websphere 6.0. I have deployed an MDB on the server and am using the JMS default messaging provided by websphere. The MDB has to send a messsage to a queue on another JVM(remote machine). Could someone tell me how to configure the bus and foreign bus for the queues. The websphere documentation doesnt provide any examples.

karthika
18 years ago
hi,

This is what i used and it worked within an MDB.It doesnt work when its used from a client.

hashtable.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
hashtable.put(Context.PROVIDER_URL,"iiop://localhost:2809");
Thanks, Mike.
It works.

Karthika
Hi,
Sorry, it is the j2ee tutorial, not the JMS one.
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
Sorry once again for the mistake.

Karthika
Hi,
You could use the JMS tutorial from Sun.It uses the Sun J2ee server and is good for beginners.
http://java.sun.com/products/jms/tutorial/

Karthika