svn commit: r525778 - /tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java

2007-04-05 Thread pero
Author: pero
Date: Thu Apr  5 02:33:09 2007
New Revision: 525778

URL: http://svn.apache.org/viewvc?view=revrev=525778
Log:
convert hostnames to address at tcpListenAddress attribute

Modified:

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java

Modified: 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java?view=diffrev=525778r1=525777r2=525778
==
--- 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ClusterReceiverBase.java
 Thu Apr  5 02:33:09 2007
@@ -117,10 +117,6 @@
 public java.net.InetAddress getBind() {
 if (bind == null) {
 try {
-if (auto.equals(tcpListenAddress)) {
-tcpListenAddress = java.net.InetAddress.getLocalHost()
-.getHostAddress();
-}
 if (log.isDebugEnabled())
 log.debug(Starting replication listener on address:
 + tcpListenAddress);
@@ -196,13 +192,38 @@
 this.sendAck = sendAck;
 }
  
+/**
+ * get tcp listen recevier ip address
+ * @return listen address
+ */
 public String getTcpListenAddress() {
 return tcpListenAddress;
 }
-
+
+/**
+ * Set TCP listen ip address. If arg auto use InetAddress.getLocalHost()
+ * otherwise arg converted with InetAddress.getByName().
+ * 
+ * @param tcpListenAddress 
+ */
 public void setTcpListenAddress(String tcpListenAddress) {
-this.tcpListenAddress = tcpListenAddress;
+try {
+if (auto.equals(tcpListenAddress)) {
+this.tcpListenAddress = 
+java.net.InetAddress.getLocalHost().getHostAddress();
+} else {
+this.tcpListenAddress =
+
java.net.InetAddress.getByName(tcpListenAddress).getHostAddress();
+}
+if (log.isDebugEnabled())
+log.debug(Set replication listener on address:
++ this.tcpListenAddress);
+} catch (IOException ioe) {
+log.error(Failed get Inet address at replication listener on 
address:
++ tcpListenAddress, ioe);
+}
 }
+
 
 public int getTcpListenPort() {
 return tcpListenPort;



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



svn commit: r525783 - in /tomcat/container/tc5.5.x: modules/cluster/src/share/org/apache/catalina/cluster/session/ webapps/docs/

2007-04-05 Thread pero
Author: pero
Date: Thu Apr  5 02:41:20 2007
New Revision: 525783

URL: http://svn.apache.org/viewvc?view=revrev=525783
Log:
Add better GET access session message support with new DeltaManager 
expireTolerance and updateActiveIntervall attributes.
Fix DeltaRequest missing synchonized
Fix DeltaRequest better error report at readRequest.

Modified:

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaRequest.java

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaSession.java

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/mbeans-descriptors.xml
tomcat/container/tc5.5.x/webapps/docs/changelog.xml
tomcat/container/tc5.5.x/webapps/docs/cluster-howto.xml

Modified: 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java?view=diffrev=525783r1=525782r2=525783
==
--- 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
 Thu Apr  5 02:41:20 2007
@@ -144,6 +144,17 @@
  */
 private int sendAllSessionsWaitTime = 2 * 1000 ; 
 
+/**
+ * Send session access message every updateActiveInterval sec 
+ */
+private int updateActiveInterval = 60;
+
+/**
+ * The default session maxInactiveInterval + tolerance time interval, in 
seconds, between client requests before
+ * the servlet container may invalidate a backup session from other 
cluster node.
+ */
+private int expireTolerance = 300;
+
 private ArrayList receivedMessageQueue = new ArrayList() ;
 
 private boolean receiverQueue = false ;
@@ -237,6 +248,22 @@
 
 }
 
+public int getUpdateActiveInterval() {
+return updateActiveInterval;
+}
+
+public void setUpdateActiveInterval(int updateActiveInterval) {
+this.updateActiveInterval = updateActiveInterval;
+}
+
+public int getExpireTolerance() {
+return expireTolerance;
+}
+
+public void setExpireTolerance(int expireTolerance) {
+this.expireTolerance = expireTolerance;
+}
+
 /**
  * @return Returns the counterSend_EVT_GET_ALL_SESSIONS.
  */
@@ -620,6 +647,7 @@
 }
 
 DeltaSession session = (DeltaSession) super.createSession(sessionId) ;
+session.setExpireTolerance(this.expireTolerance);
 if (distribute) {
 sendCreateSession(session.getId(), session);
 }
@@ -933,6 +961,8 @@
 if (started) {
 return;
 }
+if(log.isInfoEnabled())
+log.info(Starting clustering manager...:+getName());
 started = true;
 lifecycle.fireLifecycleEvent(START_EVENT, null);
 
@@ -1326,7 +1356,9 @@
 if ((msg == null)) {
 long replDelta = System.currentTimeMillis()
 - session.getLastTimeReplicated();
-if (replDelta  (getMaxInactiveInterval() * 1000)) {
+if (replDelta = updateActiveInterval*1000 ||
+(getMaxInactiveInterval()=0 
+replDelta = getMaxInactiveInterval()*1000)) {
 counterSend_EVT_SESSION_ACCESSED++;
 msg = new SessionMessageImpl(getName(),
 SessionMessage.EVT_SESSION_ACCESSED, null,
@@ -1493,7 +1525,7 @@
 if (log.isDebugEnabled())
 log.debug(sm.getString(deltaManager.receiveMessage.eventType,
 getName(), msg.getEventTypeString(), sender));
- 
+
 switch (msg.getEventType()) {
 case SessionMessage.EVT_GET_ALL_SESSIONS: {
 handleGET_ALL_SESSIONS(msg,sender);
@@ -1632,6 +1664,7 @@
 session.setValid(true);
 session.setPrimarySession(false);
 session.setCreationTime(msg.getTimestamp());
+session.setExpireTolerance(this.expireTolerance);
 session.access();
 if(notifySessionListenersOnReplication)
 session.setId(msg.getSessionID());

Modified: 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaRequest.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaRequest.java?view=diffrev=525783r1=525782r2=525783
==
--- 

Tagging 1.2.22

2007-04-05 Thread Mladen Turk

Hi,

The quality check release was out few days ago.
I plan to tag the mod_jk tomorrow morning Europe time.

Any objections?

Regards,
Mladen.

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



svn commit: r525780 - /tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java

2007-04-05 Thread pero
Author: pero
Date: Thu Apr  5 02:34:27 2007
New Revision: 525780

URL: http://svn.apache.org/viewvc?view=revrev=525780
Log:
Log error as sender is no a regsiterd member.

Modified:

tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java

Modified: 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java?view=diffrev=525780r1=525779r2=525780
==
--- 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
 Thu Apr  5 02:34:27 2007
@@ -431,7 +431,21 @@
 ClusterData data = serialize(message);
 String key = getKey(member);
 IDataSender sender = (IDataSender) map.get(key);
-sendMessageData(data, sender);
+if(sender == null) {
+if (log.isErrorEnabled() ) {
+IDataSender[] senders = getSenders();
+StringBuffer senderInfo = new StringBuffer() ;
+for (int i = 0; i  senders.length; i++) {
+IDataSender sender1 = senders[i];
+senderInfo.append(sender1.toString());
+if(i-1  senders.length)
+senderInfo.append(,) ;
+} 
+log.error(Unable to send replicated message to member [+
+member+], has only senders for [ + senderInfo + 
]);
+}
+} else
+sendMessageData(data, sender);
 } finally {
 if (doTransmitterProcessingStats) {
 addProcessingStats(time);



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



DO NOT REPLY [Bug 42056] - EL: Port Geronimo fixes to EL back to Tomcat

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42056.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42056





--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 04:43 ---
It doesn't have meaningful changes (renaming of non accessible methods, etc).

There are a lot of changes like this one as well:
-   for (int i = 0; i  pds.length; i++) {
-   pds[i].setValue(RESOLVABLE_AT_DESIGN_TIME, 
Boolean.TRUE);
-   pds[i].setValue(TYPE, pds[i].getPropertyType());
-   }
-   return Arrays.asList((FeatureDescriptor[]) 
pds).iterator();
+for (PropertyDescriptor pd : pds) {
+pd.setValue(RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE);
+pd.setValue(TYPE, pd.getPropertyType());
+}
+return Arrays.asList((FeatureDescriptor[]) pds).iterator();


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

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



DO NOT REPLY [Bug 41289] - Error when deploying XML Configuration file URL

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41289.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41289


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 05:45 ---
Could reproduce the problem even with /tc6.0.x/trunk/ build. 

Tried deploying sample.war
(http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/sample.war) through the
Manager web-application, by executing the following URL from Browser:

http://localhost:8080/manager/deploy?path=/Shivaconfig=file:/c:/tomcat/examples/myContext.xml

where, c:/tomcat/examples/myContext.xml file contains the following contents:

?xml version=1.0 encoding=UTF-8?
Context path=/WebApplication1 docBase=c:\tomcat\examples\sample.war /

Deploy failed with following return message:
  FAIL - Failed to deploy application at context path /Shiva

and log file shows:
INFO: Manager: install: Installing context configuration at
'file:/c:/tomcat/examples/myContext.xml'
java.io.FileNotFoundException:
C:\tomcat\trunk60\output\build\conf\Catalina\localhost\Shiva.xml (The system
cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
at
org.apache.catalina.manager.ManagerServlet.copyInternal(ManagerServlet.java:1570)
...

Created conf-path\Catalina\localhost manually and tried deploying again and it
is successful this time.

Will create a fix for this.

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

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



DO NOT REPLY [Bug 42041] - Tomcat deployer can not auto create directory apache-tomcat-6.0.10\conf\Catalina\localhost

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42041.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42041


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 05:57 ---


*** This bug has been marked as a duplicate of 41289 ***

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

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



DO NOT REPLY [Bug 41289] - Error when deploying XML Configuration file URL

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41289.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41289


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 05:57 ---
*** Bug 42041 has been marked as a duplicate of this bug. ***

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

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



DO NOT REPLY [Bug 41289] - Error when deploying XML Configuration file URL

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41289.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41289





--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 06:07 ---
Created an attachment (id=19917)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19917action=view)
just a single line of fix


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

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



svn commit: r525818 - in /tomcat/tc6.0.x/trunk/webapps/docs/appdev: build.xml.txt sample/sample.war sample/src/mypackage/Hello.java sample/web/hello.jsp

2007-04-05 Thread remm
Author: remm
Date: Thu Apr  5 06:16:43 2007
New Revision: 525818

URL: http://svn.apache.org/viewvc?view=revrev=525818
Log:
- Simplify the test hello webapp.
- Fix its build script.

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/appdev/build.xml.txt
tomcat/tc6.0.x/trunk/webapps/docs/appdev/sample/sample.war
tomcat/tc6.0.x/trunk/webapps/docs/appdev/sample/src/mypackage/Hello.java
tomcat/tc6.0.x/trunk/webapps/docs/appdev/sample/web/hello.jsp

Modified: tomcat/tc6.0.x/trunk/webapps/docs/appdev/build.xml.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/appdev/build.xml.txt?view=diffrev=525818r1=525817r2=525818
==
--- tomcat/tc6.0.x/trunk/webapps/docs/appdev/build.xml.txt (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/appdev/build.xml.txt Thu Apr  5 06:16:43 
2007
@@ -1,6 +1,6 @@
 !--
  General purpose build script for web applications and web services,
- including enhanced support for deploying directly to a Tomcat 5
+ including enhanced support for deploying directly to a Tomcat 6
  based server.
 
  This build script assumes that the source code of your web application
@@ -88,7 +88,7 @@
Defaults to build.
 
   catalina.homeThe directory in which you have installed
-   a binary distribution of Tomcat 5.  This will
+   a binary distribution of Tomcat 6.  This will
be used by the deploy target.
 
   dist.homeThe name of the base directory in which
@@ -121,55 +121,6 @@
   property name=web.home  value=${basedir}/web/
 
 
-!-- == Custom Ant Task Definitions === --
-
-
-!--
-
-  These properties define custom tasks for the Ant build tool that interact
-  with the /manager web application installed with Tomcat 5.  Before they
-  can be successfully utilized, you must perform the following steps:
-
-  - Copy the file server/lib/catalina-ant.jar from your Tomcat 5
-installation into the lib directory of your Ant installation.
-
-  - Create a build.properties file in your application's top-level
-source directory (or your user login home directory) that defines
-appropriate values for the manager.password, manager.url, and
-manager.username properties described above.
-
-  For more information about the Manager web application, and the functionality
-  of these tasks, see http://localhost:8080/tomcat-docs/manager-howto.html.
-
---
-
-  taskdef name=deploy   classname=org.apache.catalina.ant.DeployTask/
-  taskdef name=list classname=org.apache.catalina.ant.ListTask/
-  taskdef name=reload   classname=org.apache.catalina.ant.ReloadTask/
-  taskdef name=undeploy classname=org.apache.catalina.ant.UndeployTask/
-
-
-!--   Compilation Control Options  --
-
-!--
-
-  These properties control option settings on the Javac compiler when it
-  is invoked using the javac task.
-
-  compile.debugShould compilation include the debug option?
-
-  compile.deprecation  Should compilation include the deprecation option?
-
-  compile.optimize Should compilation include the optimize option?
-
---
-
-  property name=compile.debug   value=true/
-  property name=compile.deprecation value=false/
-  property name=compile.optimizevalue=true/
-
-
-
 !--  External Dependencies === --
 
 
@@ -182,7 +133,7 @@
   * Being copied into the /WEB-INF/lib directory during execution
 of the deploy target.
 
-  Because we will automatically include all of the Java classes that Tomcat 5
+  Because we will automatically include all of the Java classes that Tomcat 6
   exposes to web applications, we will not need to explicitly list any of those
   dependencies.  You only need to worry about external dependencies for JAR
   files that you are going to include inside your /WEB-INF/lib directory.
@@ -218,15 +169,11 @@
 --
 
 !-- Include all elements that Tomcat exposes to applications --
-pathelement location=${catalina.home}/common/classes/
-fileset dir=${catalina.home}/common/endorsed
-  include name=*.jar/
-/fileset
-fileset dir=${catalina.home}/common/lib
+fileset dir=${catalina.home}/bin
   include name=*.jar/
 /fileset
-pathelement location=${catalina.home}/shared/classes/
-fileset dir=${catalina.home}/shared/lib
+pathelement location=${catalina.home}/lib/
+fileset dir=${catalina.home}/lib
   include name=*.jar/
 /fileset
 
@@ -234,6 +181,53 @@
 
 
 
+!-- == Custom Ant Task Definitions === --
+
+
+!--
+
+  These properties define custom tasks for the Ant build tool that interact
+  with the /manager web application installed with Tomcat 6.  Before they
+  can be successfully utilized, you must perform the following steps:
+
+  - Copy the file 

svn commit: r525821 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java

2007-04-05 Thread remm
Author: remm
Date: Thu Apr  5 06:22:17 2007
New Revision: 525821

URL: http://svn.apache.org/viewvc?view=revrev=525821
Log:
- 41289: create configBase, since it is no longer created elsewhere.
- Submitted by Shiva Kumar H R.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java?view=diffrev=525821r1=525820r2=525821
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/ManagerServlet.java 
Thu Apr  5 06:22:17 2007
@@ -800,6 +800,7 @@
 addServiced(path);
 try {
 if (config != null) {
+configBase.mkdirs();
 copy(new File(config), 
 new File(configBase, getConfigFile(path) + 
.xml));
 }



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



Re: Tagging 1.2.22

2007-04-05 Thread Rainer Jung

Hi Mladen,

I only had time to do a quick line endings test for Apache/Win and a 
short compilation test. I would love to use the holiday tomorrow to 
check the commits done during the last three weeks. I wouldn't block a 
release, but if you could move it a little I would be able to commit at 
least half a day for testing.


Regards,

Rainer


Mladen Turk wrote:

Hi,

The quality check release was out few days ago.
I plan to tag the mod_jk tomorrow morning Europe time.

Any objections?

Regards,
Mladen.


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



Re: [VOTE] Release Tomcat 4.1.36

2007-04-05 Thread Remy Maucherat

Mark Thomas wrote:

Tomcat 4.1.36 is:
[X] Stable
[ ] Beta
[ ] Alpha


But I only did a little testing.

Rémy

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



svn commit: r525828 - /tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java

2007-04-05 Thread pero
Author: pero
Date: Thu Apr  5 06:46:25 2007
New Revision: 525828

URL: http://svn.apache.org/viewvc?view=revrev=525828
Log:
- 41289: create configBase, since it is no longer created elsewhere.
- Submitted by Shiva Kumar H R.
- Ported from Tomcat 6

Modified:

tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java

Modified: 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java?view=diffrev=525828r1=525827r2=525828
==
--- 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java
 (original)
+++ 
tomcat/container/tc5.5.x/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/ManagerServlet.java
 Thu Apr  5 06:46:25 2007
@@ -799,6 +799,7 @@
 addServiced(path);
 try {
 if (config != null) {
+configBase.mkdirs();
 copy(new File(config), 
 new File(configBase, getConfigFile(path) + 
.xml));
 }



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



Re: Tagging 1.2.22

2007-04-05 Thread Jim Jagielski


On Apr 5, 2007, at 6:17 AM, Mladen Turk wrote:


Hi,

The quality check release was out few days ago.
I plan to tag the mod_jk tomorrow morning Europe time.

Any objections?



This is a holiday weekend, so maybe afterwards?

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



Re: Tagging 1.2.22

2007-04-05 Thread Mladen Turk

Jim Jagielski wrote:




The quality check release was out few days ago.
I plan to tag the mod_jk tomorrow morning Europe time.

Any objections?



This is a holiday weekend, so maybe afterwards?



OK, so the schedule is then for Tuesday May 10th.

Regards,
Mladen.

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



DO NOT REPLY [Bug 41289] - Error when deploying XML Configuration file URL

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41289.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41289


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 07:00 ---
Fixed. Thanks.

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

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



Re: Commons EL

2007-04-05 Thread Niall Pemberton

On 4/5/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

Niall Pemberton wrote:
 OK theres no interest in Commons here but, thinking about it, location
 is minor - the real issue is about having a separatly released
 artifact that other projects can depend on - which Tomcat could do
 with EL. Any chance of a separate EL release (with a jar in the maven
 repo)?
I'm not an EL expert by any way, but the reason there might not be any
interest, is because no one has time to take and replace an EL
implementation.
If you need additional individual JARs from tomcat published to the
repo, just let me know and I can get it done.
http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/jasper-el/


 I noticed today that Geronimo copied the Tomcat 6 EL implementation
 [3] and now appear to be maintaing it independantly[4][5] - they have
 also published it as a separate artifact[6] in the maven repo.
That is their prerogative, we don't encourage this, but the license
doesn't stop anyone from doing so.


 Seems a shame to duplicate and waste effort in this way - and I can
 think of quite a few projects that could benefit by plugging in the
 standard EL.
I agree, we're not in a place in our development cycle to be swapping
out a library. That happens only early in a development cycle or a major
release.
We've just released a stable version, another one coming out, so stuff
like this would go to something like a 6.x where x0.


I wasn't aware of the Tomcat maven repo (with the EL jar published)
until someone mentioned it on IRC yesterday - which was after I posted
here. Chatting to some of the geronimo people - seems that their main
desire is/was also a version on the normal public ibiblio repo and
Tomcat moving to that would probably remove the need for their copy.
So from my perspective and I think theres thats the only real
issue/desire that remains.


Hope this explains it, I don't think anyone is ignoring you


thanks

Niall


Filip

 Niall

 [3] http://svn.apache.org/viewvc?view=revrevision=481390
 [4] http://svn.apache.org/viewvc?view=revrevision=514550
 [5] https://issues.apache.org/jira/browse/GERONIMO-2930
 [6] http://tinyurl.com/2g8oek


 On 2/8/07, Niall Pemberton [EMAIL PROTECTED] wrote:
 Following a discussion on Commons Dev[1] about using the independent
 EL implementation associated with the JSP 2.1 spec I wondered if there
 is any interest in moving what Tomcat has over to Jakarta Commons?

 The motivation for all of this is it would IMO be extremely useful for
 projects to be able to use/depend on an in dependant EL
 project/component.

 I realize that this is probably a year too late[2] and that the Tomcat
 team decided to in house EL development and ditch Commons EL because
 of problems that Commons components can have getting releases out of
 the door. I would say that I believe we have improved on this in the
 last year - but probably the best option would be to open up Commons
 to Tomcat devs (my guess there is already some overlap already?) so
 that you would have no issues committing and releasing. I would also
 be prepared to to assist with or RM any EL releases.

 If this is of interest I'd be happy to propose bringing in both the
 code and developers to Jakarta Commons.

 Niall

 [1] http://tinyurl.com/yqpbnz
 [2] http://tinyurl.com/32osfx



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



DO NOT REPLY [Bug 40940] - java.lang.ArrayIndexOutOfBoundsException during sendHeader

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40940.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40940





--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 07:51 ---
Hi, What about at least changing the exception to be something slight more
helpful , like a header has execeded the 4k (or MAXHEADER) limit - please reduce
the size of the header or increase Tomcat's max header.  See wiki page

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

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



sharing libraries in Tomcat

2007-04-05 Thread roccosga

Hello,
I've a CMS in a jar file and some web applications (web sites) built using
this CMS. I've used JBuilder 2006, struts 1.2.4 and Tomcat 5.5. The
applications work fine launching them from JBuilder and also deploying them
on weapps directory of Tomcat.

THE PROBLEM IS: Most of the libraries are common between every webapp, so my
boss asked me to share them. Based on the infos I've found, I supposed it
should be enough to move the libraries I wanna share from the directory
[CATALINA_HOME]\webapps\[web-app-name]\WEB-INF\lib to
[CATALINA_HOME]\shared\lib, but unfortunately none of my webapps works.
But I've seen there's a difference between removing a library ( i get an
exception) and moving the library to the shared directory (so I suppose it
can see them), but I get the message Servlet action is currently
unavailable

I hope i was clear in describing the problem, this is my 4th day in this
company and I'm afraid i'll not last for a long time here if I'll not solve
this problem :-)
Thanks in advance for any suggestion
-- 
View this message in context: 
http://www.nabble.com/sharing-libraries-in-Tomcat-tf3532102.html#a9857514
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: 6.0.11 anyone

2007-04-05 Thread Remy Maucherat

Filip Hanik - Dev Lists wrote:

Remy Maucherat wrote:

Remy Maucherat wrote:

Filip Hanik - Dev Lists wrote:

Any thoughts on a 6.0.11 release?


I propose tagging on monday. The polish patches should be applied 
before then (like the one which fixes the links in the examples).


Ok, I have a small commit to make to fix a glitch with Comet, but 
since I don't like last minute commits, I'd like to propose pushing 
back tagging to tomorrow.

works for me


Ok, I'm done now (after one more changelog update), so I plan to tag 
tonight.


Rémy

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



Re: svn commit: r525532 - in /tomcat/tc6.0.x/trunk: build.properties.default build.xml extras.xml

2007-04-05 Thread Remy Maucherat

Filip Hanik - Dev Lists wrote:

I thought Mr Fabien was all setup with an account, is he not yet?


That's the rest of a patch he submitted a while ago, and that he was 
apparently expecting me to commit.


Rémy

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



Re: sharing libraries in Tomcat

2007-04-05 Thread Filip Hanik - Dev Lists
You can ask this question on the tomcat User list, someone there will 
most likely help you


Filip

roccosga wrote:

Hello,
I've a CMS in a jar file and some web applications (web sites) built using
this CMS. I've used JBuilder 2006, struts 1.2.4 and Tomcat 5.5. The
applications work fine launching them from JBuilder and also deploying them
on weapps directory of Tomcat.

THE PROBLEM IS: Most of the libraries are common between every webapp, so my
boss asked me to share them. Based on the infos I've found, I supposed it
should be enough to move the libraries I wanna share from the directory
[CATALINA_HOME]\webapps\[web-app-name]\WEB-INF\lib to
[CATALINA_HOME]\shared\lib, but unfortunately none of my webapps works.
But I've seen there's a difference between removing a library ( i get an
exception) and moving the library to the shared directory (so I suppose it
can see them), but I get the message Servlet action is currently
unavailable

I hope i was clear in describing the problem, this is my 4th day in this
company and I'm afraid i'll not last for a long time here if I'll not solve
this problem :-)
Thanks in advance for any suggestion
  



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



ClusterDeployer does not have event notifications

2007-04-05 Thread Eddy Chan

In the Javadoc for Tomcat 5.5+,
org.apache.catalina.cluster.ClusterDeployershould be firing
INSTALL_EVENT upon successful installation and REMOVE_EVENT
upon successful removal.  It does not appear to have the constants to fire
such events and upon introspection of the source code, there are no events
fired in the implementing class
org.apache.catalina.cluster.deploy.FarmWarDeployer.  In Tomcat 5.0-, there
was an event in org.apache.catalina.Deployer and the container events were
fired in the implementing class.

I'm not sure if it was intentional to omit the firing of these events, but
I'm wondering if this will be implemented or if there is an alternative to
receive these type of events.

Thanks!

Eddy


svn commit: r526001 - /tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

2007-04-05 Thread remm
Author: remm
Date: Thu Apr  5 16:29:29 2007
New Revision: 526001

URL: http://svn.apache.org/viewvc?view=revrev=526001
Log:
- Changelog update.

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diffrev=526001r1=526000r2=526001
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Thu Apr  5 16:29:29 2007
@@ -102,6 +102,16 @@
 If the event is closed asynchronously, generate an end event for 
cleanup on the 
 next event. (remm)
   /fix
+  fix
+Cleanup hello webapp from the docs and fix a XSS issue in the JSP.  
(remm)
+  /fix
+  fix
+Examples webapp cleanup. Submitted by Takayuki Kaneko and Markus 
Schönhaber. (remm)
+  /fix
+  fix
+bug41289/bug: Create configBase, since it is no longer created 
elsewhere.
+Submitted by Shiva Kumar H R. (remm)
+  /fix
 /changelog
   /subsection
   subsection name=Coyote



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



svn commit: r526003 - in /tomcat/site/trunk: docs/security-3.html xdocs/security-3.xml

2007-04-05 Thread markt
Author: markt
Date: Thu Apr  5 16:52:26 2007
New Revision: 526003

URL: http://svn.apache.org/viewvc?view=revrev=526003
Log:
Fix typos reported in bug 42047.

Modified:
tomcat/site/trunk/docs/security-3.html
tomcat/site/trunk/xdocs/security-3.xml

Modified: tomcat/site/trunk/docs/security-3.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/security-3.html?view=diffrev=526003r1=526002r2=526003
==
--- tomcat/site/trunk/docs/security-3.html (original)
+++ tomcat/site/trunk/docs/security-3.html Thu Apr  5 16:52:26 2007
@@ -496,8 +496,8 @@
 tr
 td bgcolor=#525D76
 font color=#ff face=arial,helvetica,sanserif
-a name=Fixed in Apache Tomcat 3.2.1
-strongFixed in Apache Tomcat 3.2.1/strong
+a name=Fixed in Apache Tomcat 3.2
+strongFixed in Apache Tomcat 3.2/strong
 /a
 /font
 /td
@@ -517,6 +517,20 @@
includes the full file system page of the current context./p
 
 pAffects: 3.1/p
+
+p
+strongimportant: Information disclosure/strong
+   a href=http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0672;
+   CVE-2000-0672/a
+br/
+/p
+
+pAccess to the admin context is not protected. This context allows an
+   attacker to mount an arbitary file system path as a context. Any files
+   accessible from this file sytem path to the account under which Tomcat
+   is running are then visible to the attacker./p
+
+pAffects: 3.1/p
   /blockquote
 /p
 /td
@@ -544,12 +558,12 @@
 p
 strongimportant: Information disclosure/strong
a href=http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-1210;
-   CVE-2001-0590/a
+   CVE-2000-1210/a
 br/
 /p
 
 psource.jsp, provided as part of the examples, allows an attacker to read
-   arbitary files via a .. (dot dot) in the argument to source.jsp./p
+   arbitrary files via a .. (dot dot) in the argument to source.jsp./p
 
 pAffects: 3.0/p
   /blockquote

Modified: tomcat/site/trunk/xdocs/security-3.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/security-3.xml?view=diffrev=526003r1=526002r2=526003
==
--- tomcat/site/trunk/xdocs/security-3.xml (original)
+++ tomcat/site/trunk/xdocs/security-3.xml Thu Apr  5 16:52:26 2007
@@ -165,10 +165,10 @@
   section name=Fixed in Apache Tomcat 3.1
 pstrongimportant: Information disclosure/strong
a href=http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-1210;
-   CVE-2001-0590/abr//p
+   CVE-2000-1210/abr//p
 
 psource.jsp, provided as part of the examples, allows an attacker to read
-   arbitary files via a .. (dot dot) in the argument to source.jsp./p
+   arbitrary files via a .. (dot dot) in the argument to source.jsp./p
 
 pAffects: 3.0/p
   /section



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



DO NOT REPLY [Bug 42047] - Typo on security-3

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42047.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42047


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-04-05 16:53 ---
Fixed in svn. Will be updated on the live site shortly. Thanks for the report.

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

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



DO NOT REPLY [Bug 42062] New: - Connect to database (under Windows) from linux :(

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42062.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42062

   Summary: Connect to database (under Windows) from linux :(
   Product: Tomcat 5
   Version: 5.5.17
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Servlet  JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi. I write a servlet that connect with database mysql. On the PC under Windows 
it works fine, but under Linux i cant solve 1 problem: the connection to 
database not created. User have all needed rights in database and another 
program (under linux) could connect to this server. The sql driver mysql-
connector-java-5.0.4-bin.jar is in apache-tomcat-5.5.17\common\lib and in 
Servlet/web-inf/lib. 
Servlet/META-INF/contex.xml :
 Context privileged=true antiResourceLocking=false antiJARLocking=false
  
  Resource name=jdbc/positioneer auth=Container
type=javax.sql.DataSource username=user password=x
driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://217.67.191.210:3306/positioneer
maxActive=8 maxIdle=4/
  
/Context

Servlet/WEB-INF/web.xml :

?xml version=1.0 encoding=UTF-8?
web-app version=2.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 

resource-ref
 description
   Resource reference to a factory for java.sql.Connection
   instances that may be used for talking to a particular
   database that is configured in the server.xml file.
 /description
 res-ref-namejdbc/positioneer/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref

servlet
descriptionMain servlet/description
display-nameervlet/display-name
servlet-nameervlet/servlet-name
servlet-classReports.ervlet/servlet-class
   /servlet
servlet-mapping
servlet-nameervlet/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

/web-app

I listen 3306 port when servlet tried to init, but nothing send or recieved.
Please help to find where is mistake. The error script :

Not connected to database.Errors occurs when communicating with the database 
server: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.net.SocketException
MESSAGE: java.security.AccessControlException: access denied 
(java.net.SocketPermission 89.108.80.240:3306 connect,resolve)

STACKTRACE:

java.net.SocketException: java.security.AccessControlException: access denied 
(java.net.SocketPermission 89.108.80.240:3306 connect,resolve)
 at com.mysql.jdbc.StandardSocketFactory.connect
(StandardSocketFactory.java:156)
 at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)
 at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
 at com.mysql.jdbc.Connection.init(Connection.java:1531)
 at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:266)
 at java.sql.DriverManager.getConnection(DriverManager.java:525)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
 at Reports.ervlet.openConnection(ervlet.java:106)
 at Reports.ervlet.init(ervlet.java:131)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
 at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:161)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:114)
 at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1099)
 at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:757)
 at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:130)
 at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
 at 

DO NOT REPLY [Bug 42063] New: - Connect to database (under Windows) from linux :(

2007-04-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=42063.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42063

   Summary: Connect to database (under Windows) from linux :(
   Product: Tomcat 5
   Version: 5.5.17
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Servlet  JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi. I write a servlet that connect with database mysql. On the PC under Windows 
it works fine, but under Linux i cant solve 1 problem: the connection to 
database not created. User have all needed rights in database and another 
program (under linux) could connect to this server. The sql driver mysql-
connector-java-5.0.4-bin.jar is in apache-tomcat-5.5.17\common\lib and in 
Servlet/web-inf/lib. 
Servlet/META-INF/contex.xml :
 Context privileged=true antiResourceLocking=false antiJARLocking=false
  
  Resource name=jdbc/positioneer auth=Container
type=javax.sql.DataSource username=user password=x
driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://217.67.191.210:3306/positioneer
maxActive=8 maxIdle=4/
  
/Context

Servlet/WEB-INF/web.xml :

?xml version=1.0 encoding=UTF-8?
web-app version=2.4
 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 

resource-ref
 description
   Resource reference to a factory for java.sql.Connection
   instances that may be used for talking to a particular
   database that is configured in the server.xml file.
 /description
 res-ref-namejdbc/positioneer/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref

servlet
descriptionMain servlet/description
display-nameervlet/display-name
servlet-nameervlet/servlet-name
servlet-classReports.ervlet/servlet-class
   /servlet
servlet-mapping
servlet-nameervlet/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

/web-app

I listen 3306 port when servlet tried to init, but nothing send or recieved.
Please help to find where is mistake. The error script :

Not connected to database.Errors occurs when communicating with the database 
server: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.net.SocketException
MESSAGE: java.security.AccessControlException: access denied 
(java.net.SocketPermission 89.108.80.240:3306 connect,resolve)

STACKTRACE:

java.net.SocketException: java.security.AccessControlException: access denied 
(java.net.SocketPermission 89.108.80.240:3306 connect,resolve)
 at com.mysql.jdbc.StandardSocketFactory.connect
(StandardSocketFactory.java:156)
 at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276)
 at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
 at com.mysql.jdbc.Connection.init(Connection.java:1531)
 at com.mysql.jdbc.NonRegisteringDriver.connect
(NonRegisteringDriver.java:266)
 at java.sql.DriverManager.getConnection(DriverManager.java:525)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
 at Reports.ervlet.openConnection(ervlet.java:106)
 at Reports.ervlet.init(ervlet.java:131)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
 at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:161)
 at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:114)
 at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1099)
 at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:757)
 at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:130)
 at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
 at