Hibernate+Struts

Hi everyone
I've already posted this java programming subforum but they adviced me to post in databases or in struts forums, so I repeat it here:
First of all thanks for reading my post.
I've been looking for it on internet for a week but there are different opinions about it. Is it necessary to develope a plug-in in order to integrate hibernate with struts or is it enough adding the hibernate.cfg.xml and hibernate libraries into the project?? I made the second choice.
The fact is that my hibernate project works correctly, but when I integrate it with struts in order to access the database from the web browser, i get a null pointer exception error just when it tries to create the sessionFactory. I have placed de hibernate.cfg.xml in webapps/projectname/src/hibernate.cfg.xml
Looking around, I've seen that the hibernate.cfg.xml in the hibernate project is
<hibernate-configuration>
<session-factory>
<property name="connection.username">root</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/pymmet
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.password">tilour</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="myeclipse.connection.profile">pymmet</property>
<mapping resource="pymmet/Presupuesto.hbm.xml" />
<mapping resource="pymmet/Factura.hbm.xml" />
</session-factory>
</hibernate-configuration>
but in the hibernate.cfg.xml that's been copied into the project in webapps (tomcat), the mapping resources are missing.
Could it be the problem? If it weren�t, anyone knows why is giving me that error?
Thank you very much

I second Duffy's comments on the matter of your screen name. Pick one and stick with it. If you forget your password there's a reminder link.
Your previous question:
http://forum.java.sun.com/thread.jspa?threadID=5204193&messageID=9815526
Right. Struts and Hibernate have NOTHING to do with one another. One's an MVC web framework and the other is an ORM framework.
Furthermore, nothing about either Struts or Hibernate will cause the hibernate.cfg.xml file to be amended during deployment.
If you've got a different set of contents in your configuration file at the destination from the one you had at the target then:
1. Some other process is amending it during deployment (unlikely)
2. You're not deploying the file you think you're deploying (likely)
3. You're not deploying anything, you just think you are (fairly likely).

Similar Messages

  • EJB, Hibernate, Struts

    I want to implement web based project for complex bussiness logic fo finance
    I thought of using EJB but somany people advise me to not use it because of its complexity
    and try for hibernate or Struts.
    so can you give me some views regarding to comparison between EJB,Hibernate,Struts
    or some points that help me to select one of them based on my requirement ?
    on which criteris I can do selection amoung them ?
    thanks in advance

    Question 1:
    what do you use/choose and why:
    EJB+struts or Hibernate ?Spring and Hibernate.
    Question 2:
    Which is the best IDE for Hibernate?IntelliJ is the best IDE for everything.
    %

  • XML , hibernate & struts (or JSP)

    Hi all,
    Wishes for the day.
    I have a question about how to start. I need to develope an a programme which parses the given RSS document (http link - online) and store the data of RSS document in SQL database. The columes would be the tags of the given RSS document. Than I need to display the results from the database to the JSP page using Struts or JSP. I am suppose to use Hibernate to perform database oprations (storing,retriving and editing).
    If anybody have time, than please tell me how to start. Please stick with me.

    Integrating Hibernate with JSF in JDeveloper 10.1.3
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html

  • Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.

    In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
    When I try to open project, I get an error as below.
    Target URL -- http://127.0.0.1:8988/PSSO/index.html
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
    21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
    at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    what is interesting is that
    first query with hibernate works, but second query does not works.
    My JDeveloper as below
    CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
    Java(TM) Platform 1.5.0_15
    Oracle IDE 11.1.1.0.22.49.49
    Versioning Support 11.1.1.0.22.49.49
    I wonder if it is related to struts and jta jars defined twice.

    There might be a problem with the OC4J not finding the hibernate library you are trying to use.
    Try setting the library also in the tools->embedded OC4J preferences.

  • Need an example on Hibernate-Struts

    Hi,
    I need a working example on Hibernate with Struts.
    I am trying to do an example, but not getting.
    So, if anybody is having pls post it.
    Regards
    Veeru

    Hi,
    Workflow document information:
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    &**********Reward points if helpful**************&

  • SEEKING IDEAS FOR A SMALL PROJECT

    I am planning to do a small project in JAVA programming this winter to hone my JAVA skills but I can't seem to set my eyes on anything.
    please recommend a few good projects along with their descriptions.
    It should also have some practical aspect.

    Or a solitaire, you know, that balls-in-holes thing.:) What kind of solitaire have you been playing?? :D
    @OP:
    A small project I sugest is something you can learn much on some technology out there. At the end you need to know these technologies to get (a better) job.
    Some cool technologies I have seen out there at the moment are Hibernate, Struts, Spring, etc. But trying to learn these technolgies does not mean you have to make somethng that makes sense in the end of the day, but just something to learn how thing work ... in short something to play with.
    Further and cooler technologies out there (not hard to say) involve no codeing at all. Take Ant, Cruise Control, Maivem, etc. This are all technologies that will teach you how to set up a project, and believe me you could be needing those when coming to work somwhere.
    Also very intristing to play with there are JUnit, JMeter (NFR Testing). I Guess you heared about the first one, the other one I only got to know recently, and believe me it is very noce to know how to work.
    In short my above comments mean do not just start doing a project right forward unless you still do not know anything on J2SE, in which case again I would sugest for you to create your own set of example on IO, Sockets, RMI, Swing, etc. But learn technologies. No one cares to see in your CV, "I did a personal project that does so and so" unless the so and so is something realted with NASA. But everyone is interested in having someone that say "I know this technology and the other"
    However, if you decide to ignore all the above of my comments and still want to do your own project, then my sugestion is at least read UML, and build a class diagram first. At least you would learn something on program design as well.
    regards,
    sim085

  • 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

  • Shine J2EE Appplication Framework - A New MVC -JWMS-Ajax Framework

    Hi Dears
    Shine is a Java-J2EE Application Framework/JWMS(Java Web Model Service)Framework/MVC Framework/Service Oriented Framework. Shine Includes Ajax Libs/Server API/J2EE Architecture. Shine Supported JSF/Spring/AspectJ/Struts/Hibernate/...
    You can use Shine Framework for Implement ERP Web Based Application, Web Based Operating System, WFM Web Based Application, CRM Web Based Application, HRM Web Based Application, BPR Web Based Application, Or ... Web Based Application, Shine Registered in Source Forge.
    This Framework is a Java Service Oriented Framework for Web Based Project. This Framework include:
    * MVC (Model View Controller)
    * Ajax
    * Service Oriented Scope
    * JWMS (Java Web Model Service)
    Shine Framework is a Java Web Model Service Framework.
    Shine Framework is very easy, stable. You can use other Framework by Shine Framework:
    *Hibernate
    *Struts
    *Spring
    *And Other Framework
    JWMS And Shine J2EE Framework ?
    JWMS is a J2EE Architecture for implement Service Oriented Web-Based Appliction you can get more information about this and Shine J2EE Application Framework by -> J2EE And Service Oriented Programming :
    http://j2sos.googlegroups.com/web/J2EE_And_Service_Oriented_Programming+(English).doc?gda=VCp-YWkAAABaK1bFJn7XMhSpdkjvrT6Pd5MA3H6uh5taxEUxR6gwSUWwa05VcrqgHRSC0l_xcf_5FoxLEBXNbyq4-bBifvraWOZGQE6LgzeTU5Q6eFny4M-fIZvKNC5H8bRWhAn1psCECKgQbmraGdxlZulaYnsh
    Or
    http://j2sos.googlegroups.com
    Report: http://sourceforge.net/tracker/?group_id=244136
    Forum: http://sourceforge.net/forum/?group_id=244136
    News: http://sourceforge.net/news/?group_id=244136
    Wiki: http://shine-app.wiki.sourceforge.net/space/pagelist
    Rank: http://sourceforge.net/project/stats/rank_history.php?group_id=244136&ugn=shine-app
    Shine J2EE Framework Rank in Sourceforge is 14!
    Shine J2EE Framework: http://sourceforge.net/projects/shine-app/
    Site: www.J2SOS.org
    Special Thanks Oracle! For this Part! Your Site is very Active about J2EE - Java!
    This paper is no image paper !!!!!!!!!!!!!!!!!!!
    J2EE and Service Oriented Programming
    Authored by: AmirSam Bahador
    Level:
    Advanced
    Contents:
    Introduction
    - The purpose of compilation this essay
    Chapter 1: Basic concepts of J2EE
    - Servlet and JSP
    - MVC
    - MVC or JWMS? That is the problem? Perhaps both!
    Chapter 2: Basic concepts of Shine Framework
    - What is "Shine Framework�?
    - The components of Shine Framework
    - Implimentation of an application by Shine Framework
    Chapter 3: The objects of Shine Framework
    - The types of objects in Shine Framework
    Chapter 4: Engineering & Communication items
    - The communication of Shine Framework with the other
    existing Frameworks
    - The major purpose of Shine Framework
    Introduction
    The purpose of compilation of the this paper
    A few years ago, when I was the software architect of a big project with J2EE, I advised some of the modern tools of that time to the project manager. He acknowledged it. Therefore, we began deploying our Enterprise on Java platform. However, we encounterd with many problems, as we got ahead the project. Our tools were included Struts Framework, Spring Framework & Hibernate.
    I convinced that MVC architecture is the best option to develop macro projects! However, I believe it now, as well. Couldn't it be more completed? In developed Enterprise projects, an advanced architecture is required to divide the project, technically. The project was successfully finished after one year, but my mind was busy with it for a long time!
    Then, I began implementing an Application Framework and registered it in Sourceforge.net as an Open Source Framework. I developed some Enterprise projects & some other J2EE frameworks, as well. I achieved a good result! The velocity of implemention & developing projects increased up to 50%. Subsequently, by cooperation of my elected students who had worked with Application Framework, I established an organization, named J2SOS, to protect & develop this Application Framework.
    Fortunately, my students were so skilled that each took a chief task in big J2EE projects.
    Their experiences had a practical affect on development of Application Framework as well as the organization.
    Therefore, it is required to write down my & my yesterday students (my today co-workers) experiences. This was the outset to write the present paper!
    Chapter 1
    The basic concepts of J2EE
    Purposes
    In this chapter, we do our best to introduce J2EE basic concepts.
    Servlet & JSP
    If you ahve ever worked with JSP & Servlet, you know that Servlet is so proper for processing functions but there are particular problems with it in displaying functions.
    JSP is applied reverse to Servlet. Thus, what is the solution? To apply both JSP and Servlet together!
    What is MVC?
    MVC is an easy way to use JSP & Servlet together. In MVC architecture, the request will be processed by a Class (Servlet) and the appropriate response will be showen by JSP.
    n the above Servlet Class, the validation operation, etc will be done.
    Nowadays, there are numerous Frameworks which will assist you to use MVC Framework architecture. Struts Framework is the most well-known one.
    MVC or JWMS ? That is the problem! Perhaps both!
    MVC is a powerful architecture, but it is required an advanced architecture to implement developed projects.
    Today, web applications are well developed which complicatethe work for programmers & developers.
    To clarify it, see Google site! Google Web Application enjoys numerous services, each have a special service for the users.
    For Instance, Gmail service, E-Mail or by SearchEngine, the users can search for websites, pictures, etc.
    These services have certaily close communication with each other.
    If the services do not use a particular architecture, the Google will encounter with various problems.
    In Service Oriented architecture, each part of the program is a service programme. For example, E-Mail service, SearchEngine service, etc.
    for get full this paper plz goto : J2EE And Service Oriented Programming
    in :
    http://groups.google.com/group/j2sos
    Or
    http://j2sos.googlegroups.com/web/J2EE_And_Service_Oriented_Programming+(English).doc?gda=-C13JmkAAABaK1bFJn7XMhSpdkjvrT6PLb1WFhhPKkBftsH3LvtvGEWwa05VcrqgHRSC0l_xcf_5FoxLEBXNbyq4-bBifvraWOZGQE6LgzeTU5Q6eFny4M-fIZvKNC5H8bRWhAn1psCECKgQbmraGdxlZulaYnsh

    iabstudio have been engaged in a persistent Usenet and webboard spamming and astroturfing operation since the beginning of this month. Google has the scoop at http://groups.google.com/groups?q=www.iabstudio.com&hl=en&lr=&c2coff=1&scoring=d&start=0&sa=N&filter=0 note in particular the same IP address is used to post both their spam from iabstudio themselves and from people who claim to be satisfied users. If you do not like spamming and dishonest, don't use the product.

  • General: Java has become so vast ... is there a way to join it all.

    This is a generic question and nothing to do with coding, but all to do with Java.
    Personally I am starting to find Java a little bit to vast. For example you have J2SE, J2EE, JDO, then you have Hibernate, Struts, Spring, SWT, and some others which I still don't know of.
    Now (Since I have have much time to waist) I started thinking the difference between the Java Development Environments and Visual Studio.Net (Just to make it a point, I prefer Java, mine is just comparision please).
    When installing VS.net you have all the technologies (.net framework) there at one go. With Java is a little bit different. You install the JDE which may come whit it's own jdk, and then you can continue adding on (Jars) for what else you want to add in your project.
    Now I know that this situation comes from the fact that Java has many different open source projects, while .net does not. However would it be great if there was an IDE that comes with everything (as much as I know eclipse does not, if yes please tell me).
    If this is not possible, is there a place which tells you all the technologies available out there in one list, whith just one click download?
    Again I am not critising Java in any way, I am saying is there a way to make it simpler to program with? I understand the answer can be a blunt no, but why no, or why yes?
    Thanks :)

    and I am sure that projects
    like Eclipse will reach VS.net.
    My view is that it already has.To make my Eclipse copy similar to VS.net (not like it) I had to install a plugin called Lomboz! Reaching is one thing .. overpassing is another, and that is what java needs (from an IDE perspective) to bring fresh programmers to it, programmers that are not coding in Java coz school demands it, but because they prefer it over other languages.
    To simplify the complex you have to streamline. Each
    "simplification" basically lowers the skills needed
    to perform a task. At the lower end just about
    "anybody" can program. This means that also "anybody"
    will program.I totaly agree with you, making things simpler will mean that any one will learn how to program with that language. VB6.0 was just an example of that. However VB6.0 became also the most popular tool when developing fast rapid applications just because of it's simplicity, which mostly came from the IDE.
    So Java programming will be simpler, don't worry. The
    question is will you be satisfied with the salary?hmmm ... I never am to say the truth :) I agree also with this point guess if things get simpler then salaries will go down ... too many people knowing the same thing will mean a lot for companies to choose from.
    However (I can be totally wrong here) doesn't Java (as a language) run the risk of no longer being used by "Most" of the industry just because there are few developers knowing it inside out??
    To download it you do need a bit of time. The J2ME PP
    reference implementation is over 30MB. The CLDC /
    MIDP stuff is over 25MB. That's a lot of download,
    but it's probably used by no more than 5% of Java
    programmers. I suspect Visual Studio .NET is
    primarily distributed on CD - I know the beta I have
    kicking around somewhere was.Well, my last version of VS.net came on 7 CD's and it took GB's out of my hard disk space. Having said that, I believe that in todays time Space and download time are no longer a big issue. But there are people having Dial-Up down there!! so one way I would solve this out would be to make a more interactive download page in which it lets you determine what packages to have in your installation.

  • Classloader in weblogic12c

    I develop a spring+hibernate+struts web application and need to deploy it from a folder to weblogic12c.
    However, after deployment, in Classloader Analysis Tool, 2 jars: WEB-INF/lib/hibernate-core-3.3.2.GA.jar, WEB-INF/lib/freemarker-2.3.15.jar show: The filtering classloader acts as a barrier between the application classloaders and the system classloaders. By configuring the filtering classloader correctly, the application can choose to load certain classes locally rather than from the system classpath.
    Below is my weblogic-application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.4/weblogic-application.xsd">
         <application-param>
              <param-name>webapp.encoding.default</param-name>
              <param-value>UTF-8</param-value>
         </application-param>
         <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
         </prefer-application-packages>
    </weblogic-application>
    What should I do next?
    Thanks

    Have a look at
    http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html
    Instantiating objects of a same class in different subunits will not cause errors, but it is true that, according to the classloading policy (configurable in application server), the behaviors of creational mecanisms such as singleton for example, can vary.
    Bruno
    http://www.practicalsoftwarearchitect.com

  • Include file was not found

    I create a web application using spring+hibernate+struts with cxf in MyEclipse. It works fine in Tomcat.
    Then, I export it as a war file and deploy it to weblogic 12c. However, I get error:
    Compilation of JSP File '/BZWeb/index1.jsp' failed:
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    My weblogic.xml is as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:weblogic-version>12.1.1.0</wls:weblogic-version>
    <wls:context-root>BZWeb</wls:context-root>
    <wls:charset-params>
    <wls:input-charset>
    <wls:resource-path>/*</wls:resource-path>
    <wls:java-charset-name>UTF-8</wls:java-charset-name>
    </wls:input-charset>
    </wls:charset-params>
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    <wls:index-directory-enabled>false</wls:index-directory-enabled>
    </wls:container-descriptor>
    <wls:jsp-descriptor>
    <wls:keepgenerated>true</wls:keepgenerated>
    <wls:precompile>true</wls:precompile>
    <wls:print-nulls>false</wls:print-nulls>
    </wls:jsp-descriptor>
    </wls:weblogic-web-app>
    Is weblogic.xml wrong?

    Also, do you have SSI turned on in IIS? I believe it's a module that you will need to turn on.
    http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7
    Have you opened up the page in a web browser? All I see is the code. It is not rendering in the browser.
    Jim

  • Frameworks

    I am new to JEE and a little lost with frameworks - btw, I know some people swear by what they use, which has made my search a little more confusing.
    I am thinking of Spring+Hibernate+Struts 2 or EJB3+JPA and perhaps Struts 2 as well.
    I understand that Struts 2 is a good framework when developing MVC as it gets rid of (or minimizes) code for controllers etc.... Which is what attracted me to the framework, and many other benefits (ie: Ajax etc...). So I expect that Struts 2 can go along with JEE and is a good choice? Comments?
    Spring and Hibernate (I probably wouldn't bother with one and not the other) are interesting, but it sounds like JEE 5 adopted a lot of Hibernate already.
    My key questions for Spring+Hibernate vs. EJB3+JPA is:
    1). Can Spring+Hibernate be programmed in annotations to the extend of EJB3+JPA (I am not a fan of XML, unless someone gives me great reasons).
    2). Which "set" is better for performance if I intend to scale and expect 10000s of users at one point (might as well dream big).
    3). Why did you choose one over another?
    Btw, I realize that some of the frameworks don't overlap and that some are a bad comparison - I apologize, as I typed EJB3+JPA meaning JEE in general etc.... Also, does Spring+Hibernate move me to Tomcat instead of Glassfish (is that a good/bad thing)?
    I am really eager to buy books and continue learning more JEE technology, so I really appreciate people reading and helping! :D. I love Java...
    MSJ121

    Thank you yawmark for directly answering my questions, and BalusC your point did help me refine my knowledge a little more.
    I think at the moment as both seem similar (Spring vs EJB3), I will likely learn EJB3, but then also learn Spring for the simple reason that the more and more I learn about their strengths and weaknesses the more I see that in reality, both can be used together to leverage their strengths. I also just saw that EJB3 in Action has a chapter on using both together, which should be interesting.
    I am still curious about Struts 2 and I am at the moment leaning towards it.
    I will probably leave Hibernate out of the mix for now, and look into after these two technologies as JPA vs. Hibernate seems to be less of an issue. So much to learn, so much to do, so excited lol.
    MSJ121

  • Which framework(s)/tool(s) for a web 2.0 application ?

    Hello,
    I'm new to Java, so excuse my stupid questions...
    I have to port a win32 GUI application to a web application using Java. The original application is not written with Java and is a full blown multitier win32 GUI application accessing a SQL server database.
    There are some requirement for the new application:
    1) has to use opensource tools and frameworks
    2) has to use JBoss application server
    3) has to use eclipse for development
    4) have a user interface as close as possible to the win32 application
    5) has to use the same (mssql) database
    The question is: which frameworks/tools is best to use in that environment ? JSP, JSF, RichFaces, Spring, Seam, Hibernate, Struts to name a few...
    Regards,
    F. Piette

    800089 wrote:
    Hello Gimbal2,
    As far as I can see, GWT makes application to run on Google servers.Then you should clean your glasses.
    My problem is to select the best framework(s) and tool(s) to develop the application, given the requirement I listed (Eclipse/JBoss/MSSQL/OpenSource). Unfortunately there are so much of them available that it is difficult to select the best one (Well things are relative of course). I don't want to use old technology, nor technology no yet wide spread on the market. I want a technology that many companies are using and for which I can easily find developer on the market.You want the best framework do you? Doesn't everyone these days.
    I'd say...go for JSF. Or if you don't want to, go for spring, or if that doesn't suit you, go for the GWT mentioned earlier. Unless you want to be retro, then go for Struts.
    Then when you've chosen your framework, see how many developers are willing to use it, if not enough choose another framework.

  • 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.

  • Struts plus Hibernate

    I try integrate Struts and Hibernate. I create a simple blank project...
    You can download it from http://rapidshare.com/files/49730760/StrutsPlusHibernate.zip.html ( 20 KB you should add lib) . When I start Tomcat 5.5 I have an exeptions :
    SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@7b6889
    org.apache.struts.action.ActionServlet
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    18.08.2007 13:55:59 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /StrutsAndHibernate threw load() exception
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)What's wrong ??
    Message was edited by:
    Del2

    This is what's wrong:
    ava.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
    I'm guessing that you either didn't put the Struts JAR in your CLASSPATH, meaning WEB-INF/lib of your web deployment, or you didn't declare the servlet in your web.xml.
    %

Maybe you are looking for