Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36771 invoked from network); 8 Aug 2007 01:54:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 01:54:31 -0000 Received: (qmail 5461 invoked by uid 500); 8 Aug 2007 01:54:23 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 5402 invoked by uid 500); 8 Aug 2007 01:54:23 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 5391 invoked by uid 99); 8 Aug 2007 01:54:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 18:54:23 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 01:54:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DD2471404B for ; Tue, 7 Aug 2007 18:53:59 -0700 (PDT) Message-ID: <6317469.1186538039250.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 18:53:59 -0700 (PDT) From: "tommy (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3100) How can I integrate Spring , Hibernate with Axis2? In-Reply-To: <16890938.1186536119873.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518297 ] tommy commented on AXIS2-3100: ------------------------------ Could anyone give a workable sample that demonstrate how Axis2 works with Spring and Hibernate? I'm new to that kind of application. Thanks!!! > How can I integrate Spring , Hibernate with Axis2? > -------------------------------------------------- > > Key: AXIS2-3100 > URL: https://issues.apache.org/jira/browse/AXIS2-3100 > Project: Axis 2.0 (Axis2) > Issue Type: Task > Components: samples > Affects Versions: 1.2 > Environment: winxp , Axis2 > Reporter: tommy > > I have tested my hibernate and spring codes in a single java project, it works. When I added some Axis2 features to it and deploy it to the Tomcat with Axis2.war. It gives me the exception that the server couldnot find the dao.weatherForeforecastDAO, > My structure of .aar is like this, > Package dao: > Weatherforecast.class > WeatherforecastDAO.class > Weatherforecast.hbm.xml > Package init: > SpringInit.class > Package META-INF: > MANIFEST.MF > services.xml > Package service: > WeatherService.class > under root: > applicationContext.xml > hibernate.cfg.xml > The codes in WeatherService.class is, > ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); > WeatherforecastDAO weatherforecastDAO = (WeatherforecastDAO) ctx.getBean("weatherforecastDAO"); > The problem now is that the deployment can find applicationContext.xml but not weatherforecastDAO in context. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org