Re: Using new JDK 5.0 language features with Tomcat 5.5?

2005-03-07 Thread Siarhei Dudzin
Didn't have any problems so far...


On Mon, 07 Mar 2005 10:22:09 +0100, Petr Jiricka [EMAIL PROTECTED] wrote:
 Hello list,
 
 is it safe to use the new JDK 5.0 language features, e.g. annotations
 and generic types, with Tomcat 5.5? Do people do this in practice? Was
 this tested extensively? Are there any known issues in this area? Please
 let me know your experience with using new JDK 5.0 constructs with Tomcat.
 
 The reason I am asking is because the J2EE 1.4 specification mandates
 JDK 1.4 as the baseline, and all compliant servers must work reliably
 with JDK 1.4. There is no such requirement for JDK 5.0, so any
 applications that exploit the new JDK 5.0 constructs are technically
 non-portable and non-compliant with J2EE 1.4.
 
 Thanks
 Petr
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: OT: Java / Tomcat Job Abroad

2005-02-02 Thread Siarhei Dudzin
http://www.monster.com


On Wed, 2 Feb 2005 09:52:13 +0800, Aris Javier [EMAIL PROTECTED] wrote:
 Hello!
 
 This is an out of topic question...
 Sorry, but since all of you guys are using Java and Tomcat,
 and are from different countries...
 im just wondering if i can land a job abroad?
 
 I'm planning to migrate to Canada, US, or New Zealand from here
 in Philippines... My skill is java programming (J2EE) and has 2 years
 experience.
 
 Is Java/Tomcat skill marketable in those countries i've mentioned?
 Or does anyone of you need a java programmer that i can apply?
 
 =)
 
 Thanks!
 
 Aris
 


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



Re: Eclipse Lomboz

2005-01-21 Thread Siarhei Dudzin
Hi,

If you look at the release notes of the latest Lomboz plugin for
Eclipse 3.0.x (https://forge.objectweb.org/project/shownotes.php?release_id=829)
you will see that you need a 2.1.0 release stream EMFSDO Runtime but
not 2.0.1.

Regards,
Siarhei


On Thu, 20 Jan 2005 14:29:46 +0100, VAN DER MARLIERE FREDERIC
[EMAIL PROTECTED] wrote:
 Hi all,
 
 Having met really toomuch bugs with JBuilder X Enterprise, I decided to work
 with Eclipse (3.0.0 on windows XP). I chose Sysdeo Tomcat, XML Buddy and
 Lomboz(3.0.1) plug-ins .
 
 Proglem is that I don't see the lomboz plug-in in customize perspective.
 
 Even I install emf-sdo-runtime-2.0.1, even I start eclipse with -clean
 option, I don't see lomboz plug-in.
 
 Did someone met the same problem?
 
 Thanks in advance.
 Fred.
 
 
 Ce message et toutes les pieces jointes (ci-apres le message) sont 
 confidentiels et etablis a l'intention exclusive de ses destinataires.
 Toute utilisation ou diffusion non autorisee est interdite.Tout message 
 electronique est susceptible d'alteration.
 Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de 
 ce message s'il a ete altere, deforme ou falsifie.
 This message and any attachments ( the message) are confidential and 
 intended solely for the addressees.
 Any unauthorised use or dissemination is prohibited.E-mails are susceptible 
 to alteration.
 Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
 liable for the message if altered, changed or falsified.
 
 


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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-14 Thread Siarhei Dudzin
Do you know how to set the same when running Tomcat in console mode
(from command prompt)?


On Thu, 13 Jan 2005 10:33:15 -0800 (PST), TomK
[EMAIL PROTECTED] wrote:
 Success!  I was able to get the antiResourceLocking attribute to finally take 
 effect with Tomcat 5.5.4.
 
 The problem is the default Windows install does not set the Working Path 
 (viewable on the Startup/Shutdown tabs of the service manager that sits in 
 the SysTray).   Once I set the working path to the tomcat base directory, and 
 restarted Tomcat, and deployed the WAR, the application files were copied to 
 the temp directory and run from there, just as promised.  Undeploy works 
 fine. Interestingly, the directories created in the temp directory aren't 
 deleted when Tomcat is shutdown, for the same reason: the jar's are locked.
 
 Dominik --  Regarding your statement that the latest CVS version does not 
 suffer from the nasty jar locking.   I'll try it out later, but are you 
 suggesting 5.5.7  will not have JAR locking issues at all, and thus the 
 antiResourceLocking and antiJARLocking attributes will be unnecessary??
 
 thanks
 -tk
 
 TomK [EMAIL PROTECTED] wrote:
 Thanks very much, I'll check the latest version out and post my results, in 
 case anyone else has this issue.
 
 -tk
 
 Dominik Drzewiecki wrote:
 Siarhei Dudzin wrote:
  Did you find a solution?
 
 FYI it has been fixed on 17/12/2004 and the latest CVS version does not
 suffer from the nasty jar locking.
 The root of the problem was the JasperLoader locking (using cached
 getResourceAsStream()) the jars containing jsp tag libraries.
 It works for me. Please do give it a spin and test for yourselves.
 BTW, there seems to be 5.5.7 distro coming soon.
 
 cheers,
 /dd
 
 
  On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
  wrote:
  I've been following the recent threads regarding JAR locking with
  Tomcat 5.x on Windows platforms. A few people mentioned they had been
  able to get either the antiJARLocking or antiResourceLocking attributes
  to work, so I've spent quite a bit of time trying out different
  scenarios and configurations, under the impression that I must be
  missing something simple.however, I've not yet found a situation
  where either attribute has any effect on deploy/undeploy.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-13 Thread Siarhei Dudzin
Did you find a solution?


On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
[EMAIL PROTECTED] wrote:
 I've been following the recent threads regarding JAR locking with Tomcat 5.x 
 on Windows platforms.   A few people mentioned they had been able to get 
 either the antiJARLocking or antiResourceLocking attributes to work, so I've 
 spent quite a bit of time trying out different scenarios and configurations, 
 under the impression that I must be missing something simple.however, 
 I've not yet found a situation where either attribute has any effect on 
 deploy/undeploy.

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



Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Siarhei Dudzin
I use a web hosting company for 62$ per year (tomcat, mysql, ftp,
e-mail, etc.). Only 1 problem their site isn't in english. If you want
to try send me an e-mail I'll give you their URL and e-mail.


On Tue, 04 Jan 2005 14:39:20 +, Mark Benussi
[EMAIL PROTECTED] wrote:
 Paul,
 
 I use a company called name on the net who work out at £100 a year. They
 support WAR deployment in a pure sense (my only comment would be they
 provide a Tomcat 5 container). Support is good, they are a small company and
 from that point of view you always get a quick response.
 
 Original Message Follows
 From: Paul Taylor [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Please recommend a Low Cost Tomcat Hosting platform
 Date: Tue, 04 Jan 2005 14:32:12 +
 
 Hi
 I have a Tomcat 4 Application ready to deploy as a WAR. It uses database
 pooling to connect to a MYSQL database. I recently selected a Tomcat hosting
 platform to deploy my application but the deployment is non -standard you
 have to copy various parts of the WAR to different locations which dont
 match the standard deployment and it doesnt use database pooling to connect
 to MYSQL. I have been unable to get my application to run on it because
 these issues.
 
 This is not a high performance website and I do not need/cannot afford a
 dedicated server I just want to easily be able to deploy my application.
 
 I am based in the UK so a UK/English Speaking host would be preferable.
 
 Could anyone recommend a hostthat provides this straight forward deployment
 facilities.
 Thanks paul
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: windows-1251 (Russian encoding)

2004-12-24 Thread Siarhei Dudzin
Maxim,

Try to check with your DB server whether it supports characterEncoding
parameter (or similar). Then in the URL that yo uuse to connect to DB
server you can use the following (example is for MySQL server):
useUnicode=truecharacterEncoding=Cp1251

the whole line would look like this:
Connect = 
DriverManager.getConnection(jdbc:mysql://hostname/dbname?user=usernamepassword=passwordstringuseUnicode=truecharacterEncoding=Cp1251);



On Fri, 24 Dec 2004 13:41:08 +0200,  
[EMAIL PROTECTED] wrote:
 DBMS  Sybase ASE Enterprise 12.5
 I'm using   Sybase SQL Server.
 
 SQL Advantage transfer correct informatio. So I suspect that Tomcat using
 his own JDBC driver.
 
 I checked ODBC Data Source - there all okey. Data Source is correct.
 
 - Original Message -
 From: Amit Gupta [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Friday, December 24, 2004 1:25 PM
 Subject: RE: windows-1251 (Russian encoding)
 
 What DBMS are you using?
 
 MySQL/Oracle/SQL server?
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 24, 2004 4:27 PM
 To: tomcat-user@jakarta.apache.org
 Subject: windows-1251 (Russian encoding)
 
 Good day.
 Sorry for my English, I'll try to explain.
 
 I'm using Tomcat to construct site (using JSP) that extract data using SQL
 from DB Server. But I have trouble. Some information from DB written using
 character encoding windows-1251. After SQL request I retrieve information
 like ??? ? instead of normal russian word.
 If you ever used Sybase Jaguar Server you saw that there you can correct
 charsets parameters for your language but in Tomcat I don't know how I can
 do it.
 How I can configure retrieve info from DB in correct charset in Tomcat?
 
 Thanks a lot.
 ps: sorry for my English. By the way, I'm from Ukrain.   8)
 
 Kvitka Maxim
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Reloading JSP's and other resources

2004-12-16 Thread Siarhei Dudzin
I am not really an expert but I think it is beter if you modify your
application at another location and then redeploy it on the server.


On Thu, 16 Dec 2004 09:16:41 -0600, Durham David R Jr Contr 805
CSPTS/SCE [EMAIL PROTECTED] wrote:
  There is a FAQ:
  http://jakarta.apache.org/tomcat/faq/windows.html#lock
 
 Awesome.  The faq indicates that when:
 
 Context ...
antiResourceLocking=false
 /Context
 
 the project files are copied to the temp directory and ran from there.
 Does Tomcat still pick up changes to the original deployment directory
 and copy those to temp?  So far, it appears the answer is no, but
 wouldn't that be the preferred behavior considering this feature seems
 mostly developmental in application?

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



Re: Reloading JSP's and other resources

2004-12-16 Thread Siarhei Dudzin
There are special ant tasks for deployment and undeployment. I guess
you should use those and not just put stuff where tomcat should pick
them up for you.


On Thu, 16 Dec 2004 10:56:22 -0600, Durham David R Jr Contr 805
CSPTS/SCE [EMAIL PROTECTED] wrote:
  I am not really an expert but I think it is beter if you modify
  your application at another location and then redeploy it on
  the server.
 
 
 Heh, I think I know what you're saying.  Yes, I modify the application
 at a different location than deployment.  Just for example, code that
 I'm working on might go here:
 
   E:\projects\application\src
 
 Then an Ant build script would put the compiled/configured stuff here:
 
   E:\projects\application\latest-build
 
 Tomcat, for development purposes would be configured to look at code in
 the latest-build directory.  However, if:
 
 antiResourceLocking=true
 
 in the Context (I made an error in my previous message and had this set
 to false), then changes that are deployed to latest-build are not
 picked up by Tomcat.  Considering that antiResourceLocking, to me, is a
 developmental feature (as opposed to production), then changes should be
 picked up.  Perhaps I should post a feature request?  I'm really only
 posting here to make sure that I'm not doing something wrong, before
 something is sent to dev.

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



Re: Reloading JSP's and other resources

2004-12-16 Thread Siarhei Dudzin
Well antiResourceLocking is not default anymore because you mainly
have this problem (in other words need to have this feature) under
windows platform with it's file locking... 
The anti resource and anti jar locking features are supposed to be
very powerfull and are ment to avoid such platform specific problems
but you have to pay a certain price for it...

May be it's possible to solve your propblem in more convinient way, as
I said I'm not the biggest expert over here.

On Thu, 16 Dec 2004 14:44:04 -0600, Durham David R Jr Contr 805
CSPTS/SCE [EMAIL PROTECTED] wrote:
  I am not really an expert but I think it is beter if you modify
  your application at another location and then redeploy it on
  the server.
 
 I guess you're saying that this feature is mainly so that you can
 develop out of the same directory that tomcat is using as a docbase ...
 
 That would basically make the feature useless if it, in fact, does not
 pick up changes to that directory.Redeploying, in a Tomcat sense of
 the word (restarting a context), does not make much sense.  I guess I'm
 still confused about the *real* purpose of this feature.
 
 - Dave


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


Re: Reloading JSP's and other resources

2004-12-15 Thread Siarhei Dudzin
As far as I know you should have only one antiResourceLocking or
antiJARLocking true but not both.


On Wed, 15 Dec 2004 14:47:54 -0600, Durham David R Jr Contr 805
CSPTS/SCE [EMAIL PROTECTED] wrote:
 Ok, it looks like setting antiResourceLocking=false solves this
 problem, which kind of makes sense.  Is there a good explanation on the
 tomcat site or elsewhere for this behavior?

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



Re: Reloading JSP's and other resources

2004-12-15 Thread Siarhei Dudzin
That would be because I saw a post from someone on the mailing lists.
Those setings prevent resource locking (such as under windows
platform) when you are trying to access file system or resources
withing jar files.

There is a FAQ:
http://jakarta.apache.org/tomcat/faq/windows.html#lock

p.s. those settings didn't help me to resolve my problem (when I just
import log4j in a JSP). But seem to help most other people.

On Wed, 15 Dec 2004 16:50:24 -0600, Durham David R Jr Contr 805
CSPTS/SCE [EMAIL PROTECTED] wrote:
  As far as I know you should have only one antiResourceLocking
  or antiJARLocking true but not both.
 
 Why would that be, and what exactly do those settings mean?  I've read
 the config docs on the site, but I'm wondering what Tomcat actually
 *does* to implement these features.


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


Re: Tomcat 5.5.4 Ant Task

2004-12-14 Thread Siarhei Dudzin
On Tue, 14 Dec 2004 10:24:33 +0100, Remy Maucherat
[EMAIL PROTECTED] wrote:
 On Tue, 14 Dec 2004 01:13:04 +0100, Siarhei Dudzin
 [EMAIL PROTECTED] wrote:
  Yes, antiJARLocking and antiResourceLocking are not enabled by default.
  Unfortunately, non of them (together and separately) did not help to
  solve my problems...
 
 Try harder, it works. Read the FAQ, and verify that they are actually
 enabled. If antiResourceLocking is enabled, you should notice it, as
 you'll get a cool extended coffee break while Tomcat starts, but you
 cannot possibly get any locking (unless you do really crazy stuff,
 like accessing files directly yourself using harcoded file paths).

I tried it several times and read this FAQ as well. It is enough for
me just to import Log4J in JSP (have no problems with servlets).
However, antiJARLocking didn't make any difference and placing
antiResourceLocking resulted in FileNotFoundException during
deployment.

This is the context.xml file of the application:

Context privileged=true antiResourceLocking=true/

Putting docBase attribute did not help. 

I would be very grateful if you could post a content of working
context.xml or point me to what's wrong. I digged through all the
mailing lists and forums but couldn't find the solution.

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


Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Siarhei Dudzin
Yes, antiJARLocking and antiResourceLocking are not enabled by default.
Unfortunately, non of them (together and separately) did not help to
solve my problems...
 
  I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
  work great except the Ant Tasks.  Deploy works just fine but when I do
  the undeploy task the folder that contains my webapp does not get
  removed.  So when I go to deploy again, it says it can't because the
  context already exists.  With 5.0.x the context was removed completely.
  Does anyone know if this is a bug or if the behavior of the ant tasks
  have changed?  I couldn't find anything specifically about this in the
  changelog.
 
 There's a FAQ entry on this:
 http://jakarta.apache.org/tomcat/faq/windows.html#lock

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



Re: Locked jar during Ant undeploy on Tomcat 5.5.3

2004-12-10 Thread Siarhei Dudzin
I've just hit the same problem (with Tomcat 5.5.4).
antiJARLocking/antiResourceLocking didn't help. I tried to set 1 of
those attributes to context on appplication level (in meta-inf
directory) as well on global level (in context.xml in tomcat/conf
directory).

Does anyone know if there is a solution?

Btw, I noticed that I have this problem only with JSP. If I move code
from JSP to a servlet then no locking occurs.

  Thank you for pointing out these redundant attributes.  I applied these 
 changes
   to the context, but got the same results.  If I have time, I'll put 
   together
   a small application that demonstrates the problem and send that to you.
  
  If the issue is real, then I think there will be someone to provide a 
  webapp.
  
 
 Yes, and that person's me! :) I just sent a test WAR that demonstrates the
 problem directly to your Gmail address.  As I'm using Gmane, and Gmane does  
 not
 allow attachments, I could not attach the WAR to this message.

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