RE: Illegal Field Name Error

2005-10-12 Thread Asad Habib

Hello, below I have provided the struts configuration file:

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 1.2//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

struts-config
   global-forwards
  forward name=home path=/home.jsp /
   /global-forwards

   action-mappings
  action path=/registrationType 
type=registration.RegistrationTypeAction
 forward name=missing-registration-type 
path=/missingRegistrationType.html /
  /action
   /action-mappings
/struts-config

I am new to Struts so perhaps I overlooked something. Also, Anto, thanks 
for your input. I flushed the .class files and recompiled but that did not 
fix the problem. I also tried with a fresh copy of struts.jar. Your help 
would be greatly appreciated. Thanks.


- Asad


On Tue, 11 Oct 2005, Raghupathy,Gurumoorthy wrote:


Cant you send the struts-config.xml ?

-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED]
Sent: 11 October 2005 14:59
To: tomcat-user@jakarta.apache.org
Subject: Illegal Field Name Error


I am receiving the following error when trying to run a Struts application.
I
checked and it seems that I do have all of the appropriate jar files
installed.
But for some reason, the Action class is not being recognized. Any help
would
be greatly appreciated. Thank you.

- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from
fulfilling this request.

exception

javax.servlet.ServletException: Illegal field name has inconsistent
hierarchy
in class
registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
root cause

java.lang.ClassFormatError: Illegal field name has inconsistent hierarchy
in
class
registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
3)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
or.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.

Apache Tomcat/5.5.9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Illegal Field Name Error

2005-10-11 Thread Asad Habib
I am receiving the following error when trying to run a Struts application. I 
checked and it seems that I do have all of the appropriate jar files installed. 
But for some reason, the Action class is not being recognized. Any help would 
be greatly appreciated. Thank you.


- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.


exception

javax.servlet.ServletException: Illegal field name has inconsistent hierarchy 
in class

registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
root cause

java.lang.ClassFormatError: Illegal field name has inconsistent hierarchy in 
class

registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.9 logs.


Apache Tomcat/5.5.9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Illegal Field Name Error

2005-10-10 Thread Asad Habib
I am receiving the following error when trying to run a Struts 
application. I checked and it seems that I do have all of the appropriate 
jar files installed. But for some reason, the Action class is not being 
recognized. Any help would be greatly appreciated. Thank you.


- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it 
from fulfilling this request.


exception

javax.servlet.ServletException: Illegal field name has inconsistent 
hierarchy in class

registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
root cause

java.lang.ClassFormatError: Illegal field name has inconsistent 
hierarchy in class

registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.9 logs.


Apache Tomcat/5.5.9


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Advice for Hosting Many Individual Webapps?

2005-08-18 Thread Asad Habib
.NET and PHP may have better development/deployment environments, but
quite frankly I would rather use Java than C# or PHP to develop web
applications. Just look at the robust Java open-source frameworks that
exist (i.e. Spring, Turbine, Struts, JSF) just to name a few. Also, .NET
applications are not multi-platform. There is just no comparison to Java
- J2EE rules!

- Asad



On Thu, 18 Aug 2005, Seth Ladd wrote:

 Allistair Crossley wrote:
  we used to just schedule updates and let all our staff know there would be 
  a small amount of downtime (for our intranet) but you can't do this on 
  external production servers, so you need to go with either load 
  balancing/clustering that allows you to close a node down *while also* 
  letting sessions complete (e.g BigIP I think may do this). we have a 
  semi-solution using mod_jk's load balancing/sticky sessions. Although 
  closing a node does not wait until sessions are complete, mod_jk still 
  detects the failed node and passes over to the next node gracefully. it's a 
  1/2 way house to a full solution that you can implement right away. for 
  graceful close down (i.e sessions completing) you need something like BigIP 
  or a commercial application server like BEA which does this for you. I 
  really wish support for hot deployment got sorted out in Tomcat/J2EE 
  servers in general. Although I am a J2EE die-hard I used C# .NET recently 
  for a project and it beats the hell out of J2EE deployme!
 nt
 , if we're not careful this will be a big win for .NET.


 The hot deployment issues isn't a Tomcat issue, or a J2EE issue.  It's a
 fundamental flaw in the JVM.  There is just no way to explicitly destroy
 a classloader (the main cause of OOM exceptions when constantly
 redeploying apps).  Until either we're able to just destroy a
 classloader, or have isolates/MVM available, we're stuck in this
 deployment mess.

 I agree, .NET is way better for developing and deploying apps.  And
 deployment couldn't get more simple that PHP (just copy them over).  Why
 does it have to be so hard for Java?

 Until Sun wakes up and realizes the JVM wasn't made to host multiple
 applications, and then fixes it, we're going to be stuck with the
 current state of things.  For instance, having to run each webapp in a
 separate Tomcat just to minimize downtime for all apps is pretty crazy.

 The clustering solution seems possible, except I'm worried about two
 different versions of a class ending up in the session (and this causing
 serialVersionUID issues).

 Seth

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NamingException

2005-08-08 Thread Asad Habib
Hello. I am getting a NamingException while Tomcat processes Global JNDI
Resources. Any idea why this is happening? I am using Mac OS X Tiger,
Eclipse 3.1, and the Tomcat Eclipse Plugin 3.1.0 from Sysdeo. This error
occurs when I try to start Tomcat from within Eclipse using the plugin. It
occurs with both Tomcat 4.x and Tomcat 5.x. I have provided the stack
trace below. Any help would be greatly appreciated. Thanks.

- Asad


Aug 8, 2005 2:51:42 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
directory)
at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:167)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:134)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:102)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
javax.naming.NamingException:
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
directory)
at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:250)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start: LifecycleException:  No UserDatabase component found under
key UserDatabase
LifecycleException:  No UserDatabase component found under key
UserDatabase
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:257)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:499)
at

Re: Placement of Tag Library Descriptor

2003-12-08 Thread Asad Habib
Hello. I figured out the problem. Thanks for your
help.

- Asad


--- Ben Souther [EMAIL PROTECTED] wrote:
 What are you using for a URL to access the tld?
 
 
 On Monday 08 December 2003 04:29 pm, Asad Habib
 wrote:
  Hello. I am using Tomcat 4.1.24 on Mac OS 10.3 and
  when I place the tld file used by my web
 application
  in /Test/tlds(where Test is the name of the
  application), I get a 404 Error. When I place the
 same
  tld file in /Test, everything works fine. Does
 anyone
  know why this is happening? Apparently, the
  application is able to find the tld since the
 Tomcat
  logs show no errors. Any help would be greatly
  appreciated. Thanks.
 
  - Asad
 
  __
  Do you Yahoo!?
  Free Pop-Up Blocker - Get it now
  http://companion.yahoo.com/
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 -- 
 Ben Souther
 F.W. Davison  Company, Inc.
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Placement of Tag Library Descriptor

2003-12-08 Thread Asad Habib
Hello. I am using Tomcat 4.1.24 on Mac OS 10.3 and
when I place the tld file used by my web application
in /Test/tlds(where Test is the name of the
application), I get a 404 Error. When I place the same
tld file in /Test, everything works fine. Does anyone
know why this is happening? Apparently, the
application is able to find the tld since the Tomcat
logs show no errors. Any help would be greatly
appreciated. Thanks.

- Asad

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Placement of JSP/HTML Files

2003-12-08 Thread Asad Habib
Hello. Does anyone know if there is a way to place
your JSP/HTML files in a subfolder of the root level
directory instead of in the root level directory. For
example, if I have a web app named Test, I would like
to place my files in /Test/jsp instead of in /Test.
Your help would be greatly appreciated. Thanks.

- Asad

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tools for Installing/Configuring Tomcat 4.x on Mac OS 10.2.8 and for Migrating Tomcat 3.x web applications to Tomcat 4.x

2003-11-25 Thread Asad Habib
Hello. Does anyone know of any software tools that manage the
installation/configuration of Tomcat 4.x on Mac OS 10.2.8 and
also the migration of Tomcat 3.x web applications(using JSP/Servlet
technology) to Tomcat 4.x? Thanks.

-Asad


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]