Re: Does Tomcat need a non-ssl connector?

2016-02-14 Thread msh
On Thu, Feb 11, 2016 at 02:17:38PM -0500, m...@kimwana.com wrote:





It works! Requests to port 80 area sent to 443, and there's no need to append a 
non-standard port!

The counterintuitive bit for me is, port 443 is seemingly configured twice. 

No need for iptables or httpd! Woot!

> If I want to run Tomcat using ssl only do I still need to set up a non-ssl 
> connector and redirect the port?
> 
> -
> 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: Building binary release on Windows 10

2016-02-14 Thread Daniel Savard
Thanks Konstantin, I should have noticed the section in the
BUILDING.txt, I read it once and didn't need the installer at that
time, so I just forgot about it.

Yes, I need the installer to distribute and installer version to
someone else for a patch I made to the code and who couldn't cope with
anything else, unfortunately.
-
Daniel Savard


2016-02-14 7:06 GMT-05:00 Konstantin Kolinko :
> 2016-02-14 4:50 GMT+03:00 Daniel Savard :
>> Hi everyone,
>>
>> I am trying to perform a "build release" from source code for Tomcat
>> 8.0.32 and I am running into the following error when it is time to
>> create the actual installer file.
>>
>>
>> BUILD FAILED
>> E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\build.xml:2223:
>> Execute failed: java.io.IOException: Cannot run program
>> "E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\output\dist\tempinstaller.exe"
>> (in directory 
>> "E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\output\dist"):
>> CreateProcess error=740, L'opération demandée nécessite une élévation
>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
>> at java.lang.Runtime.exec(Runtime.java:617)
>> at 
>> org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
>> at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
>> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
>> at 
>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
>> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
>> at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
>> at 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
>> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> 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:435)
>> at org.apache.tools.ant.Target.performTasks(Target.java:456)
>> at 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>> at 
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
>> at org.apache.tools.ant.Main.runBuild(Main.java:853)
>> at org.apache.tools.ant.Main.startAnt(Main.java:235)
>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
>> Caused by: java.io.IOException: CreateProcess error=740, L'opération
>> demandée nécessite une élévation
>> at java.lang.ProcessImpl.create(Native Method)
>> at java.lang.ProcessImpl.(ProcessImpl.java:385)
>> at java.lang.ProcessImpl.start(ProcessImpl.java:136)
>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
>> ... 23 more
>>
>> Total time: 1 minute 28 seconds
>>
>> Here is my translation for the following error message:
>>
>> CreateProcess error=740, L'opération demandée nécessite une élévation
>> CreateProcess error=740, The requested operation requires elevation
>>
>> Obviously, the program requires more privileges than my current user.
>> How do I fix this to complete the process and create the installer
>> file for Windows?
>
>
> Quoting from BUILDING.txt of Tomcat 8:
>
> [q]
>  2. If building the Windows installer
>
> If running the build in a UAC enabled environment, building the Windows
> installer requires elevated privileges. The simplest way to do this is to
> open the command prompt used for the build with the "Run as administrator"
> option.
> [/q]
>
> Also, do you really need the installer? You can skip it by setting the
> skip.installer property.
>
> 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



tomcat 7/modcluster ssl issue

2016-02-14 Thread Qadeer Khan

Hello,

I am trying to hookup ssl connection between mod_Cluster load balancer and 
tomcat 7 and seems to be following everything but when I start tomcat server, I 
am getting the following error in my catalina.out. My password is for the 
keystore is "tomcat". I have checked and rechecked. Any thoughts???

java.lang.IllegalStateException: java.io.IOException: Keystore was tampered 
with, or password was incorrect
at 
org.jboss.modcluster.mcmp.impl.JSSESocketFactory.(JSSESocketFactory.java:113)
at 
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.(DefaultMCMPHandler.java:790)
at 
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.add(DefaultMCMPHandler.java:196)
at 
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.init(DefaultMCMPHandler.java:143)
at 
org.jboss.modcluster.ModClusterService.init(ModClusterService.java:142)
at 
org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.init(CatalinaEventHandlerAdapter.java:272)
at 
org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:210)
at 
org.jboss.modcluster.container.catalina.standalone.ModClusterListener.lifecycleEvent(ModClusterListener.java:136)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)


Here is relevant info from my server.xml





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



Re: Building binary release on Windows 10

2016-02-14 Thread Konstantin Kolinko
2016-02-14 4:50 GMT+03:00 Daniel Savard :
> Hi everyone,
>
> I am trying to perform a "build release" from source code for Tomcat
> 8.0.32 and I am running into the following error when it is time to
> create the actual installer file.
>
>
> BUILD FAILED
> E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\build.xml:2223:
> Execute failed: java.io.IOException: Cannot run program
> "E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\output\dist\tempinstaller.exe"
> (in directory 
> "E:\Utilisateurs\dsavard\Projets\apache-tomcat-8.0.32-src\output\dist"):
> CreateProcess error=740, L'opération demandée nécessite une élévation
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
> at java.lang.Runtime.exec(Runtime.java:617)
> at 
> org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
> at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
> at 
> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
> at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
> at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> 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:435)
> at org.apache.tools.ant.Target.performTasks(Target.java:456)
> at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
> at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> at org.apache.tools.ant.Main.runBuild(Main.java:853)
> at org.apache.tools.ant.Main.startAnt(Main.java:235)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
> Caused by: java.io.IOException: CreateProcess error=740, L'opération
> demandée nécessite une élévation
> at java.lang.ProcessImpl.create(Native Method)
> at java.lang.ProcessImpl.(ProcessImpl.java:385)
> at java.lang.ProcessImpl.start(ProcessImpl.java:136)
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
> ... 23 more
>
> Total time: 1 minute 28 seconds
>
> Here is my translation for the following error message:
>
> CreateProcess error=740, L'opération demandée nécessite une élévation
> CreateProcess error=740, The requested operation requires elevation
>
> Obviously, the program requires more privileges than my current user.
> How do I fix this to complete the process and create the installer
> file for Windows?


Quoting from BUILDING.txt of Tomcat 8:

[q]
 2. If building the Windows installer

If running the build in a UAC enabled environment, building the Windows
installer requires elevated privileges. The simplest way to do this is to
open the command prompt used for the build with the "Run as administrator"
option.
[/q]

Also, do you really need the installer? You can skip it by setting the
skip.installer property.

Best regards,
Konstantin Kolinko

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