ksrk mahidhar

Greenhorn
+ Follow
since Jun 22, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ksrk mahidhar

Hi,

i have configured SSL thing by following instructions from the below link

https://www-304.ibm.com/support/docview.wss?uid=swg21215507


after doing my ssl configuration ,i tried to hit through the client application and i got the below exception.

[11/23/11 13:31:43:889 GMT] 00000056 SystemOut O Throwing Exception null
[11/23/11 13:31:44:595 GMT] 00000056 WSChannelFram A CHFW0019I: The Transport Channel Service has started chain httpclient-https-chain:services.cargo.qcorpaa.aa.com:443:C:/Root/wid6.0/pf/wps/etc/ODSkey.jks.
[11/23/11 13:31:46:749 GMT] 00000056 SystemOut O Throwing Exception Version not supported (from client)


can some one help me out to get rigid of this situation.

Thanks,

Mah.
13 years ago
can any one suggest good meterial for Integrate Struts Spring Hibernate Web Application and any books special for this topic
14 years ago
Building: /HelloWorld

ejbModule/EJSRemoteStatelessHelloWorld_ed1f9ea7.java(7): HelloWorld cannot be resolved or is not a valid superinterface

ejbModule/EJSRemoteStatelessHelloWorld_ed1f9ea7.java(7): HelloWorld cannot be resolved or is not a valid superinterface

ejbModule/EJSRemoteStatelessHelloWorldHome_ed1f9ea7.java(7): HelloWorldHome cannot be resolved or is not a valid superinterface

ejbModule/EJSRemoteStatelessHelloWorldHome_ed1f9ea7.java(7): HelloWorldHome cannot be resolved or is not a valid superinterface

Shutting down workbench.

Execution Halted: Compilation Errors Reported

2 Errors, 0 Warnings, 0 Informational Messages

ADMA5007I: The EJBDeploy command completed on C:\Program Files\IBM\WebSphere\ID\602\runtimes\bi_v6\profiles\AppSrv01\wstemp\wstemp\app_129c57f6a44\dpl\dpl_HelloWorld.ear

ADMA5008E: EJBDeploy failed on C:\Program Files\IBM\WebSphere\ID\602\runtimes\bi_v6\profiles\AppSrv01\wstemp\wstemp\app_129c57f6a44\dpl\dpl_HelloWorld.ear: com.ibm.websphere.management.exception.AdminException: ADMA0063E: An error occurred in EJB deployment - [ejbModule/EJSRemoteStatelessHelloWorld_ed1f9ea7.java(7): HelloWorld cannot be resolved or is not a valid superinterface, ejbModule/EJSRemoteStatelessHelloWorldHome_ed1f9ea7.java(7): HelloWorldHome cannot be resolved or is not a valid superinterface]

ADMA5011I: The cleanup of the temp directory for application HelloWorld is complete.

ADMA5014E: The installation of application HelloWorld failed.

The installation of application HelloWorld failed.

To work with installed applications, click the "Manage Applications" button.

can any one tell me why this error is comming and how to rectify this error
thanks i got solution

just use below code

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
session =sessionFactory.openSession();

//Using from Clause
String SQL_QUERY ="from Contact";
Query query = session.createQuery(SQL_QUERY);
for(Iterator it=query.iterate();it.hasNext();){
Contact contact=(Contact)it.next();
System.out.println("ID IS : " + contact.getId());
System.out.println("FirstName IS : " + contact.getFirstName());
System.out.println("LastName IS : " + contact.getLastName());
System.out.println("Email IS: " + contact.getEmail());
}
session.close();



you will get out put
i am also facing similar problem can any one help me how to workout this issue.
thanks i got solution for this
priviously i didn't added transaction in that
like
Transaction tx = session.beginTransaction();
and
tx.commit();--this shoud be after session.save
and problem is solved
hi,

i have run a hibernate example that has been given in rose india.com

programm is running perffectly with out any errors
in console its showing as

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Inserting Record
Done
Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?)

but nothing inserting in database and iam using mysql database.

Prabhakar Bokka wrote:hibernate.cfg.xml should be placed in the source directory of your project.
If you are using package structure, it should be out of packages, not beside your class file.
If you want to place beside your class file, you have to mention the path.

SessionFactory sessionFactory = new Configuration().configure("path").buildSessionFactory();




hi thanks for your reply

but i have placed that inside src directory still its showing the same error

my directory structure is

src
inside src i have config file and packges inside those package i have java files and contact.hbm.xml file
hi

i have run the basic hibernate sample that have been give in the net but its giving
Hibernate.properties not found

And i have double checked hibernate.cfg.xml nothing wrong in that

can any one help me how to resolve this issue

Configuration file is


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- DO NOT EDIT: This is a generated file that is synchronized -->
<!-- by MyEclipse Hibernate tool integration. -->
<hibernate-configuration>

<session-factory>
<!-- properties -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="show_sql">true</property>

<!-- mapping files -->
<mapping resource="com/test/contact.hbm.xml"/>

</session-factory>

</hibernate-configuration>