Struts - Hibernate

Hi,
I am currently working on a small (for me quite large) project with Struts.
Some basic Information
I am quite new to J2ee applications but decided to work with Struts, because there are more references of tutorials and I have little experience in it.
For O/R mapping I use Hibernate.
Now my Question:
I represent my tables (stored in a MySQL database) as POJO and call them Business Objects (I am following the pattern, supposed in the book "Programmin Jakarta Struts").
Anyway, I do not intend to send this BOs to the action since they often contain a lot of data I won't use.
Therefore I planned to create single ValueObjects which is created by a ServiceInterface and which would contain, for example a person's name and sirname.
If I need a more detail description I' will create another ValueObject wich extends the person's "BasicView" to a detail view.
But the detail view is actually (in my app) nothing but the BO itself rewritten in another class.
So I don't know if its a good approach.
But therefore I am asking some experts, namely you!
Any help would be appreciated
Peter
Message was edited by:
Peterson

I am quite new to J2ee applications but decided to
work with Struts, because there are more references
of tutorials and I have little experience in it.If you are new to J2EE, then avoid Struts and Hibernate AT ALL COSTS! They are horrible to work with and only cause pain, ESPECIALLY if you're doing a small project. Struts/Hibernate are buzzwords and everyone rushes in to use them, but mark my words, if you go down that path it will take you twice as long to code your app.

Similar Messages

  • Struts, hibernate, mysql problem

    I am using eclipse, struts, hibernate, mysql, tomcat to run my web application. When I try to run more than one application that using hibernate, then all the application will hang. I am only able to run one application at a time and keep changing the host in server.xml if I want to run other application that use hibernate.
    This problem occur only when I run more than one application that using hibernate. So is anyone know why does this happen??? help plx..........

    http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch13.html

  • Struts-Hibernate Postgresql problem

    Hi all!,
    i have been developing a web application using struts-hibernate concept with postgresql as database., (Postgres- 7.3.2, Hibernate- 2.0, MyEclipse     - 3.1.2)
    When i insert the value the following error occurs,
    root cause
    java.lang.ArrayIndexOutOfBoundsException: 1
         org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:143)
         org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:65)
         org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:451)
         org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:281)
         org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
         org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:179)
         org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:165)
         org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:80)
         org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:57)
         org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:174)
         org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:226)
         org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
         org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
         org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
         org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
         org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
         org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
         com.etm.manager.DistrictLoginUserManager.saveDistrictLoginUser(DistrictLoginUserManager.java:162)
         com.etm.struts.action.DistrictLoginEditAction.saveDistrictLogin(DistrictLoginEditAction.java:60)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    thanks in advance,

    Here is my code:
    public void saveDistrictLoginUser(DistrictLoginUser districtloginuserValue) {
              // a Hibernate session
              Session session = null;
              Transaction tx = null;
              try {
                   // get session of the current thread
                   session=ETMSessionFactory.currentSession();
                   tx = session.beginTransaction();
                   DistrictLoginUser districtloginuser;
                   if (districtloginuserValue.getDistrictloginid() != null && districtloginuserValue.getDistrictloginid().intValue() != 0) {
                        districtloginuser = (DistrictLoginUser)session.get(DistrictLoginUser.class,districtloginuserValue.getDistrictloginid());
                        if (districtloginuser != null) {
                             districtloginuser.setDistrictid(districtloginuserValue.getDistrictid());
                             districtloginuser.setDistrictusername(districtloginuserValue.getDistrictusername());
                             districtloginuser.setDistrictpassword(districtloginuserValue.getDistrictpassword());
                             districtloginuser.setDistrictfirstname(districtloginuserValue.getDistrictfirstname());
                             districtloginuser.setDistrictemail(districtloginuserValue.getDistrictemail());
                             districtloginuser.setDistrictdesignation(districtloginuserValue.getDistrictdesignation());
                             session.update(districtloginuser);
                   else
                        districtloginuser = new DistrictLoginUser();
                        districtloginuser.setDistrictid(districtloginuserValue.getDistrictid());
                        districtloginuser.setDistrictusername(districtloginuserValue.getDistrictusername());
                        districtloginuser.setDistrictpassword(districtloginuserValue.getDistrictpassword());
                        districtloginuser.setDistrictfirstname(districtloginuserValue.getDistrictfirstname());
                        districtloginuser.setDistrictemail(districtloginuserValue.getDistrictemail());
                        districtloginuser.setDistrictdesignation(districtloginuserValue.getDistrictdesignation());
                        session.save(districtloginuser);
                   tx.commit();
              } catch (HibernateException e) {
                   e.printStackTrace();
                   // it is recommended to roll back the transaction after an error occured
                   if (tx != null) try {
                        tx.rollback();
                   } catch (HibernateException e1) {
                        e1.printStackTrace();
              } finally {
                   try {
                        if (session != null) session.close();
                   } catch (HibernateException e1) {
                        e1.printStackTrace();
    here when i commit the tx it gives the error.,

  • Struts+hibernate+spring clarify the framework and layers

    i am did Struts Hibernate and Spring integration using the following url
    http://www.roseindia.net/struts/hibernate-spring/index.shtml
    i want to know is it mvc architecture ?
    how many layers it have ?
    any one know ple clarify me

    i want to know is it mvc architecture ?What do you think? Do you know what mvc is? Do you see any of the "m", "v" or "c" in there?
    how many layers it have ?What layers can you see in it yourself?

  • What is the design pattern for web application with struts & hibernate?

    Hi everyone,
    I am new to web application developement.I am using struts for MVC framework & Hibernate for ORM framework.I am little confused that struts used bean representation for collecting form fields(Bean 1),value objects(DTO) for passing value to the JSP(Bean 2) & hibernate use the bean like representation for persistent object(Bean 3).Whether we must use all the bean's which are similar to each other or any reusable bean recommended?

    I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
    I always use the marner .exe wrapper:
    http://www.megaupload.com/?d=FYZAVM77
    and inno installer:
    http://www.jrsoftware.org/isinfo.php
    They're both free to use and I've had no problems with them. Another wrapper is Javaround:
    http://sourceforge.net/project/showfiles.php?group_id=234356

  • Struts+hibernate+Oracle?

    ***log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).***
    ***log4j:WARN Please initialize the log4j system properly.***
    ***Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection***
    ***     at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)***
    ***     at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)***
    ***     at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)***
    ***     at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)***
    ***     at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)***
    ***     at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)***
    ***     at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)***
    ***     at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)***
    ***     at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)***
    ***     at demo.dao.BookDAO.add(BookDAO.java:17)***
    ***     at demo.dao.BookDAO.main(BookDAO.java:101)***
    ***Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection***
    ***     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)***
    ***     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)***
    ***     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:273)***
    ***     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:318)***
    ***     at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:343)***
    ***     at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:147)***
    ***     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)***
    ***     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)***
    ***     at java.sql.DriverManager.getConnection(DriverManager.java:582)***
    ***     at java.sql.DriverManager.getConnection(DriverManager.java:154)***
    ***     at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.jav*a:110)**
    **     at org.hibernate.jdbc.ConnectionManager.o*penConnection(ConnectionManager.java:423)*
    *     ... 6 more*
    Edited by: Darryl Burke -- non-English text removed from subject line

    Hello,
    the language of these forums is English.
    We don't mind the non-English message within the Exception text itself, after all, you copy/paste them from your actual computer, but at least the title of the topic, and your question, should be spelled out in English.
    Oh, and I deliberately mentioned both a title and a plain-text question. I don't read your language, but I'm quite sure that the ~20 characters don't accurately describe yet your context, the problem you are trying to solve, and the attempts you have done already to solve it on your own.
    Best regards,
    Jérôme (a non-English contributor)
    Edited by: Darryl Burke -- non-English text removed from subject line

  • What do I download for Struts/JSP/Hibernate?

    My organization has purchased a five-user license for "Workshop" and I would like to use it for Struts/Hibernate/JSP development. However, it's not clear what I need to download and install.
    I tried downloading and installing both of these files:
    workshopstudio102_win32.exe
    workshop102_win32.exe
    In both cases, after the dust settled there was no application called "Workshop" on my Windows XP system.
    There is now something called "WorkSPACE Studio 1.1." ("Space," not "shop.")
    What is "WorkSpace Studio?" I never heard of it before I ran this installer.
    What is the difference between "Workshop Studio" and "Workshop for WebLogic?"
    What do I download to get Eclipse-based Struts/JSP/Hibernate development tools?
    How do I install it?
    Thanks,
    Ethan
    Edited by ethanmichaels at 03/26/2008 4:48 PM

    Hi Ethan,
    The license you have purchased is for WorkshopStudio 10.2
    This allows you to develop Struts/Hibernate/JSP applications against both BEA and non BEA servers.
    Workshop for WebLogic allows users to develop applications against BEA WebLogic Servers and does not require a special license
    More information on Workspace Studio is available at http://edocs.bea.com/wlw/docs102/workspaceFAQ.html
    Hope this helps
    cheers
    Raj

  • Let me know the best Ebook for Strutts,Hibernate,Spring

    Hello Dude,
    Please give some good book details for Struts , hibernate, Spring .
    Thank a lot in advance,

    corlettk wrote:
    georgemc wrote:
    I don't know of any e-books on those subjects. Maybe you'll just have to invest actual money in your career, like the rest of us
    The Hibernate bible is available as a PDF, and (IIRC) it's about half the price of the treeware version, and is delivered to your (broad-band) door in under 30 seconds. Beat that [Mr Carrier Pigeon|http://hungrybeast.abc.net.au/stories/great-pigeon-race]!
    Usually when someone asks for "e-books on struts" or anything, they implicitly mean "free". I could be wrong about the OP of course, in which case I apologise. But let's just see, shall we....

  • What login security&encription are good for struts...?

    hello friends,
    I am developing a struts+hibernate application which
    contains a login page. I am not sure of which tools or API's to use for logn
    Authentication and encription.
    Can any bady suggest me which is best for login Authentication and what way
    can i proceed for secured login for WebApplication.
    Ajay

    HANRAM wrote:
    hello friends,
    I am developing a struts+hibernate application which
    contains a login page. I am not sure of which tools or API's to use for logn
    Authentication and encription.
    Can any bady suggest me which is best for login Authentication and what way
    can i proceed for secured login for WebApplication.
    AjayFor JSP you can use JAAS or form based.

  • MVC with Struts?

    If you are going to implement the MVC pattern in a webapp, what is the best framework to use?
    I've done a tutorial with Struts. Is that a good framework?
    Is there any disadvantages by using such frameworks?

    If you are going to implement the MVC pattern in a
    webapp, what is the best framework to use? None if you can do without it. The best solution is always the simplest. But you'd have to provide some requirements to get a better answer. Let me just say I've seen many projects that simply read/write small amounts of data from the database and display it on a web page, yet the architect will throw in struts, hibernate, etc. and almost all of the time (IMO) it's overkill.
    I've done a tutorial with Struts. Is that a good
    framework?Some people love it. Some people hate it. IMO it has many, many problems and I don't care for it one bit. However, it's very popular and lots of people use it, so it's not a bad skillset to have.
    Is there any disadvantages by using such frameworks?There are tons of disadvantages:
    1. The API is external (i.e. out of your control) so when it breaks you can't do anything but hack the source.
    2. Performance can be a problem, since you've got an extra layer of software to run through, but usually isn't. Struts for example isn't going to bog you down.
    3. It costs time (i.e. $$$) to train and come up to speed on how to use these frameworks. If you already know Java and have a small project you could likely complete it in the time it'd take you to learn struts.
    4. Compatibility. When the latest version of struts comes out for example, you might want to upgrade to get the latest features, but you might find it breaks the old API and now you have to fix a bunch of code because it's not backwards compatible. That's probably rare, but it's happened to me more than once with struts.
    5. Struts documentation (IMO) is horrible (maybe it's better today? i haven't used it in awhile) and it's not fun to learn.
    6. Struts error messages are ridiculous and it's often very difficult to figure out what went wrong. Whereas in core Java I find the error messages to be very helpful in telling me what I did wrong.
    The list goes on and on and on. Frameworks are bad news for many projects and then again they are saviors for others.

  • JDeveloper 10.1.3  preview and Hibernate 3.0

    I'm testing JDeveloper Preview 10.1.3.0.2.223 and find some problems when using hibernate 3.0
    When I'm using with OC4J, some packages conflicts and Hibernate don't work.
    I hava to rename <jdevhome1013>\webservices\lib to <jdevhome1013>\webservices\libold
    and replace the file <jdevhome1013>\j2ee\home\lib\asm.jar from file asm.jar that folloies Hibernate 3.0
    So, I'd like to know if it's a know bug, a unknow bug or JDeveloper/OC4J won't support applications with Hibernate?
    Thanks.

    Jim, you are my Idol!!!!
    I'm evaluating JDeveloper (for the first time, not migrating from a previous version), so I'm realy brand new with this environment.
    Now that I see that you (maybe) go in the same direction I go, please, give me your opinion about one point.
    I can see JDeveloper gives the developer a lot of code-generating advantages if you accept using ADF and the rest of the whole Oracle proposed environment. Specifically, the amazing speed you can get on binding the three tiers: database (with connections and drag-and-drops for tables), Business Objects and logic (with middle tier wizards) and presentation tier (with that great drag-and-drop jsp creation tool). I think all this tools can really make a speed-difference…
    But… I don’t like “proprietary solutions”, I like open-source-standards, so… I prefer Hibernate (3.0.5), any structural-framework, like Struts or whichever, and for example JSF for the presentation tier (still evaluating this point)
    I’ve seen that tutorial about using Hibernate + JSF with JDeveloper (http://www.oracle.com/technology/pub/articles/vohra_hibernate.html) but it didn’t satisfied me too much: It’s written for Hibernate 2.1.8 and migrating to Hibernate 3.0 is not possible without a headache…
    So finally, I decided to import a “neutrally” built Struts + Hibernate 3.0 project and try to “speed it up” using JDeveloper. And then it was when I hit my head against this problem you’ve just solved! Jiiiimy, Jiiiiimy!!!! :-))))))
    So, finally, my questions:
    1)     Would you say that if I’m developing this within this kind of tools, then JDeveloper still gives me much of the speed It gives in the first case? Can I drag-and-speedy-drop from database to model tier, or from model to control or to presentation tiers without introducing any Oracle libraries in my project? How? Do you have any example?
    2)     In your opinion, which is the best environment for speeding up this whole development process: JDeveloper, Eclipse + Exadel or any other plug-in environment? Any other you may prefer?
    Hey, again, thanks a lot!! Oracle should take note of the bug you detected (and maybe pay you some bucks for it :-))
    Fer

  • Struts not good for high-load requests?

    I need a small advice from somebody with experience writing high-load web applications. I worked in Java servlets and was doing a bit in Struts but this is my first bigger project without working in the team so now need to decide the technology.
    I have to do the J2EE project that has simple business logic but will take some time for database and I/O operations and the maximum number of users is expected to be big, a few hundreds of them in the same time. Struts + Hibernate combination is very comfortable for working but am now confused may I use it for this purpose because I heard that Struts' action is single-threaded. If action is single-threaded, does it mean that hundred requests will make a queue and wait for each other's I/O processing completely finishes before getting next request? If so, then I shouldn't use Struts but ordinary servlets, right?
    Any hint will be very useful, thanks in advance!

    Same problem here (I also do panoramas).
    Actually I can't even import my files into Aperture.
    Other, slighly smaller, files (PSD or TIFF) show similar problems than yours just that my Previews or Thumbnails decide to turn blue, displaying the "Unsupported format" message - after sometimes weeks of working fine.
    But anyway, most of my files are usually too large to save out from Photoshop as PSD or even Tiff. PSB is unfortunately not supported by Aperture (according to the tech specs) and Aperture cannot indeed see the .psb files …
    I shall hope that larger files in general and the large file format will be reliably supported by v3 (likely out right after Snow Leopard).
    My current workaround:
    For processing large size files I avoid Aperture altogether anyway, using Bridge/Photoshop (+ Photomatix and/or PTgui) instead.
    Frankly, for me this combination works pretty well.
    The final image will be saved out as HiQuality JPEG for Aperture, solely for the purpose of file management.
    That JPEG will be stored in the same folder as the .psb and the other files (braketing and/or pano images). So by using "Show in Finder" I can quickly find the Photoshop original.

  • Is Struts Passe'

    I've just install the J2EE 1.4 app server. As I was going through the tutorial, I noticed a few things. Firstly, the Admin Tool for the J2EE app server seems to be pretty keen at doing a lot of the architectural work.
    There are utilities available in the admin tool for User/Group/Role managements, Deployment, and also Entity Relational fuctionality as well as a host of other management functionality. This raises some question in my mind concerning some of the third party tools like: Struts, Hibernate and iBatis.
    Let's look at Struts for now. Struts provides an app framework for MVC implementation. However, the examples seem to suggest that alot of the framework is being setup for you when the admin sets the app up in the admin tool. Does this make Struts a redundant tool?
    Likewise the Admin tool allows the App Architect to import info from the persistant store and creates the relational EJB modles for you. So why would I then need Hibernate or iBatis?

    I've just install the J2EE 1.4 app server. As I was
    going through the tutorial, I noticed a few things.
    Firstly, the Admin Tool for the J2EE app server
    seems to be pretty keen at doing a lot of the
    architectural work.It has tools to help you do it, but it doesn't read your mind.
    There are utilities available in the admin tool for
    User/Group/Role managements, Deployment, and also
    Entity Relational fuctionality as well as a host of
    other management functionality. That's standard issue Java EE. WebLogic has admin tools, too.
    This raises some
    question in my mind concerning some of the third
    party tools like: Struts, Hibernate and iBatis.
    Let's look at Struts for now. Struts provides an app
    framework for MVC implementation. However, the
    examples seem to suggest that alot of the framework
    is being setup for you when the admin sets the app up
    in the admin tool. Where do you see a tool that writes the web MVC layer for you?
    Does this make Struts a redundant tool?No. Please see answer to above question.
    Likewise the Admin tool allows the App Architect to
    import info from the persistant store and creates the
    relational EJB modles for you. So why would I then
    need Hibernate or iBatis?That is an alternative to Hibernate or iBatis, but that doesn't mean those are redundant. What if you don't want your persistence layer to be EJBs? (There are good reasons to not use EJBs.) Do you understand all the implications of that choice?
    None of the tools you cited are redundant. The admin tools do not write the app for you.
    %

  • App won't deploy properly in Tomcat

    I'm working with Tomcat 5.5.17 on Win2K using JDK 1.5.0_07. I've got a Struts / Hibernate app that I'm trying to deploy.
    It deploys and runs fine in WebLogic 8.1.3, no problem.
    However, when I try to load it on Tomcat and access the first JSP page, it diverts to my error.jsp page and presents the message:
    Unidentified Server Error
    Servlet action is not availableI've checked the Tomcat logs and there is nothing in there. Even it I reload the page to get the error several times, Tomcat does not provide any details in the logs.
    I've checked to make sure that web.xml and struts-config.xml are valid. As far as I can tell, they are.
    Has anyone seen this behavior before? Any hints on troubleshooting?
    Thanks,
    J
    Message was edited by:
    jarrodmenoube

    Had a look around the message boards and found this link, has solved the problem.
    http://www.apple.com/support/downloads/proapplicationsupport31macosx104.html

  • Java.lang.NullPointerException when executing search

    I am doing the hibernate tutorial at http://www.roseindia.net/struts/struts-hibernate/struts-web-modules.shtml and have made the following hibernate config files and have deployed it on with the following hibernate config file to make the connection with oracle do I need to add any jars to the JBoss Application Server or is the following connection sufficient:
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
    <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
    <property name="hibernate.connection.url">jdbc:oracle:thin:@10.5.80.43:1526:orcl</property>
    <property name="hibernate.connection.username">system</property>
    <property name="hibernate.connection.password">password</property>
    <property name="hibernate.connection.pool_size">10</property>
    <property name="show_sql">true</property>
    <property name="dialect">org.hibernate.dialect.OracleDialect</property>
    <property name="hibernate.hbm2ddl.auto">update</property>
    <!-- Mapping files -->
    <mapping resource="/roseindia/net/dao/hibernate/Tutorial.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    since I am getting the error
    java.lang.NullPointerException
         roseindia.web.SearchTutorialAction.execute(Unknown Source)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

    fixed it had to copy the jar files for the jdbc stuff

Maybe you are looking for