tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alim <alim...@gmail.com>
Subject http error 404
Date Fri, 18 Sep 2009 09:42:07 GMT

Hi,

I have been trying to install itracker(it is an open source trouble ticket
system available on www.itracker.org) for 1 week now but can't fix the
problem. I am using the following tools

Windows Vista 32-bit
MySql 5.0.45
Tomcat 6.0.20
Jre 1.6

The problem is when i point browser to http://localhost:8080/itracker , the
following error comes out

HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0.20

I even tried with some sample examples but it works fine for those. Tomcat
is installed properly(i can see home page). and Mysql is also running.
I am attaching all logs so you can help me out. Please this is an urgent
requirement, plzplzplz, help me out.

This is what catalina log show

Sep 18, 2009 10:34:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Tomcat
6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\j2sdk1.4.1_03\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Common Files\DivX Shared\;C:\Program
Files\Intel\WiFi\bin\;C:\MATLAB7\bin\win32;
Sep 18, 2009 10:34:52 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 18, 2009 10:34:52 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 654 ms
Sep 18, 2009 10:34:52 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 18, 2009 10:34:52 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Sep 18, 2009 10:34:52 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive itracker.war
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/itracker] startup failed due to previous errors
Sep 18, 2009 10:34:59 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 18, 2009 10:34:59 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 18, 2009 10:34:59 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/100  config=null
Sep 18, 2009 10:34:59 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7139 ms


This is what localhost log show

INFO: Loading Spring root WebApplicationContext
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[persistence-context.xml]: Invocation of init method failed; nested
exception is java.lang.NoClassDefFoundError:
javax/mail/internet/AddressException
Caused by: java.lang.NoClassDefFoundError:
javax/mail/internet/AddressException
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at
org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:317)
	at
org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:297)
	at
org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:280)
	at
org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
	at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:80)
	at
org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:71)
	at
org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:279)
	at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
	at
org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334)
	at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
	at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
	at org.hibernate.cfg.Configuration.add(Configuration.java:675)
	at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)
	at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
	at
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
	at
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1449)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:623)
	at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
javax.mail.internet.AddressException
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 61 more
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Sep 18, 2009 10:34:58 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()


This is what stdout log is showing

10:34:58,315 ERROR [org.springframework.web.context.ContextLoader] Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[persistence-context.xml]: Invocation of init method failed; nested
exception is java.lang.NoClassDefFoundError:
javax/mail/internet/AddressException
Caused by: 
java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at
org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:317)
	at
org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:297)
	at
org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:280)
	at
org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
	at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:80)
	at
org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:71)
	at
org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:279)
	at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
	at
org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334)
	at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
	at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
	at org.hibernate.cfg.Configuration.add(Configuration.java:675)
	at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)
	at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
	at
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
	at
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1449)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:623)
	at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
javax.mail.internet.AddressException
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 61 more


The log4j.xml looks like this

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!--
   | For more configuration infromation and examples see the Jakarta Log4j
   | owebsite: http://jakarta.apache.org/log4j
   | See also http://wiki.apache.org/logging-log4j/Log4jXmlFormat
 -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">

  <appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender">
    
    

    <layout class="org.apache.log4j.PatternLayout">
      
    </layout>
  </appender>


  <category name="org.apache">
    <priority value="ERROR"/>
  </category>

  <category name="org.springframework">
    <priority value="WARN"/>
  </category>
  
  <category name="org.hibernate">
    <priority value="ERROR"/>
  </category>
  
  <category name="org.itracker">
    <priority value="WARN"/>
  </category>

  <root>
  	<priority value="WARN" />
    <appender-ref ref="consoleAppender"/>
  </root>

</log4j:configuration>


If you need any more info, plz ask me, i ll mail everthing out to you. This
itracker tool is opensource and you can download and run it yourself to
check errors.


Regards,

Alim
-- 
View this message in context: http://www.nabble.com/http-error-404-tp25505913p25505913.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message