Soniya

Greenhorn
+ Follow
since Oct 12, 2004
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 Soniya

Hi,

I am using weblogic 8.1 and weblogic.jdbc.oracle.OracleDriver

I am getting the following error when I try to import javax.sql package and use DataSource in my code.

"package javax.sql does not exist"

I have included weblogic.jar in the classpath.
What else do I need to include?

Thanks a lot
Thanks Nathaniel.
It works now. The directory structure in the jar file was not according to the expected package directory structure.
Thanks.
hi
When I try to delploy stateless session bean I get the following erroR:
Unable to load a class specified in your ejb-jar.xml: examples.ejb20.example1.HelloBean
Please help.
Thanks
I get the following error when I try to deploy a simple Stateless Sesseion EJB.
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 7 Module: HelloWorld Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was: Error parsing file 'META-INF/ejb-jar.xml' at line: 8 column: 22. The content of element type "enterprise-beans" is incomplete, it must match "(session|entity|message-driven)+"..

ejb-jar file is:
<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>

<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>Hello</ejb-name>
<home>examples.ejb20.example1.HelloHome</home>
<remote>examples.ejb20.example1.Hello</remote>
<local-home>examples.ejb20.example1.HelloLocalHome</local-home>
<local>examples.ejb20.example1.HelloLocal</local>
<ejb-class>examples.ejb20.example1.HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>

</session>
</enterprise-beans>

</ejb-jar>

Can anybody please tell me what is wrong?
Thanks