Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F4B81D82 for ; Tue, 26 Apr 2011 14:05:01 +0000 (UTC) Received: (qmail 62120 invoked by uid 500); 26 Apr 2011 14:04:58 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 62091 invoked by uid 500); 26 Apr 2011 14:04:58 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 62083 invoked by uid 99); 26 Apr 2011 14:04:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 14:04:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of davelnewton@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 14:04:50 +0000 Received: by iwr19 with SMTP id 19so799289iwr.35 for ; Tue, 26 Apr 2011 07:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Ewtu9IVJwnB6Pe68zxEOwg6ahJe5557MN6ZQXCvh1rc=; b=dcKhN2wkiRDlpylELpB5ftBjh15QUOg+uyJ8O5stWfcIGEUHmwd9BcoPQIGajphKU6 B41eQAI1GF1GbTD8yIvZ3e2NZIFE1QKbY2QsSO68MyScSPQzXKejuRmlbzhIrwfdDn9s 9pCvRZw8RBV3W/1WMqMlReeSzn8icOks7c1F8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iZ8/ZWlhGG6oiIFAAvL0fe68DUW3b56n8wgL0dfmo4ikrK5Uix5ZYkCLsuBe34kZpx IWsJYEbitV1HYeaTT/dXYz9ABkGC4mju/Mh5sVOLO/FaD0XjjhFPcrcSbLuCDCPnMD1B qD9Xr2sWb7lNpJW7k7nLWUbuDv0Rg3miV435o= MIME-Version: 1.0 Received: by 10.43.69.138 with SMTP id yc10mr926200icb.74.1303826669218; Tue, 26 Apr 2011 07:04:29 -0700 (PDT) Received: by 10.42.126.82 with HTTP; Tue, 26 Apr 2011 07:04:29 -0700 (PDT) Received: by 10.42.126.82 with HTTP; Tue, 26 Apr 2011 07:04:29 -0700 (PDT) In-Reply-To: <277983.87865.qm@web33605.mail.mud.yahoo.com> References: <277983.87865.qm@web33605.mail.mud.yahoo.com> Date: Tue, 26 Apr 2011 10:04:29 -0400 Message-ID: Subject: Re: SEVERE: Exception starting filter struts2 From: Dave Newton To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=bcaec51d23d677aceb04a1d2cd22 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51d23d677aceb04a1d2cd22 Content-Type: text/plain; charset=ISO-8859-1 Just because ant or an ide sees a class doesn't mean the web server does when you're deploying or starting up. Almost certainly a classpath issue with the server, almost certainly not Struts, just like the exception indicates. Dave On Apr 26, 2011 8:52 AM, "alex zaim" wrote: > Hello. I'm trying to make a simple hibernate setup, but i encounter an error when i start the server (Apache). > > Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext filterStart > SEVERE: Exception starting filter struts2 > java.lang.NoClassDefFoundError: org/hibernate/Session > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) > at java.lang.Class.getConstructor0(Class.java:2699) > at java.lang.Class.getConstructor(Class.java:1657) > at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:414) > at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365) > at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479) > at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275) > at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) > at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204) > at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) > at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371) > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) > at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) > at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) > at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273) > at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254) > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372) > at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98) > at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4461) > at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5133) > at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5128) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: org.hibernate.Session > at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) > at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) > ... 27 more > Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext startInternal > SEVERE: Error filterStart > Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext startInternal > SEVERE: Context [/Translators] startup failed due to previous errors > > > Now i know that this looks way to easy to spot. It's obvious that i am missing a class. But the problem is that the class is right there where it should be. I mean, Ant sees the class and gives no compilation errors, also my IDE (Eclipse) sees the class (from the build path), but when i start the server, it gives my that error. > I assume it has to do with struts since the filter can not be initialized. > > Another interesting thing is that if i remove the jar (which contains the specific class) from the project's build path, the server will launch with no erros, but will fail when an action is triggered that uses that class. > > --bcaec51d23d677aceb04a1d2cd22--