At start up, my web pages prints as text, not as a web page

2024-10-06 Thread Jim Anderson


I am using apache-tomcat-8.0.53, on the boron version of Linux. I'm 
trying to bring up a version of my webpage that I had running roughly 3 
years ago.


I have followed the setup instructions at 
file:///usr/share/apache-tomcat-8.0.53/webapps/docs/setup.html and 
everything seemed to go ok.


I installed my webpage application at:

//usr/share/apache-tomcat-8.0.53/webapps/ihyp


I then tried to access the webpage on my LAN and my browser displayed 
the text of ihyp/pages/page1.jsp where "ihyp" is the web application. I 
was expecting the webpage, not the text of the page.


I checked the ihyp/logs directory and there were no error messages there.

Can anyone help with what my next step(s) should be?

Thanks in advance.

Jim Anderson




Re: Help with tomcat 11 failure

2024-10-21 Thread Jim Anderson
Hi Jeff,

Thanks for the advise. I will double check the java version that I used. I
recently upgrade my PC to a recent version of java, but I will double check.

Regards,
Jim

On Mon, Oct 21, 2024 at 1:24 PM  wrote:

> Hi Jim,
>
> Fellow user here.
>
> I am guessing that you need to migrate your application to Java 17+ and
> make all the necessary changes to move from the javax.* to the Jakarta EE
> jakarta.* packages.  This includes all servlet stuff.
>
> Cheers, Jeff
>
> On Oct 21, 2024 6:57 PM, Jim Anderson  wrote:
> Hi,
>
> I was working on a web application about 2 years ago and I am finally
> getting back to my work on this application. However, when I try to bring
> up the app as a web page in firefox, tomcat is failing with a stack trace
> which I am attaching to this email.
>
> Looking at the stack trace, I see that the class:
>  javax.servlet.jsp.tagext.TagLibraryValidator
> was not found.
>
> My questions is: Where is the TagLibraryValidator class to be found?
>
> Jim Anderson
>
>


Re: Help with tomcat 11 failure

2024-10-21 Thread Jim Anderson
Migrate in what way?

As near as I can tell, the missing class is being called by Tomcat 11
source code.

Jim A.

On Mon, Oct 21, 2024 at 1:18 PM Mcalexander, Jon J.
 wrote:

> I could be wrong, but I think you need to migrate your code as 11 uses
> Jakarta syntax, just like 10.1 does.
>
> From: Jim Anderson 
> Sent: Monday, October 21, 2024 11:55 AM
> To: users@tomcat.apache.org
> Subject: Help with tomcat 11 failure
>
> Hi, I was working on a web application about 2 years ago and I am finally
> getting back to my work on this application. However, when I try to bring
> up the app as a web page in firefox, tomcat is failing with a stack trace
> which I am attaching
>
> Hi,
>
> I was working on a web application about 2 years ago and I am finally
> getting back to my work on this application. However, when I try to bring
> up the app as a web page in firefox, tomcat is failing with a stack trace
> which I am attaching to this email.
>
> Looking at the stack trace, I see that the class:
>  javax.servlet.jsp.tagext.TagLibraryValidator
> was not found.
>
> My questions is: Where is the TagLibraryValidator class to be found?
>
> Jim Anderson
>
>


Help with tomcat 11 failure

2024-10-21 Thread Jim Anderson
Hi,

I was working on a web application about 2 years ago and I am finally
getting back to my work on this application. However, when I try to bring
up the app as a web page in firefox, tomcat is failing with a stack trace
which I am attaching to this email.

Looking at the stack trace, I see that the class:
 javax.servlet.jsp.tagext.TagLibraryValidator
was not found.

My questions is: Where is the TagLibraryValidator class to be found?

Jim Anderson
HTTP Status 500 – Internal Server Error

Type Exception Report

Message java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:307)
	jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1746)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148)
	org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
	java.base/java.lang.Thread.run(Thread.java:1575)

Root Cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
	java.base/java.lang.ClassLoader.defineClass1(Native Method)
	java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1026)
	java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2112)
	org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:669)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1014)
	java.base/java.lang.ClassLoader.defineClass1(Native Method)
	java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1026)
	java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2112)
	org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:669)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1014)
	org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:367)
	org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:197)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:434)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1385)
	org.apache.jasper.compiler.Parser.parse(Parser.java:135)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:264)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:109)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:211)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:396)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:602)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:396)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:354)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:302)
	jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java

stack trace from tomcat when I try to start my webpage on my LAN

2024-10-16 Thread Jim Anderson


I am trying to start up an webpage to use as a demo. I am using tomcat 
11.  I have been looking at the error but have made no progress figuring 
out the problem. Below I am including the stack trace I am getting from 
tomcat and would appreciated any guidance on finding the source of my 
problem and how to fix it.


The problem occurs when I am in firefox and I enter the url of 
application, e.g. I enter the following URL:


    localhost:8080/theApp


The attach file "appErr.txt" contains the resulting stack trace.


Thanks for any advise!


Jim A.
HTTP Status 500 – Internal Server Error

Type Exception Report

Message java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagLibraryValidator

Description The server encountered an unexpected condition that prevented it 
from fulfilling the request.

Exception

jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagLibraryValidator
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:307)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)

org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)

org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)

org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)

org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1746)

org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)

org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148)

org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
java.base/java.lang.Thread.run(Thread.java:833)



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

stack trace from tomcat when I try to start my webpage on my LAN

2024-10-17 Thread Jim Anderson



I am re-posting a post that I thought I made yesterday. It did not show 
up in my mail from users@tomcat.apache.org, hence I am trying again. My 
apologies if anyone receives both of my posts.


I am trying to start up an webpage to use as a demo. I am using tomcat 
11.  I have been looking at the error but have made no progress figuring 
out the problem. Below I am including the stack trace I am getting from 
tomcat and would appreciated any guidance on finding the source of my 
problem and how to fix it.


The problem occurs when I am in firefox and I enter the url of 
application, e.g. I enter the following URL:


    localhost:8080/theApp


The  is shown in my postscript.

Thanks for any advise!

Jim A.


_

postscript

__

HTTP Status 500 – Internal Server Error

Type Exception Report

Message java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagLibraryValidator


Description The server encountered an unexpected condition that 
prevented it from fulfilling the request.


Exception

jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagLibraryValidator

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:307)
    jakarta.servlet.http.HttpServlet.service(HttpServlet.java:716)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
 
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
 org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1746)
 org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
 
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1148)
 
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
    java.base/java.lang.Thread.run(Thread.java:833)


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



Tomcat is hanging up when I try to access local host:8080

2022-01-27 Thread Jim Anderson
I am having a problem when I am in my browser trying to access html 
documents on my localhost. I am running apache-tomcat-8.0.50 on Bunsen 
Labs Lithium release, which is a derivative of the Debian "buster" 
release.  I have tried accessing localhost:8080 in both Firefox and 
Opera with the same results, so I suspect the problem is either with the 
Tomcat server or the OS support of port 8080 is failing somehow.


I ran into this problem several days ago. I had no idea how to fix the 
failure of port 8080, so I reinstalled the operating system. A few days 
have gone by, but I  have now run into the same problem. I can't keep 
re-installing the O/S, so it is time to try to figure the root cause of 
the problem and try to fix it.


The problem occurs when I enter "localhost:8080/someURL" or just 
"localhost:8080" in a browser search bar. If I do this, the browser 
window tab hangs up and indicates that it is searching, but nothing 
comes up in the tab. It just hangs there. I think the browser is 
searching because in the window tab where the tab name is, a small dot 
bounces back-and-forth, indication the widow has begun the search.


Note that if I try to enter a URL to the outside world, e.g. 
www.ebay.com, the browser will work properly and the requested page will 
be displayed.


If I ping my local host at 127.0.1.1, I do get the expected response. If 
I look at the Firefox Web Console, no errors are indicated.


If I try to access a URL other than at port 8080 of the localhost, 
everything works fine.


I tried stopping and starting tomcat a number of times and the behavior 
did not change. I then decided to look at the catalina.out log file. I 
found that when I shutdown tomcat, nothing was sent to the log. But when 
I restarted tomcat, the catalina.out file was appended with the 
information that I am attaching as "catalina.append.txt". This looks 
suspicious to me, but I don't know how to interpret the information.


Can someone tell me what, if anything, the log indicates?

I am fairly experienced with Linux system administraion, but this is a 
case I am stumped on what testing can be done or where or what I should 
examine. Any suggestions on what look for on the PC will be appreciated.


Jim A25-Jan-2022 12:42:20.410 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version:
Apache Tomcat/8.0.50
25-Jan-2022 12:42:20.411 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server built:  
Feb 7 2018 20:06:05 UTC
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server number: 
8.0.50.0
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Name:   
Linux
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
4.19.0-17-amd64
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Architecture:  
amd64
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Java Home: 
/usr/share/jdk1.8.0_301/jre
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:   
1.8.0_301-b09
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Oracle Corporation
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: 
/usr/share/apache-tomcat-8.0.50
25-Jan-2022 12:42:20.412 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: 
/usr/share/apache-tomcat-8.0.50
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djdk.tls.ephemeralDHKeySize=2048
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dignore.endorsed.dirs=
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dcatalina.base=/usr/share/tomcat
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Dcatalina.home=/usr/share/tomcat
25-Jan-2022 12:42:20.413 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line argument: 
-Djava.io.tmpdir=/

tomcat 9.0 cache warning errors

2020-12-08 Thread Jim Anderson


While writing this post, I managed to fix my own problem with help from 
the internet. The solution is for anyone running tomcat v 9.0 inside 
eclipse.


Tomcat v9.0 in eclipse gave me a large number of cache warning errors 
and eventually crashed.  While verifying the problem, I discovered a fix 
discussed at the following url:


https://stackoverflow.com/questions/14771710/how-to-solve-javax-servlet-servletexception-java-lang-unsupportedclassversioner

That site recommended adding the following line to the tomcat path 
.../config/context.xml.


| I added that 
line to context.xml and after several iterations of trying, the |||cacheMaxSize value was 60 (i.e. 600M-bytes in size). The website I 
am working on only contains 22 M-bytes so cache size should not have 
been an issue, but the warnings kept coming. Then I thought, maybe 
Eclipse has its own version of tomcat 9.0 and sure enough I found there 
is a tomcat v 9.0 sub-directory in eclipse/workspace/Servers directory. 
I added the 'Resources' line shown above to the the conf/context.xml 
file in the eclipse tomcat v 9.0 sub-directory and that fixed my 
problem. |So the 2 step fix for cache error messages is: 1) locate the 
correct version of tomcat in your eclipse workspace 2) add "|||" to your 
context.xml file. I will update the stackoverflow.com URL with a 
comment. I'm not sure if this is worth mentioning anywhere in the tomcat 
documentation. I will leave that to others.||


--
Jim Anderson



tomcat v 9.0 crashing in Eclipse IDE Version: 2020-09 (4.17.0)

2020-12-08 Thread Jim Anderson


I am trying to run Tomcat v 9.0 in Eclipse on a linux PC and the server 
is crashing before if fully starts up. At this point, I do not consider 
this a user error, but possibly my configuration of Eclipse is a bad 
one. But even if it is, there should be error message not a crash with a 
stack trace.


For now, I am simply including the error file showing the stack trace. 
Should I submit this to the developers mailing list?


--
Jim Anderson
cell - 908-329-0586

Dec 08, 2020 2:17:24 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.38
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:  Sep 10 2020 08:20:30 UTC
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.38.0
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:   Linux
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:5.4.0-56-generic
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:  amd64
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-11-openjdk-amd64
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:   11.0.9.1+1-Ubuntu-0ubuntu1.20.04
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:Ubuntu
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: 
/home/jja/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /usr/share/apache-tomcat-9.0.38
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.base=/home/jja/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/share/apache-tomcat-9.0.38
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dwtp.deploy=/home/jja/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Dec 08, 2020 2:17:25 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Dec 08, 2020 2:17:25 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found 
on the java.library.path: 
[/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
Dec 08, 2020 2:17:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Dec 08, 2020 2:17:27 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [3411] milliseconds
Dec 08, 2020 2:17:27 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Dec 08, 2020 2:17:27 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.38]
Dec 08, 2020 2:17:29 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testProj]]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

tomcat 9 fails when requesting a new URL

2021-01-10 Thread Jim Anderson


I'm working on developing a web page using Tomcat 9 as the local server. 
My web page comes up and when I submit my page for processing, the 
tomcat server crashes. Interestingly, when I run the same sequence in 
Eclipse, everything works fine.


Anyway, I looked at the logs directory and I see some suspicious 
sections, but nothing that points directly back to source code causing 
the problem. I cleared the log directory and re-ran my process and I am 
attaching a compressed tar file of the log directory. I'm wondering if 
anyone can see any indication that Tomcat 9 is not configured properly. 
I apologize for sending the entire directory, but it is fairly small and 
I want to make the entire log available.


The most likely error point is the "java.io.StreamCorruptedException: 
invalid type code: 00" in the catalina.2021-01-10.log file. Can my 
process or environment be the root cause of this?


Jim A



jja_tomcat_logs.tgz
Description: application/compressed-tar

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

Tomcat JSP error message: Syntax error on token ";"

2021-05-15 Thread Jim Anderson

I'm using Tomcat 8.5.63 and in the last few days I started getting an error
message in a few of my JSP files. The error message is:

START ERROR

Type Exception Report

Message Unable to compile class for JSP:

Description The server encountered an unexpected condition that prevented
it from fulfilling the request.

Exception


org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [1] in the jsp file: [/pages/list.jsp]
Syntax error on token ";", enum expected after this token
1: <%@ page language="java" contentType="text/html" %>
2: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core 
" %>

3: <%@ page import = "java.io.*,java.util.*" %>
4: <%@ page import="bfs.hypBeans.HypEvent" %>


_END ERROR___


As you can see, there is no semicolon in line 1 and the error message
is showing the code exactly as it is in the tomcat/webapps/... directory.



Can anyone help explain why a semi-colon error would be reported in the 
error message when

it does not exist in the source code?



Thanks in advance for any advise/guindance.


Jim A.


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



Cannot find any information on property 'x' in a bean of type 'bfs.beans.BFSInfo'

2009-07-01 Thread Jim Anderson

Hi,

I'm running tomcat 6.0.18 on Linux and I'm having a problem running
a javabean. I created a bean and was able to call setProperty and 
getProperty

for the property 'startPage' in the bean. When I added a 2nd property
to the bean, I got the following message:

org.apache.jasper.JasperException: Cannot find any information on 
property 'midContent' in a bean of type 'bfs.beans.BFSInfo'


The setter and getter methods were copied and pasted from 'startPage' so 
they
should have worked. I checked the spelling of the new property 
'midContent' VERY

carefully and I'm sure there was not a spelling error.

I experimented and found that no matter what name I gave the new 
property, it
would not work with the getter and setter methods. In the jsp code, my 
getter

and setter methods for 'startPage' continued to work. I decided to rename
the property to 'sPage'. I did this, recompiled the source, rebuilt the 
jar file
and placed it the web library. I ran the jsp page again and found that 
getProperty
on 'sPage' failed, but if I changed 'sPage' back to 'startPage', the jsp 
page

worked.

It looks like tomcat is still is finding an old jar file or has cached a 
reference

to the old library.

Does anyone have an suggestions on how to resolve my problem?

Thank you in advance for any help.

Jim Anderson


__

source code:

JSP:

 1 <%@ page contentType="text/html" %>
 2 
 3 
 4 value="page1Mid.jsp"/><-- fails

   .
   .
   .
   BFSINFO is 
   BFSINFO is 


java:

1
 2 package bfs.beans;
 3
 4 import java.io.Serializable;
 5
 6 public class BFSInfo implements Serializable {
 7 private String startPage = "";
 8 private String midContent = "";
 9
10 public BFSInfo() {
11 }
12
13 public void setStartPage(String s) {
14 startPage = s;
   BFSINFO is 
   BFSINFO is 


java:

1
 2 package bfs.beans;
 3
 4 import java.io.Serializable;
 5
 6 public class BFSInfo implements Serializable {
 7 private String startPage = "";
 8 private String midContent = "";
 9
10 public BFSInfo() {
11 }
12
13 public void setStartPage(String s) {
14 startPage = s;
15 }
16
17 public String getStartPage() {
18 return(startPage);
19 }
20
21 public void setMidContent(String s) {
22 midContent = s;
23 }
24
25 public String getMidContent() {
26 return(midContent);
27 }
28 }


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



Re: Cannot find any information on property 'x' in a bean of type 'bfs.beans.BFSInfo'

2009-07-02 Thread Jim Anderson

Pid wrote:

On 2/7/09 04:25, Jim Anderson wrote:

Hi,

I'm running tomcat 6.0.18 on Linux and I'm having a problem running
a javabean. I created a bean and was able to call setProperty and
getProperty
for the property 'startPage' in the bean. When I added a 2nd property
to the bean, I got the following message:

org.apache.jasper.JasperException: Cannot find any information on
property 'midContent' in a bean of type 'bfs.beans.BFSInfo'

The setter and getter methods were copied and pasted from 'startPage' so
they
should have worked. I checked the spelling of the new property
'midContent' VERY
carefully and I'm sure there was not a spelling error.

I experimented and found that no matter what name I gave the new
property, it
would not work with the getter and setter methods. In the jsp code, my
getter
and setter methods for 'startPage' continued to work. I decided to 
rename

the property to 'sPage'. I did this, recompiled the source, rebuilt the
jar file
and placed it the web library. I ran the jsp page again and found that
getProperty


Which "web library" and where did you put the compiled class and "web 
library" that contains it?


In WEB-INF/lib. I compiled the java file in a separate directory and
then copied created the jar file and copied the jar file to WEB-INF/lib


Are you using a tool like Eclipse or Netbeans?


No. I use a makefile based system.



on 'sPage' failed, but if I changed 'sPage' back to 'startPage', the jsp
page
worked.

It looks like tomcat is still is finding an old jar file or has cached a
reference
to the old library.

Does anyone have an suggestions on how to resolve my problem?



25 public String getMidContent() {
26 return(midContent);
27 }


wow. old school.
Not reading a really old tutorial from somewhere are you?

I'm working out of Java Server Pages, 3rd edition.


p


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





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





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



Re: Cannot find any information on property 'x' in a bean of type 'bfs.beans.BFSInfo'

2009-07-02 Thread Jim Anderson


Konstantin,

Thank you. That did the trick. I kind of guessed it was that sort of 
problem, but could not find it in documentation of the book that I'm using.


Jim

Konstantin Kolinko wrote:

2009/7/2 Jim Anderson :
  

Hi,

I'm running tomcat 6.0.18 on Linux and I'm having a problem running
a javabean. I created a bean and was able to call setProperty and
getProperty
for the property 'startPage' in the bean. When I added a 2nd property
to the bean, I got the following message:

org.apache.jasper.JasperException: Cannot find any information on property
'midContent' in a bean of type 'bfs.beans.BFSInfo'

The setter and getter methods were copied and pasted from 'startPage' so
they
should have worked. I checked the spelling of the new property 'midContent'
VERY
carefully and I'm sure there was not a spelling error.

I experimented and found that no matter what name I gave the new property,
it
would not work with the getter and setter methods. In the jsp code, my
getter
and setter methods for 'startPage' continued to work. I decided to rename
the property to 'sPage'. I did this, recompiled the source, rebuilt the jar
file
and placed it the web library. I ran the jsp page again and found that
getProperty
on 'sPage' failed, but if I changed 'sPage' back to 'startPage', the jsp
page
worked.

It looks like tomcat is still is finding an old jar file or has cached a
reference
to the old library.




It looks like you have not restarted (reloaded) your web application.

One of the ways to do so in development mode is to touch your
WEB-INF/web.xml  (or any other WatchedResource if those are configured).

Another way is to use the Tomcat Manager web application.
http://tomcat.apache.org/tomcat-6.0-doc/html-manager-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html


Best regards,
Konstantin Kolinko

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


  



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



JSP when tag question

2009-07-03 Thread Jim Anderson



 3   This is a JSP issue. I have unsuccessfully searched for a JSP
 4   support forum so I figured I will start here since the Tomcat
 5   container processes JSP. If this is question is inappropriate,
 6   I apologize. If you can point me to a better forum, please do.

 8   The environment is Tomcat 6.0.18 on Linux using Firefox 2.0.

I'm writing my first JSP program and I'm having a problem
with the  construct. I have a bean that contains
a property named 'midContent'. When the program segment
is entered, the bean, BFSInfo, has it's midContent property
set to 'page2'. The when tag test evaluates to false, yet
the code within the when tag is executed. Here is the
code segment:

18 
19 
20 T/F = ${BFSInfo.midContent == 'page1'}
21 
22 INFO EL is ${BFSInfo.midContent}
23 
24 ...
25 


When run, the lines inside the 'when' construct print the
following on the web page:

31 T/F = false
32 INFO EL is page2

The test expression of line 19 is evaluated again at
line 20 and the result is 'false' as shown at line 31.
The output produced by line 22 is shown at
line 32 and confirms that the value of midContent is 'page2'.
Can someone explain why the code inside
the '' tag is executed when
the test on line 19 appears to be evaluating to false?

Thanks you in advance.

 Jim Anderson


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



Re: JSP when tag question

2009-07-04 Thread Jim Anderson


David,

Thank you to 'pid' and yourself. I spent quite a few hours
going over the source HTML from Firefox and fixed some
problems (e.g. an tag with no closing tag) and fixed some
inefficient code. I was getting very  inconsistent results
and went through a number of iterations. This was to
follow pid's suggestion.

Then started to respond to your suggestion about the tablib
libraries, etc. I have a number of jsp files using include
statements. Lo and behold, I did not have a taglib directive!
I'm embarrassed to say this, since I know better. I really
thought I had already done it, but I guess at the time I was
going to add the directive, I got distracted and failed to do it.

Having said that, I'm a bit surprised that there was not
error message generate by  tomcat about seeing a reference
to  and  with no definition available.

Thanks, again.

Jim


David Smith wrote:

Following up on what Pid suggested, when you look at the output (view
source in the browser), can you see the  and  tags
still present?  Can you offer us a little more info like what you have
declared for taglibs at the top of this jsp and what's in your webapp's
WEB-INF/lib folder?

--David

Jim Anderson wrote:
  

 3   This is a JSP issue. I have unsuccessfully searched for a JSP
 4   support forum so I figured I will start here since the Tomcat
 5   container processes JSP. If this is question is inappropriate,
 6   I apologize. If you can point me to a better forum, please do.

 8   The environment is Tomcat 6.0.18 on Linux using Firefox 2.0.

I'm writing my first JSP program and I'm having a problem
with the  construct. I have a bean that contains
a property named 'midContent'. When the program segment
is entered, the bean, BFSInfo, has it's midContent property
set to 'page2'. The when tag test evaluates to false, yet
the code within the when tag is executed. Here is the
code segment:

18 
19 
20 T/F = ${BFSInfo.midContent == 'page1'}
21 
22 INFO EL is ${BFSInfo.midContent}
23 
24 ...
25 


When run, the lines inside the 'when' construct print the
following on the web page:

31 T/F = false
32 INFO EL is page2

The test expression of line 19 is evaluated again at
line 20 and the result is 'false' as shown at line 31.
The output produced by line 22 is shown at
line 32 and confirms that the value of midContent is 'page2'.
Can someone explain why the code inside
the '' tag is executed when
the test on line 19 appears to be evaluating to false?

Thanks you in advance.

 Jim Anderson






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


  



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



Re: JSP when tag question

2009-07-05 Thread Jim Anderson


Ron,

Thank you, much! I will definitely get the plugin and give it a
try.

Jim

Ron McNulty wrote:

Hi Jim

A liitle OT, but I can recommend the HTML Validator plugin for Firefox 
(if you don't already have it). It puts a red light in the bottom 
right corner of the browser when you forget an import - the HTML is of 
course invalid. Has saved me many a time...


Regards

Ron

- Original Message - From: "Jim Anderson" 
To: "Tomcat Users List" 
Sent: Sunday, July 05, 2009 5:52 AM
Subject: Re: JSP when tag question




David,

Thank you to 'pid' and yourself. I spent quite a few hours
going over the source HTML from Firefox and fixed some
problems (e.g. an tag with no closing tag) and fixed some
inefficient code. I was getting very  inconsistent results
and went through a number of iterations. This was to
follow pid's suggestion.

Then started to respond to your suggestion about the tablib
libraries, etc. I have a number of jsp files using include
statements. Lo and behold, I did not have a taglib directive!
I'm embarrassed to say this, since I know better. I really
thought I had already done it, but I guess at the time I was
going to add the directive, I got distracted and failed to do it.

Having said that, I'm a bit surprised that there was not
error message generate by  tomcat about seeing a reference
to  and  with no definition available.

Thanks, again.

Jim


David Smith wrote:

Following up on what Pid suggested, when you look at the output (view
source in the browser), can you see the  and  tags
still present?  Can you offer us a little more info like what you have
declared for taglibs at the top of this jsp and what's in your webapp's
WEB-INF/lib folder?

--David

Jim Anderson wrote:


 3   This is a JSP issue. I have unsuccessfully searched for a JSP
 4   support forum so I figured I will start here since the Tomcat
 5   container processes JSP. If this is question is inappropriate,
 6   I apologize. If you can point me to a better forum, please do.

 8   The environment is Tomcat 6.0.18 on Linux using Firefox 2.0.

I'm writing my first JSP program and I'm having a problem
with the  construct. I have a bean that contains
a property named 'midContent'. When the program segment
is entered, the bean, BFSInfo, has it's midContent property
set to 'page2'. The when tag test evaluates to false, yet
the code within the when tag is executed. Here is the
code segment:

18 
19 
20 T/F = ${BFSInfo.midContent == 'page1'}
21 
22 INFO EL is ${BFSInfo.midContent}
23 
24 ...
25 


When run, the lines inside the 'when' construct print the
following on the web page:

31 T/F = false
32 INFO EL is page2

The test expression of line 19 is evaluated again at
line 20 and the result is 'false' as shown at line 31.
The output produced by line 22 is shown at
line 32 and confirms that the value of midContent is 'page2'.
Can someone explain why the code inside
the '' tag is executed when
the test on line 19 appears to be evaluating to false?

Thanks you in advance.

 Jim Anderson






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






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




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





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



installing tomcat7-admin --- I have not /etc/tomcat7 directory

2014-07-12 Thread Jim Anderson
   I am running on crunchbang Linux, a derivative of Debian Linux, and 
I use apt-get to install most packages.


However, I am in the process of upgrading from tomcat6 to tomcat7 and I 
have a problem because tomcat7
is not available for download with the crunchbang distribution. When 
tomcat6-admin was installed with apt-get,
the /etc/tomcat6 directory got populated for me. I downloaded tomcat7 as 
a compressed tar file from
apache and installed it. The Tomcat7 daemon is running. But right now, 
non of my web applications
can be accessed from my browser and there is no /etc/tomcat7 directory 
to control the local configuration.


I will look at the web application failure at a later time. For now, I 
would like to get the tomcat web
manager running but I need a /etc/tomcat7 directory set up properly. It 
looks like it should be created when the
tomcat7-admin package is installed. But I cannot find any documentation 
about installing tomcat7-admin.


I have scanned through the tomcat7 doc website and have not been able to 
find the installation instructions
I'm looking for. Can someone either point me to the instructions I would 
need to install tomcat7-admin?


Regards,
Jim Anderson



Re: installing tomcat7-admin --- I have not /etc/tomcat7 directory

2014-07-12 Thread Jim Anderson


Chuck and Hassan,

Thank you for your replies. Obviously, I did not realize that 
/etc/tomcat6 is an artifact of

the crunchbang distribution.

However, I actually did use the standard tomcat7 distribution prior to 
sending in my

help request.

I have now read the directions and
they were very helpful. I got tomcat7 working with no trouble at all in a
short amount of time. Lets just say I was misled by the tomcat6 
distribution from
Crunchbang. In some ways, I do not like some of their restructuring, but 
in all
honesty, they do a great job of distribution and support. I love their 
version

of Linux because they use the KISS (Keep It Simple Stupid!) principle.

Anyway, you help not only resolved my tomcat7 problem. But now that I have
tomcat7 working, my problems with Struts 2 in tomcat (struts 2 was
crashing in my linux environment) is also resolved, so now I can get
back to my software development. A big thanks to you and to Hassan for 
taking

the time to help me out

Regards,
Jim

On 07/12/2014 03:13 PM, Caldarale, Charles R wrote:

From: Jim Anderson [mailto:jim_ander...@jjajava.com]
Subject: installing tomcat7-admin --- I have not /etc/tomcat7 directory
 
   

I have a problem because tomcat7 is not available for download with the
crunchbang distribution.
 

You would need to discuss on whatever support mechanism is available for 
crunchbang.

   

When tomcat6-admin was installed with apt-get, the /etc/tomcat6 directory
got populated for me.
 

That is a characteristic of the particular repackaged Tomcat you were using, 
not of any standard Tomcat distribution.

   

there is no /etc/tomcat7 directory to control the local configuration.
 

No such directory exists in a standard Tomcat distribution.

   

For now, I would like to get the tomcat web manager running but I need a
/etc/tomcat7 directory set up properly.
 

No, you don't need any such directory.  You do need to look at the Tomcat 
manager documentation:
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html

   

It looks like it should be created when the tomcat7-admin package is installed.
 

Again, that is not part of a standard Tomcat distribution.

   

But I cannot find any documentation about installing tomcat7-admin.
 

Because it's an aspect of the 3rd-party repackaging of Tomcat, not of a real 
Tomcat.  The 3rd-party repackaged versions tend to scatter files all over the 
place, disregarding the proper Tomcat setup.  Stick with the standard Tomcat 
from tomcat.apache.org, read the docs for the level you chose, and have a look 
at the FAQ/Wiki.

  - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


   



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



My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-06 Thread Jim Anderson


Hi to all,

I am currently developing some server side JSP code. By and large, 
things are progressing and working well. I have gotten half way decent 
at debugging my java/javascript/jquery/jsp/HTML source code, but I have 
run into a problem in JSP where the code does not work, but I have found 
no clues as to why it is not working.


The environment that I am working in is Tomcat 7.0.54 and I am using 
java 1.8 and jquery 1.7.2.


What I am trying to do:

I have html code with an embedded javascript that runs jquery code. The 
jquery code being run makes an ajax call to a JSP file on the server 
side, which I will call s.jsp. This file is a very simple file whose 
sole function is to take a registration name and query an SQL database 
to see if the name has already been used at the web site. The 
registration name is passed with a method call that looks like this:


regName = request.getParameter("registrationName");[item 1]

This all works fine for me. So far so good. If the registration name is 
good, the state of my application logic changes. I guess there are 
multiple ways to store state, but I have chosen to store the state as a 
session variable.  I searched the net and found an example of JSP code 
that uses the session object to store information as an attribute with a 
statement that looks something like:


session.setAttribute("logicState","nameValidated"); [item 2]

I tried adding this line and when I now push the submit button of my 
HTML form, which calls s.jsp as an action, the application hangs (in 
firefox). I receive no error messages anywhere. Usually, when I add bad 
code in s.jsp I will get a stacktrace from firefox or error messages in 
the firefox debug console, or both. Or I will error message in my own 
homegrown debug code, but that does not happen. I know that my home 
grown code does not get called, so I can infer that the call to s.jsp is 
never made, but I cannot be 100% certain of this. I also checked my 
tomcat/logs directory and there was nothing in the log files that I 
would not expect.


So my first question is:  Can I simply add item 2, above, to my jsp file 
and expect that tomcat will recognize that I am referencing the session 
object?  In s.jsp, item 1, above, references the request object and 
tomcat handles that and I am expecting that it will also hand my 
reference to the session object.


My second question is more general. My code is not working and there are 
no error messages. Can anyone speculate why this would be the case?  Is 
there any   place else I should be looking for error messages?


Jim A.

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



Re: My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-08 Thread Jim Anderson


Resolved!

I apologize to everyone for taking a while to respond. It was a busy 
weekend and I was not at

the computer. Thank you all for the responses.

I read your emails about a half hour ago and ran my application to get 
fresh log files and to
check them all. Sure enough in the log file, 'localhost.2014-12-08.log', 
I found an error message
about the java code in my 's.jsp' file. I fixed the error and all is 
well now. I thought that I looked
at this file the other day before sending in my question to the mailing 
list and I did not see the error messages then. I am going to guess that 
I am in error and the I did not actually look at the file, although I 
know I looked at most of the log files in the tomcat/logs directory.


I was curious why the error did not show up in my firefox browser 
console, so I removed my fix and re-ran my application with the error in 
it. Sure enough, the error did not show up on the console.


One thing I am going to do, before going back to my main stream work is 
write up a document for myself on how to debug my current environment. 
When done, I will share it with this mailing list since it may be useful 
to others and others my want to contribute addtions.


Jim A.



On 12/06/2014 04:19 PM, Jim Anderson wrote:


Hi to all,

I am currently developing some server side JSP code. By and large, 
things are progressing and working well. I have gotten half way decent 
at debugging my java/javascript/jquery/jsp/HTML source code, but I 
have run into a problem in JSP where the code does not work, but I 
have found no clues as to why it is not working.


The environment that I am working in is Tomcat 7.0.54 and I am using 
java 1.8 and jquery 1.7.2.


What I am trying to do:

I have html code with an embedded javascript that runs jquery code. 
The jquery code being run makes an ajax call to a JSP file on the 
server side, which I will call s.jsp. This file is a very simple file 
whose sole function is to take a registration name and query an SQL 
database to see if the name has already been used at the web site. The 
registration name is passed with a method call that looks like this:


regName = request.getParameter("registrationName"); [item 1]

This all works fine for me. So far so good. If the registration name 
is good, the state of my application logic changes. I guess there are 
multiple ways to store state, but I have chosen to store the state as 
a session variable.  I searched the net and found an example of JSP 
code that uses the session object to store information as an attribute 
with a statement that looks something like:


session.setAttribute("logicState","nameValidated"); [item 2]

I tried adding this line and when I now push the submit button of my 
HTML form, which calls s.jsp as an action, the application hangs (in 
firefox). I receive no error messages anywhere. Usually, when I add 
bad code in s.jsp I will get a stacktrace from firefox or error 
messages in the firefox debug console, or both. Or I will error 
message in my own homegrown debug code, but that does not happen. I 
know that my home grown code does not get called, so I can infer that 
the call to s.jsp is never made, but I cannot be 100% certain of this. 
I also checked my tomcat/logs directory and there was nothing in the 
log files that I would not expect.


So my first question is:  Can I simply add item 2, above, to my jsp 
file and expect that tomcat will recognize that I am referencing the 
session object?  In s.jsp, item 1, above, references the request 
object and tomcat handles that and I am expecting that it will also 
hand my reference to the session object.


My second question is more general. My code is not working and there 
are no error messages. Can anyone speculate why this would be the 
case?  Is there any   place else I should be looking for error messages?


Jim A.

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





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



Re: My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-08 Thread Jim Anderson


David,

I have to question your response. In the past, I have made errors in the 
serverside JSP file and the console has identified errors for me to the 
point were I have become dependent this feedback.


I understand the separation of the client side vs the server side,
(and I must confess that sometimes in the middle of debugging, I forget 
that it is there),
but my assumption has been that when the JSP code is compiled by the 
tomcat environment, it gets sent errors back through the Firefox API 
that allows the errors to  be displayed in the console.


I don't know the Firefox API, but I can believe it has hooks in the 
brower code that allows an application such as Tomcat to post 
information into the console. If fact, I would expect the browser 
console to have that kind of hook.


Jim


On 12/08/2014 03:54 PM, David kerber wrote:

On 12/8/2014 3:49 PM, Jim Anderson wrote:


Resolved!

I apologize to everyone for taking a while to respond. It was a busy
weekend and I was not at
the computer. Thank you all for the responses.

I read your emails about a half hour ago and ran my application to get
fresh log files and to
check them all. Sure enough in the log file, 'localhost.2014-12-08.log',
I found an error message
about the java code in my 's.jsp' file. I fixed the error and all is
well now. I thought that I looked
at this file the other day before sending in my question to the mailing
list and I did not see the error messages then. I am going to guess that
I am in error and the I did not actually look at the file, although I
know I looked at most of the log files in the tomcat/logs directory.

I was curious why the error did not show up in my firefox browser
console, so I removed my fix and re-ran my application with the error in
it. Sure enough, the error did not show up on the console.


The reason it doesn't show up in your browser is that it's happening 
on the server, not the client.  So the browser never knows that there 
is an error.




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





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



Re: My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-08 Thread Jim Anderson


Please make note that I do not see errors in the brower window, but in 
the brower console window.
If I have time later, I will create an error in my 's.jsp' server code 
and verify that an error is

reported in the console.

Jim A.

On 12/08/2014 04:17 PM, David kerber wrote:

On 12/8/2014 4:04 PM, Jim Anderson wrote:


David,

I have to question your response. In the past, I have made errors in the
serverside JSP file and the console has identified errors for me to the
point were I have become dependent this feedback.

I understand the separation of the client side vs the server side,
(and I must confess that sometimes in the middle of debugging, I forget
that it is there),
but my assumption has been that when the JSP code is compiled by the
tomcat environment, it gets sent errors back through the Firefox API
that allows the errors to  be displayed in the console.

I don't know the Firefox API, but I can believe it has hooks in the
brower code that allows an application such as Tomcat to post
information into the console. If fact, I would expect the browser
console to have that kind of hook.


Hmm, I've never seen anything like that.  The only time I see server 
errors in the browser is when the server sends them as part of its 
HTTP response.  If the error output is swallowed on the server end and 
never makes it to the browser, the browser does not display anything.


I could certainly be missing something here, though...




Jim


On 12/08/2014 03:54 PM, David kerber wrote:

On 12/8/2014 3:49 PM, Jim Anderson wrote:


Resolved!

I apologize to everyone for taking a while to respond. It was a busy
weekend and I was not at
the computer. Thank you all for the responses.

I read your emails about a half hour ago and ran my application to get
fresh log files and to
check them all. Sure enough in the log file, 
'localhost.2014-12-08.log',

I found an error message
about the java code in my 's.jsp' file. I fixed the error and all is
well now. I thought that I looked
at this file the other day before sending in my question to the 
mailing
list and I did not see the error messages then. I am going to guess 
that

I am in error and the I did not actually look at the file, although I
know I looked at most of the log files in the tomcat/logs directory.

I was curious why the error did not show up in my firefox browser
console, so I removed my fix and re-ran my application with the 
error in

it. Sure enough, the error did not show up on the console.


The reason it doesn't show up in your browser is that it's happening
on the server, not the client.  So the browser never knows that there
is an error.



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





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





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





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



Re: How to debug tomcat code in eclipse

2015-01-13 Thread Jim Anderson


Hi Harmeet,

I have a setup similar to yours and I had to go through the same process 
you are right now. The good news is that with some help, I got it going 
and it works well. The bad news is that I am very busy at the moment and 
cannot help immediately, but I will try to get back to you over the 
weekend if you have not been able to get set up in Eclipse.


Please let me know if you have resolved your problem. Otherwise, I will 
get back to you over the weekend.


Jim

On 01/08/2015 11:42 AM, MyList wrote:

Hello All,

I am new to web development with tomcat. Have many years experience in  C and 
C++ on Unix.

I am newbie to tomcat too. Pardon me if my questions seem simple, just guide me 
to the source or links.

I am interested in debugging the tomcat server source code through Eclipse.I 
would like to see how/where/what of the tomcat source code and it's internals 
to get a grip on the way it handles things.


I have the following installed -
1)Eclipse Java For EE - Luna
2)Have the RC7_0_57 of the tomcat code.
3) I have tomcat 6,7,8 installed and tested. Running concurrently on three 
different port setups etc.

My intention is to write a few Servlet based projects and step into the tomcat 
source code while debugging from eclipse. I haven't found any good link to 
achieve the same.I will have to compile the tomcat source code too, don't know 
how to do that either.

I would be obliged if you could help me or point me to the sources to achieve 
this goal.

Thanks in Advance,
Harmeet




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



I cannot unsubscribe

2025-01-14 Thread Jim Anderson
Hello,

I subscribe to users@tomcat.apache.org occasionally and have always been
able to unsubscribe, but not anymore. Over the past two months I have tried
to unsubscribe several times, but I continue to receive emails from
users@tomcat.apache.org.

Two questions:

1) Who can I contact to have my address removed permanently? I prefer to
get no email about tomcat than continually receiving it.

2) Is there someone I can work with to track down why I cannot
subscribe/unsubscribe as needed?

Jim A.