server returned HTTP response code 403 during ant install operation

2021-09-18 Thread Barry Kimelman
I am running tomcat 9.0.52 on ubuntu 20.04 LTS

I am able to compile my application but when I issue the "ant install"
command it fails with the following error message

[barry] /home/barry/tomcat/hockey3 1106 ant install
Buildfile: /home/barry/tomcat/hockey3/build.xml
Trying to override old definition of datatype resources

prepare:

compile:

install:

BUILD FAILED
/home/barry/tomcat/hockey3/build.xml:370: java.io.IOException: Server
returned HTTP response code: 403 for URL:
http://localhost:8080/manager/text/deploy?path=%2Fhockey3=file%3A%2F%2F%2Fhome%2Fbarry%2Ftomcat%2Fhockey3%2Fbuild
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:224)
at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:180)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Total time: 0 seconds

My tomcat-users.xml file has the following content (after the comments are
removed)

 1 
 2
 3 http://tomcat.apache.org/xml;
 4  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 5  xsi:schemaLocation="http://tomcat.apache.org/xml
tomcat-users.xsd"
 6  version="1.0">
 7
 8  
 9  
10  
11  
12  
13  
14  
15
16 

my build.properties file has the following data

# Context path to install this application on
app.path=/hockey3

# Tomcat 9 installation directory
catalina.home=/opt/tomcat

# Manager webapp username and password
manager.username=admin_user
manager.password=admin_password

I have been busy google searching but nothing usefull has turned up so far.
How can I fix this 403 error problem ?

Thanks.
-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Server redirected too many times (20)

2021-09-12 Thread Barry Kimelman
I just installed tomcat 9.0.52 on my linux ubuntu 20.04 LTS system.

I was successfully able to run the manager app as a test.

Now I am trying to build an application that I had worked on quite a while
ago in an older version of tomcat.

I have a script which runs a series of ANT commands to build and install my
app which has always worked well.

Now with this version of tomcat when I run   ant remove I get the following
error messages

Buildfile: /home/barry/tomcat/hockey3/build.xml
Trying to override old definition of datatype resources

remove:

BUILD FAILED
/home/barry/tomcat/hockey3/build.xml:504: java.net.ProtocolException:
Server redirected too many  times (20)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:224)
at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:156)
at org.apache.catalina.ant.UndeployTask.execute(UndeployTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Total time: 0 seconds

Here is the relavant  portion of my build.xml file


  48 

  79  
  80  

 127  
 128  
 129  
 130  
 131  
 132  
 133  
 134  http://localhost:8080/manager/text"/>
 135  
 136  

 487 
 488

 497
 498  
 500
 501
 505
 506  

I am puzzled.   What have IO done wrong ?

Thanks for your help.

-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: tomcat can't find suitable driver for mysql

2020-07-13 Thread Barry Kimelman
I have found a solution. I modified /etc/environment to include  a
definition of CLASSPATH, rebooted, and now it seems to be working just fine.


On Mon, Jul 13, 2020 at 4:24 PM calder  wrote:

> On Mon, Jul 13, 2020, 15:22 Barry Kimelman 
> wrote:
>
> > my system is ubuntu 20.04
> > I am running tomcat 9.0.37
> >
>
>
> I can run java based mysql programs from the terminal command line with no
> > problems
> >
>
>
> In my build.xml I have the following lines
> >
>
> So, you're attempting run in Eclipse?  Or using Maven?
>
>
> It's also important to note that "things" run differently on Linux vs
> Windows.
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: tomcat can't find suitable driver for mysql

2020-07-13 Thread Barry Kimelman
But what about the lines

191 
192   
193 

in the build.xml file ? Aren't those supposed to expose all the JAR files
under the tomcat lib directory to all apps ?


On Mon, Jul 13, 2020 at 3:49 PM 
wrote:

> Is this path included in your classpath or in one of the .loaders in the
> catalina.properties file?
> /opt/tomcat/latest/lib/mysql-connector-java-5.1.47-bin.jar
>
>
> Dream * Excel * Explore * Inspire
> Jon McAlexander
> Asst Vice President
>
> Middleware Product Engineering
> Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions
>
> 8080 Cobblestone Rd | Urbandale, IA 50322
> MAC: F4469-010
> Tel 515-988-2508 | Cell 515-988-2508
>
> jonmcalexan...@wellsfargo.com
>
>
> This message may contain confidential and/or privileged information. If
> you are not the addressee or authorized to receive this for the addressee,
> you must not use, copy, disclose, or take any action based on this message
> or any information herein. If you have received this message in error,
> please advise the sender immediately by reply e-mail and delete this
> message. Thank you for your cooperation.
>
>
> -Original Message-
> From: Barry Kimelman 
> Sent: Monday, July 13, 2020 3:22 PM
> To: Tomcat Users List 
> Subject: tomcat can't find suitable driver for mysql
>
> my system is ubuntu 20.04
> I am running tomcat 9.0.37
> I can run java based mysql programs from the terminal command line with no
> problems
>
> I have installed tomcat under /opt/tomcat/latest under
> /opt/tomcat/latest/lib I have installed the jar file for mysql
>
> -rw-r--r-- 1 root root 1007505 Jul 13 10:54
> /opt/tomcat/latest/lib/mysql-connector-java-5.1.47-bin.jar
>
> In my build.xml I have the following lines
>
> 131   
>
> 186 
> 187 
> 188   
> 189 
> 190 
> 191 
> 192   
> 193 
>
> However after I compile and install the application, when I try to run it
> my application traps the following error
>
> java.sql.SQLException: No suitable driver found for
> jdbc:mysql://localhost/qwlc?autoReconnect=true=false
>
> What am I missing ? Why can't my tomcat app find the mysql class ?
>
>
>
> ==
>
> Barry Kimelman
> Winnipeg, Manitoba, Canada
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: tomcat can't find suitable driver for mysql

2020-07-13 Thread Barry Kimelman
I should also mention this is the same JAVA code I had running under Tomcat
9.0.14 running under Windows 10 where it ran with no problems.

On Mon, Jul 13, 2020 at 3:30 PM Barry Kimelman 
wrote:

> An update :
>
> I have now installed the same JAR file under tomcat that I used from the
> command line
> -rwxr-xr-x 1 root root 1007502 Jul 13 15:25
> /opt/tomcat/latest/lib/mysql-connector-java-5.1.47.jar
>
> However the same error still occurs.
>
> On Mon, Jul 13, 2020 at 3:21 PM Barry Kimelman 
> wrote:
>
>> my system is ubuntu 20.04
>> I am running tomcat 9.0.37
>> I can run java based mysql programs from the terminal command line with
>> no problems
>>
>> I have installed tomcat under /opt/tomcat/latest
>> under /opt/tomcat/latest/lib I have installed the jar file for mysql
>>
>> -rw-r--r-- 1 root root 1007505 Jul 13 10:54
>> /opt/tomcat/latest/lib/mysql-connector-java-5.1.47-bin.jar
>>
>> In my build.xml I have the following lines
>>
>> 131   
>>
>> 186 
>> 187 
>> 188   
>> 189 
>> 190 
>> 191 
>> 192   
>> 193 
>>
>> However after I compile and install the application, when I try to run it
>> my application traps the following error
>>
>> java.sql.SQLException: No suitable driver found for
>> jdbc:mysql://localhost/qwlc?autoReconnect=true=false
>>
>> What am I missing ? Why can't my tomcat app find the mysql class ?
>>
>>
>>
>> ==
>>
>> Barry Kimelman
>> Winnipeg, Manitoba, Canada
>>
>
>
> --
>
> ==
>
> Barry Kimelman
> Winnipeg, Manitoba, Canada
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: tomcat can't find suitable driver for mysql

2020-07-13 Thread Barry Kimelman
An update :

I have now installed the same JAR file under tomcat that I used from the
command line
-rwxr-xr-x 1 root root 1007502 Jul 13 15:25
/opt/tomcat/latest/lib/mysql-connector-java-5.1.47.jar

However the same error still occurs.

On Mon, Jul 13, 2020 at 3:21 PM Barry Kimelman 
wrote:

> my system is ubuntu 20.04
> I am running tomcat 9.0.37
> I can run java based mysql programs from the terminal command line with no
> problems
>
> I have installed tomcat under /opt/tomcat/latest
> under /opt/tomcat/latest/lib I have installed the jar file for mysql
>
> -rw-r--r-- 1 root root 1007505 Jul 13 10:54
> /opt/tomcat/latest/lib/mysql-connector-java-5.1.47-bin.jar
>
> In my build.xml I have the following lines
>
> 131   
>
> 186 
> 187 
> 188   
> 189 
> 190 
> 191 
> 192   
> 193 
>
> However after I compile and install the application, when I try to run it
> my application traps the following error
>
> java.sql.SQLException: No suitable driver found for
> jdbc:mysql://localhost/qwlc?autoReconnect=true=false
>
> What am I missing ? Why can't my tomcat app find the mysql class ?
>
>
>
> ==
>
> Barry Kimelman
> Winnipeg, Manitoba, Canada
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


tomcat can't find suitable driver for mysql

2020-07-13 Thread Barry Kimelman
my system is ubuntu 20.04
I am running tomcat 9.0.37
I can run java based mysql programs from the terminal command line with no
problems

I have installed tomcat under /opt/tomcat/latest
under /opt/tomcat/latest/lib I have installed the jar file for mysql

-rw-r--r-- 1 root root 1007505 Jul 13 10:54
/opt/tomcat/latest/lib/mysql-connector-java-5.1.47-bin.jar

In my build.xml I have the following lines

131   

186 
187 
188   
189 
190 
191 
192   
193 

However after I compile and install the application, when I try to run it
my application traps the following error

java.sql.SQLException: No suitable driver found for
jdbc:mysql://localhost/qwlc?autoReconnect=true=false

What am I missing ? Why can't my tomcat app find the mysql class ?



==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: Can't run manager app under tomcat 9.0.37 under ubuntu 20.04

2020-07-11 Thread Barry Kimelman
Thanks. The closing quote was the issue. Everything seems to be ok now.

On Sat, Jul 11, 2020 at 12:46 PM calder  wrote:

> On Sat, Jul 11, 2020, 11:46 Barry Kimelman 
> wrote:
>
> > I just installed tomcat 9.0.37 on my ubuntu 20.04 system. The install
> > worked just fine, no errors of any kind.
> >
> > I modified the tomcat-users.xml file to have the following content
> >
> > 
> >
> > http://tomcat.apache.org/xml;
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> >   xsi:schemaLocation="http://tomcat.apache.org/xml
> > tomcat-users.xsd"
> >   version="1.0">
>
>
> 
> >
>
>
>   
> >   
> >   
> >   
> >   
> >
>
>>
>
>
> roles="admin-gui,manager-gui,manager-script,manager-jmx,manager-status/>
> > 
> >
>
>
> Where's the closing quote?
>
>
> You should also check the "Resource " entry in server.xml.
>
>
> I stopped and restarted tomcat
> >
> > When I visit http://localhost:8080 I see the expected page. When I click
> > on
> > the "Manager App" button I enter the username and password I entered into
> > my tomcat users file. But it never accepts my username/password, it just
> > keeps re-issuing the prompt. I looked at the files in the logs directory
> > and in the cataline logfile I saw the following message
> >
> > 11-Jul-2020 11:31:12.804 WARNING [http-nio-8080-exec-2]
> > org.apache.catalina.realm.LockOutRealm.filterLockedAccounts An attempt
> was
> > made to authenticate the locked user [my_username]
> >
> >
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


Can't run manager app under tomcat 9.0.37 under ubuntu 20.04

2020-07-11 Thread Barry Kimelman
I just installed tomcat 9.0.37 on my ubuntu 20.04 system. The install
worked just fine, no errors of any kind.

I modified the tomcat-users.xml file to have the following content



http://tomcat.apache.org/xml;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://tomcat.apache.org/xml
tomcat-users.xsd"
  version="1.0">



  
  
  
  
  
  http://localhost:8080 I see the expected page. When I click on
the "Manager App" button I enter the username and password I entered into
my tomcat users file. But it never accepts my username/password, it just
keeps re-issuing the prompt. I looked at the files in the logs directory
and in the cataline logfile I saw the following message

11-Jul-2020 11:31:12.804 WARNING [http-nio-8080-exec-2]
org.apache.catalina.realm.LockOutRealm.filterLockedAccounts An attempt was
made to authenticate the locked user [my_username]

There were no other messages in the logfile pertaining to my user.

How do I resolve this issue ?

Thanks.

==

Barry Kimelman
Winnipeg, Manitoba, Canada


tomcat won't run after java update

2020-05-04 Thread Barry Kimelman
I am running tomcat 9 on my windows 10 64-bit system.

Earlier today I did a Java update, which ran with no issues.

When I attempted to start the Tomcat Service, it would not start. Then I
remembered that the last time I updated JAVA I needed to run JAVAW.EXE to
update information. The last time I ran JAVAW.EXE a window opened up and I
updated some information and Tomcat has been running since that time.
However now when I try to run JAVAW.EXE from windows explorer or from a
command line nothing happens. No window, no error message, nothing.

My Java directory is as follows

 Volume in drive C is TI10673200G
 Volume Serial Number is 5E9D-3D3F

 Directory of C:\Program Files\Java

Mon May 04, 2020  12:29 PM  .
Mon May 04, 2020  12:29 PM  ..
Tue Jan 01, 2019  03:47 PM  jdk1.8.0_191
Mon May 04, 2020  12:28 PM  jre1.8.0_251
   0 File(s)  0 bytes
   4 Dir(s)  550,857,969,664 bytes free

I have spent the last few hours google searching and reading tomcat docs
and I have not found anything which shows how to run JAVAW.EXE.

How do I run JAVAW.EXE so I can continue to run Tomcat 9 ?

Thanks.


==

Barry Kimelman
Winnipeg, Manitoba, Canada


Re: blank screen shown under tomcat9 when I attempt to run my app

2020-04-12 Thread Barry Kimelman
I deleted my web\index.html file from my new app, copied over the
web\index.html file from my old app and then I rebuilt my new app and
installed it. Now my new app is working as expected ! Now I can proceed
with the work on my new app. I will look into this strange issue at a
future date. Thanks for your assistance.

On Sun, Apr 12, 2020 at 1:07 PM calder  wrote:

> On Sun, Apr 12, 2020, 11:58 Barry Kimelman 
> wrote:
>
> > my system is a windows 10 64 bit laptop.
> > I am running tomcat 9
> > Here is the directory of my Java environment
> >
> >  Directory of C:\Program Files\Java
> >
> > Sat Jan 25, 2020  06:03 AM  .
> > Sat Jan 25, 2020  06:03 AM  ..
> > Tue Jan 01, 2019  03:47 PM  jdk1.8.0_191
> > Sat Jan 25, 2020  06:02 AM  jre1.8.0_241
> >
> > I can successfully run my old app which I wrote some time ago. However
> when
> > I try to run my new app
>
>
> What's the difference between "old" and "new"?
>
> Also, were you running the app on a previous version of Tomcat and / or
> Java?
>
> I just get a blank screen.
> > When I check the tomcat log it shows a HTTP status code of 421
>
>
>
> Can you paste the complete stack trace (including any "caused by"
> statements)
>
>
> which means
> > "misdirected request" (i have never seen this code before while running
> my
> > tomcat server)
> >
> > My new app is structured just like my old app. There is an index.html
> file
> > which automatically redirects to a JSP page.
> >
> >  1 
> >  2 
> >
>
>
>
>  3 QWLC Data Management/title>
> >
>
>
> Missing the left brace for the "title" closing tag
>
>
>  4 
> >  5 
> >  6
> >  7 
> >  8 If you are looking for the entrance for the qwlc data management,
> > you are very close.
> >  9 Click here to enter the qwlc data
> management
> > 10
> > 11 
> > 12 YOU WILL BE REDIRECTED IN 3 SECONDS - If the redirect does not
> > work,
> > 13 please click on the link above.
> > 14
> > 15 
> > 16 
> >
> > This error occurs no matter which browser I use. When I type "CTRL-U" in
> my
> > browser to see the HTML code I see the code from my index.html file. I am
> > wondering why the redirect did not work for this new app.
> >
> > One minor difference with what I see from CTRL-U as compared to my old
> app.
> > In the CTRL-U output in my old app the "enter.jsp" is underlined.
> >
> > Any ideas as to where I can look for the problem ?
> >
> >
>


-- 

==

Barry Kimelman
Winnipeg, Manitoba, Canada


blank screen shown under tomcat9 when I attempt to run my app

2020-04-12 Thread Barry Kimelman
my system is a windows 10 64 bit laptop.
I am running tomcat 9
Here is the directory of my Java environment

 Volume in drive C is TI10673200G
 Volume Serial Number is 5E9D-3D3F

 Directory of C:\Program Files\Java

Sat Jan 25, 2020  06:03 AM  .
Sat Jan 25, 2020  06:03 AM  ..
Tue Jan 01, 2019  03:47 PM  jdk1.8.0_191
Sat Jan 25, 2020  06:02 AM  jre1.8.0_241
   0 File(s)  0 bytes
   4 Dir(s)  559,190,065,152 bytes free


I can successfully run my old app which I wrote some time ago. However when
I try to run my new app I just get a blank screen.
When I check the tomcat log it shows a HTTP status code of 421 which means
"misdirected request" (i have never seen this code before while running my
tomcat server)

My new app is structured just like my old app. There is an index.html file
which automatically redirects to a JSP page.

 1 
 2 
 3 QWLC Data Management/title>
 4 
 5 
 6
 7 
 8 If you are looking for the entrance for the qwlc data management,
you are very close.
 9 Click here to enter the qwlc data management
10
11 
12 YOU WILL BE REDIRECTED IN 3 SECONDS - If the redirect does not
work,
13 please click on the link above.
14
15 
16 

This error occurs no matter which browser I use. When I type "CTRL-U" in my
browser to see the HTML code I see the code from my index.html file. I am
wondering why the redirect did not work for this new app.

One minor difference with what I see from CTRL-U as compared to my old app.
In the CTRL-U output in my old app the "enter.jsp" is underlined.

Any ideas as to where I can look for the problem ?

Thanks.


==

Barry Kimelman
Winnipeg, Manitoba, Canada


tomcat startup error on windows 10

2019-10-01 Thread Barry Kimelman
my laptop is windows 10 , 64 bit

I am running tomcat 9.0.14. it has been running fine since I installed it,
until today. Today for the first time in a long while I could not start
tomcat.

I found the following logfile
***
* C:\Tomcat_9_0_14\logs\commons-daemon.2019-10-01.log *
***

[2019-10-01 13:57:19] [info]  [10036] Commons Daemon procrun (1.1.0.0
64-bit) started
[2019-10-01 13:57:20] [info]  [10036] Running 'Tomcat9' Service...
[2019-10-01 13:57:20] [info]  [ 9728] Starting service...
[2019-10-01 13:57:20] [error] [ 9728] Failed creating Java C:\Program
Files\Java\jre1.8.0_201\bin\server\jvm.dll
[2019-10-01 13:57:20] [error] [ 9728] The system cannot find the path
specified.
[2019-10-01 13:57:21] [error] [ 9728] ServiceStart returned 1
[2019-10-01 13:57:21] [error] [ 9728] The system cannot find the path
specified.
[2019-10-01 13:57:21] [info]  [10036] Run service finished.
[2019-10-01 13:57:21] [info]  [10036] Commons Daemon procrun finished

My JAVA_HOME environment variable = C:\Program Files\Java\jdk1.8.0_191

 Directory of C:\Program Files\Java

07/24/2019  02:47 PM  .
07/24/2019  02:47 PM  ..
01/01/2019  03:47 PM  jdk1.8.0_191
07/24/2019  06:29 AM  jre1.8.0_221
   0 File(s)  0 bytes
   4 Dir(s)  561,688,457,216 bytes free
Under here I found 2 jvm.dll files
   88369521/1/20193:42:28 PM  C:\Program
Files\Java\jdk1.8.0_191\jre\bin\server\jvm.dll
   8841712   7/24/20196:28:25 AM  C:\Program
Files\Java\jre1.8.0_221\bin\server\jvm.dll

I did a recursive search under the tomcat directory looking at text files
for "jrel1" and did not find anything.

So far google searches have not turned up anything.

Any ideas as to why I am having this issue ?


======

Barry Kimelman
Winnipeg, Manitoba, Canada


Need help with image file location

2019-07-13 Thread Barry Kimelman
I am running Apache2.4 on windows 10

I have apache installed under c:\Apache24

Everything has been working fine for quite some time. Today I tried to
display an image and no matter what I tried the image is not displayed. I
read in some documentation that all static content (HTML files, image
files, etc..) should go in the same place so I put my image file under
c:\Apache24\htdocs but the image file was not displayed. When I checked the
log files the errors.log file complained "script not found or unable to
stat" but the path was listed under "cgi-bin". So I tried to modify my
image tag to use a relative path but that also did not work.

Where should I put my image files ? How should I code my  tag ? Do I
need to make any changes to my httpd.conf file ?

Thanks.


==

Barry Kimelman
Winnipeg, Manitoba, Canada

<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


ant install java.net.ProtocolException: Server redirected too many times (20)

2019-02-08 Thread Barry Kimelman
I am trying to build an app under tomcat 9-0-14 that I had previously built
under tomcat 7 several years ago.

however when I run the "ant install" command it fails with the following
errors.

BUILD FAILED
C:\barry\hockey3\build.xml:369: java.net.ProtocolException: Server
redirected too many  times (20)

build.xml : 362 , 371
362:   
364:
365: 
370:
371:   

Here is a directory listing where my java software is located


C:\Program Files\Java>dir
 Volume in drive C is TI10673200G
 Volume Serial Number is 5E9D-3D3F

 Directory of C:\Program Files\Java

01/16/2019  11:47 AM  .
01/16/2019  11:47 AM  ..
01/01/2019  03:47 PM  jdk1.8.0_191
01/16/2019  11:46 AM  jre1.8.0_201
   0 File(s)  0 bytes
   4 Dir(s)  589,238,714,368 bytes free

I am running on a Windows 10 64 bit system.

Any ideas on how to resolve this issue ? So far my searches have not turned
up anything usefull.


-- 

======

Barry Kimelman
Atlanta, GA, USA


Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

Thanks for all your help. After much Google searching I have found
something which seems to be working (at least for the very basic hello.php
script). I will now try more complicated PHP scripts.

Thanks again.

On Sun, Jan 27, 2019 at 1:53 PM Ulises Gonzalez Horta 
wrote:

> On 2019-01-27 14:15, Barry Kimelman wrote:
> > Hello,
> >
> > Thanks for the reply. I have looked at the URL you specified and the
> > information shown there is not specific enough. It shows config info,
> > but
> > it does not say where to put it and it doe snot adequately explain it.
> >
> > On Sun, Jan 27, 2019 at 1:06 PM Ulises Gonzalez Horta
> > 
> > wrote:
> >
>
> Related to where to put it you can put the config in the httpd.conf file
> or in a separated file and in your httpd.conf file you use include $
> file  to include that file. I haven't work with apache in windows so I
> don't know if you have httpd.conf file or apache2.conf file with your
> main config.
> --
> Salu2, Ulinx
> "En un problema con n ecuaciones
> siempre habrá al menos n+1 incógnitas"
> Linux user 366775
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

==

Barry Kimelman
Atlanta, GA, USA


Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

Thanks for the reply. I have looked at the URL you specified and the
information shown there is not specific enough. It shows config info, but
it does not say where to put it and it doe snot adequately explain it.

On Sun, Jan 27, 2019 at 1:06 PM Ulises Gonzalez Horta 
wrote:

> On 2019-01-27 13:52, Barry Kimelman wrote:
> > Hello,
> >
> > I am running Apache 2.4 on a 64 bit windows 10 system.
> >
> > For a while I have been running Perl CGI scripts with no problems. Now
> > I
> > want to run PHP CGI scripts.
> >
> > The last few linbes of my conf/httpd.conf file looks like the following
> >
> > 
> > Include conf/extra/proxy-html.conf
> > 
> >
> > # Secure (SSL/TLS) connections
> > ##
> > # Note: The following must must be present to support
> > #   starting without SSL on platforms with no /dev/random
> > equivalent
> > #   but a statically compiled-in mod_ssl.
> > #
> > 
> > SSLRandomSeed startup builtin
> > SSLRandomSeed connect builtin
> > Include conf/extra/httpd-ssl.conf
> > 
> >
> > # PHP FastCGI
> > #
> > # Edit conf/extra/httpd-fcgid.conf to match your php configuration
> > # and uncomment the Include line below.
> > #
> > #Include conf/extra/httpd-fcgid.conf
> >
> > However the file named in the comment on the last line does not exist
> > and I
> > have not been able to find a "sample" of the named file. What do I need
> > to
> > do for the named file in order to be able to run CGI scripts written in
> > PHP
> > ?
> >
> > Thanks.
> >
> > ==
> >
> > Barry Kimelman
> > Atlanta, GA, USA
>
> Hi did you check https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
> ?? Is the php example there good for you??
>
> --
> Salu2, Ulinx
> "En un problema con n ecuaciones
> siempre habrá al menos n+1 incógnitas"
> Linux user 366775
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

==

Barry Kimelman
Atlanta, GA, USA


Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

I am running Apache 2.4 on a 64 bit windows 10 system.

For a while I have been running Perl CGI scripts with no problems. Now I
want to run PHP CGI scripts.

The last few linbes of my conf/httpd.conf file looks like the following


Include conf/extra/proxy-html.conf


# Secure (SSL/TLS) connections
##
# Note: The following must must be present to support
#   starting without SSL on platforms with no /dev/random equivalent
#   but a statically compiled-in mod_ssl.
#

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Include conf/extra/httpd-ssl.conf


# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php configuration
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf

However the file named in the comment on the last line does not exist and I
have not been able to find a "sample" of the named file. What do I need to
do for the named file in order to be able to run CGI scripts written in PHP
?

Thanks.

======

Barry Kimelman
Atlanta, GA, USA


Problem building application with tomcat 7 on windows 7

2011-05-09 Thread barry kimelman

My system is a laptop running windows 7 professional 64 bit.
 
I downloaded tomcat 7.0.12 64 bit version for windows 7. After installation I 
tried several of the sample servlets and jsps. All the tests worked as expected.
 
When I attempt to build my application which used to build and run with no 
problems under tomcat 6 I receive the following errors.
 
C:\barry\hockey3ant install
Buildfile: C:\barry\hockey3\build.xml
Trying to override old definition of datatype resources
 
prepare:
 
compile:
[javac] C:\barry\hockey3\build.xml:298: warning: 'includeantruntime' was 
not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
 
install:
 
BUILD FAILED
C:\barry\hockey3\build.xml:374: java.io.FileNotFoundException: 
http://localhost:8080/manager/deploy
path=%2Fhockey3war=file%3A%2F%2FC%3A%5Cbarry%5Chockey3%2Fbuild
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
at 
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:228)
at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:211)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 
Total time: 1 second
 
C:\barry\hockey3
 
C:\barry\hockey3dir
 
Directory of C:\barry\hockey3
 
05/09/2011  05:00 PMDIR  .
05/09/2011  05:00 PMDIR  ..
02/27/2010  08:33 PMDIR  build
05/09/2011  04:59 PM   226 build.properties
05/09/2011  04:56 PM17,227 build.xml
02/27/2010  08:33 PMDIR  src
02/27/2010  08:33 PMDIR  web
   2 File(s) 17,453 bytes
   5 Dir(s)  216,042,860,544 bytes free
 
C:\barry\hockey3
 
 
I have kept the same directory structure that I was using under Tomcat6 and yet 
I receive this error.
 
Any ideas as to why I am receiving this error ?
 
 
Thanks for your assistance.

  

Re: Can't start Tomcat5 service on Windows Vista Home Premium

2009-09-12 Thread Barry Kimelman
Thanks to all who replied to my message. I was able to get Tomcat 6 up and 
running by starting it from the command line and for now that is good 
enough.  I will eventually work on getting it running as a service, but for 
now the fact that it is running is satisfactory.



- Original Message - 
From: Barry Kimelman blkimel...@comcast.net

To: users@tomcat.apache.org
Sent: Sunday, September 06, 2009 3:27 PM
Subject: Can't start Tomcat5 service on Windows Vista Home Premium



My PC is running the 64 bit version of Windows Visa Home Premium.

I am trying to get Tomcat 5.5.28 up and running. In years past I have been 
able to get older versions of Tomcat up and running on various versions of 
Windows. But now I am getting an error which I have not previously 
encountered.


The problem: at the end of the installation process the installation 
wizard asks me if I want to start  Tomcat. I select yes and click OK to 
continue. I receive and error message that simply states:


Windows could not start the Apache Tomcat on Local Computer. For more 
information,
review the System Event Log. If this is a non-Microsoft service, contact 
the service

vendor, and refer to service-specific error code 0.

I restarted windows and tghen tried to start Tomcat. I received the same 
error message.


I used Google to search for people with similar problems and followed the 
advice but I was not successful. I tried the following

*  I turned off User Account Control
* I modified the firewall setting to allow access to port 8080

I checked the windows system event log and found the following error.
The Apache Tomcat service terminated with service-specific  error (0x0).
The event id asscoiated with this error was 7024. A search of the web 
turned up the following description of errfor 7024.


Event ID 7024 - Service Stop Operations
Updated: December 11, 2007
Applies To: Windows Server 2008

Service Control Manager (SCM) stops services and driver services. It also 
reports when services terminate unexpectedly or fail to restart after it 
takes corrective action.

Event Details
Product: Windows Operating System
ID: 7024
Source: Service Control Manager
Version: 6.0
Symbolic Name: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
Message: The %1 service terminated with service-specific error %2.

Resolve
Review the service-specific error information
To resolve this issue, first review the service-specific error code that 
the Service Control Manager encountered when trying to stop the service, 
and then review the Event logs for other related events that have been 
logged by the Service Control Manager (SCM) Eventlog Provider.
To perform these procedures, you must have membership in Administrators, 
or you must have been delegated the appropriate authority.

Review the service-specific error code
To review the service-specific error code:
Click the Start button, Run, then type cmd to open a command prompt.
Type sc query service_name (where service_name is the name of the service) 
at the command prompt to display the service-specific SERVICE_EXIT_CODE 
error code that the Service Control Manager encountered when stopping the 
service.
Note: If the service was stopped successfully, the SERVICE_EXIT_CODE field 
should contain a zero (0). If the service failed to stop when an attempt 
was made, this field should contain an exit code provided by the service 
when it could not stop.



I found the following text a Tomcat logfile:
[2009-09-06 15:18:15] [info] Starting service...
[2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32 
application.
[2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java 
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

[2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-09-06 15:18:15] [info] Run service finished.
[2009-09-06 15:18:15] [info] Procrun finished.


Does anyone have any suggestions on how I can resolve this issue ?

Thanks for all your assistance.


-
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



Can't start Tomcat5 service on Windows Vista Home Premium

2009-09-06 Thread Barry Kimelman

My PC is running the 64 bit version of Windows Visa Home Premium.

I am trying to get Tomcat 5.5.28 up and running. In years past I have been 
able to get older versions of Tomcat up and running on various versions of 
Windows. But now I am getting an error which I have not previously 
encountered.


The problem: at the end of the installation process the installation wizard 
asks me if I want to start  Tomcat. I select yes and click OK to continue. 
I receive and error message that simply states:


Windows could not start the Apache Tomcat on Local Computer. For more 
information,
review the System Event Log. If this is a non-Microsoft service, contact the 
service

vendor, and refer to service-specific error code 0.

I restarted windows and tghen tried to start Tomcat. I received the same 
error message.


I used Google to search for people with similar problems and followed the 
advice but I was not successful. I tried the following

*  I turned off User Account Control
* I modified the firewall setting to allow access to port 8080

I checked the windows system event log and found the following error.
The Apache Tomcat service terminated with service-specific  error (0x0).
The event id asscoiated with this error was 7024. A search of the web turned 
up the following description of errfor 7024.


Event ID 7024 - Service Stop Operations
Updated: December 11, 2007
Applies To: Windows Server 2008

Service Control Manager (SCM) stops services and driver services. It also 
reports when services terminate unexpectedly or fail to restart after it 
takes corrective action.

Event Details
Product: Windows Operating System
ID: 7024
Source: Service Control Manager
Version: 6.0
Symbolic Name: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
Message: The %1 service terminated with service-specific error %2.

Resolve
Review the service-specific error information
To resolve this issue, first review the service-specific error code that the 
Service Control Manager encountered when trying to stop the service, and 
then review the Event logs for other related events that have been logged by 
the Service Control Manager (SCM) Eventlog Provider.
To perform these procedures, you must have membership in Administrators, or 
you must have been delegated the appropriate authority.

Review the service-specific error code
To review the service-specific error code:
Click the Start button, Run, then type cmd to open a command prompt.
Type sc query service_name (where service_name is the name of the service) 
at the command prompt to display the service-specific SERVICE_EXIT_CODE 
error code that the Service Control Manager encountered when stopping the 
service.
Note: If the service was stopped successfully, the SERVICE_EXIT_CODE field 
should contain a zero (0). If the service failed to stop when an attempt was 
made, this field should contain an exit code provided by the service when it 
could not stop.



I found the following text a Tomcat logfile:
[2009-09-06 15:18:15] [info] Starting service...
[2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32 
application.
[2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java 
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll

[2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-09-06 15:18:15] [info] Run service finished.
[2009-09-06 15:18:15] [info] Procrun finished.


Does anyone have any suggestions on how I can resolve this issue ?

Thanks for all your assistance.


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