DO NOT REPLY [Bug 47255] New: Improve Tomcat6W display; allow easy setup of security manager

2009-05-23 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47255

   Summary: Improve Tomcat6W display; allow easy setup of security
manager
   Product: Tomcat 6
   Version: unspecified
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Native:Packaging
AssignedTo: dev@tomcat.apache.org
ReportedBy: s...@apache.org


The Tomcat6w.exe display is a bit awkward to use, because the fields are a bit
small and the dialogue boxes are not resizable.

Also, it would be useful to be able to have a check-box to start Tomcat with
the -security option enabled.

It looks like the only way to do this is to edit the Java options to add
something like:

-Djava.security.manager 
-Djava.security.policy=C:\Program Files\Apache Software Foundation\Tomcat
6.0.18\conf\catalina.policy

This is very awkward to do, because the dialogue box fields are too small.
It would be much better if the user could use a checkbox to enable and disable
the option.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

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



DO NOT REPLY [Bug 47121] mod_jk 1.2.27 produces "JkWorkersFile only allowed once" on Netware 6.5

2009-05-23 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47121





--- Comment #5 from Guenter Knauf   2009-05-23 07:34:09 PST ---
Hello Vladimir!
Well, seems I was correct regarding the product include files, and you found
the culprit with the QFSrchApache.conf file.
The other issues you see are a bit strange, and since you issue strange NCF
files I dont know about I cant help here - but I can recommend to use the
default start/stop files which are:
admsrvdn.ncf -> stop admin server
admsrvup.ncf -> start admin server
ap2webdn.ncf -> stop web server in OS address space
ap2webup.ncf -> start web server in OS address space
if you use these then you should not see the issues you saw about 'already
loaded';
and finally the fix for the duplicate usage of JkWorkersFile is this:
- make sure that the QFSrchApache.conf include happens _after_ the IfModule
block in your httpd.conf:

   JkWorkersFile "sys:/adminsrv/conf/mod_jk/workers.properties"
   JkLogFile "logs/mod_jk.log"
   JkLogLevel error

# QFSrchApache.conf must be included after the mod_jk block!!
Include "SYS:/qfsearch/WEB-INF/QFSrchApache.conf"

that's all! Now when the QFSrchApache.conf is included then mod_jk is already
loaded, and the block in QFSrchApache.conf should therefore not be executed
because its surrounded with  which means its only executed
when mod_jk is not loaded.

HTH, Guenter.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

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



svn commit: r777990 - in /tomcat/trunk/java/org/apache/catalina/mbeans: MBeanUtils.java StandardContextMBean.java StandardEngineMBean.java StandardHostMBean.java StandardServerMBean.java StandardServi

2009-05-23 Thread markt
Author: markt
Date: Sat May 23 19:05:31 2009
New Revision: 777990

URL: http://svn.apache.org/viewvc?rev=777990&view=rev
Log:
Remove some unused code. Tested the basics and all seems OK.

Removed:
tomcat/trunk/java/org/apache/catalina/mbeans/StandardContextMBean.java
tomcat/trunk/java/org/apache/catalina/mbeans/StandardEngineMBean.java
tomcat/trunk/java/org/apache/catalina/mbeans/StandardHostMBean.java
tomcat/trunk/java/org/apache/catalina/mbeans/StandardServerMBean.java
tomcat/trunk/java/org/apache/catalina/mbeans/StandardServiceMBean.java
Modified:
tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java?rev=777990&r1=777989&r2=777990&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java Sat May 23 
19:05:31 2009
@@ -138,69 +138,6 @@
 
 }
 
-
-/**
- * Create, register, and return an MBean for this
- * Connector object.
- *
- * @param connector The Connector to be managed
- *
- * @exception Exception if an MBean cannot be created or registered
- */
-static DynamicMBean createMBean(Connector connector)
-throws Exception {
-
-String mname = createManagedName(connector);
-ManagedBean managed = registry.findManagedBean(mname);
-if (managed == null) {
-Exception e = new Exception("ManagedBean is not found with 
"+mname);
-throw new MBeanException(e);
-}
-String domain = managed.getDomain();
-if (domain == null)
-domain = mserver.getDefaultDomain();
-DynamicMBean mbean = managed.createMBean(connector);
-ObjectName oname = createObjectName(domain, connector);
-if( mserver.isRegistered( oname ))  {
-mserver.unregisterMBean(oname);
-}
-mserver.registerMBean(mbean, oname);
-return (mbean);
-
-}
-
-
-/**
- * Create, register, and return an MBean for this
- * Context object.
- *
- * @param context The Context to be managed
- *
- * @exception Exception if an MBean cannot be created or registered
- */
-static DynamicMBean createMBean(Context context)
-throws Exception {
-
-String mname = createManagedName(context);
-ManagedBean managed = registry.findManagedBean(mname);
-if (managed == null) {
-Exception e = new Exception("ManagedBean is not found with 
"+mname);
-throw new MBeanException(e);
-}
-String domain = managed.getDomain();
-if (domain == null)
-domain = mserver.getDefaultDomain();
-DynamicMBean mbean = managed.createMBean(context);
-ObjectName oname = createObjectName(domain, context);
-if( mserver.isRegistered(oname)) {
-log.debug("Already registered " + oname);
-mserver.unregisterMBean(oname);
-}
-mserver.registerMBean(mbean, oname);
-return (mbean);
-
-}
-
 
 /**
  * Create, register, and return an MBean for this
@@ -294,36 +231,6 @@
 
 }
  
-/**
- * Create, register, and return an MBean for this
- * Engine object.
- *
- * @param engine The Engine to be managed
- *
- * @exception Exception if an MBean cannot be created or registered
- */
-static DynamicMBean createMBean(Engine engine)
-throws Exception {
-
-String mname = createManagedName(engine);
-ManagedBean managed = registry.findManagedBean(mname);
-if (managed == null) {
-Exception e = new Exception("ManagedBean is not found with 
"+mname);
-throw new MBeanException(e);
-}
-String domain = managed.getDomain();
-if (domain == null)
-domain = mserver.getDefaultDomain();
-DynamicMBean mbean = managed.createMBean(engine);
-ObjectName oname = createObjectName(domain, engine);
-if( mserver.isRegistered( oname ))  {
-mserver.unregisterMBean(oname);
-}
-mserver.registerMBean(mbean, oname);
-return (mbean);
-
-}
-
 
 /**
  * Create, register, and return an MBean for this
@@ -358,37 +265,6 @@
 
 /**
  * Create, register, and return an MBean for this
- * Host object.
- *
- * @param host The Host to be managed
- *
- * @exception Exception if an MBean cannot be created or registered
- */
-static DynamicMBean createMBean(Host host)
-throws Exception {
-
-String mname = createManagedName(host);
-ManagedBean managed = registry.findManagedBean(mname);
-if (managed == null) {
-Exception e = new Exception("ManagedBean

DO NOT REPLY [Bug 47121] mod_jk 1.2.27 produces "JkWorkersFile only allowed once" on Netware 6.5

2009-05-23 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47121





--- Comment #6 from Vladimir Mikhelson   2009-05-23 
21:52:31 PST ---
(In reply to comment #5)

Guenter,

I do not believe it matters which specific .NCFs I used as long as Apache and
Mod_JK were unloaded in all Address Spaces and they were. I unloaded Tomcat as
well just to be on the safe side.  Next time I can skip that step.

Before I go ahead and run the same experiment again can you please confirm that
you noticed the difference in 2 IF statements.

QFTomcatConnector.conf" contains:

 
 Pay attention to "!" *

Whereas httpd.conf contains:
#  TABLE: (4)
 

Condition checked is the opposite. Shouldn't it be the same?

Thank you,
Vladimir

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

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