mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

mvn failed with archetype....

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Sam Wun
Hi, I am wondering how to fix the following attached error (mvn command run)? I tried to follow the instruction shown in the following website, but got error. http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html === attached mvn command run === Maven

Re: mvn command line failed with archetype....

2008-08-08 Thread Sam Wun
. - -chris Sam Wun wrote: | Hi, | | I am wondering how to fix the following attached error (mvn command run)? | I tried to follow the instruction shown in the following website, but got error. | http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-09 Thread Sam Wun
Hi, I have just configured Eclipse 3.4 with tomcat in windows vista. The environemt is running JDK1.6 and JRE 1.5, but I have selected jdk1.6 for the enviornemt. When I press the Start Tomcat menu in the Eclispe menu bar, it thrown the following exception in the Eclispe console: 10/08/2008

Can start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
sorry about the preivous email with a different subject. Here is the quest with the right subject name: Hi, I have just configured Eclipse 3.4 with tomcat in windows vista. The environemt is running JDK1.6 and JRE 1.5, but I have selected jdk1.6 for the enviornemt. When I press the Start Tomcat

Re: Can't start tomcat within Eclipse.

2008-08-09 Thread Sam Wun
/jdk1.6.0_10/lib/tools.jar for Classpath Is there anything wrong with my configuration/setup? Thanks Sam On Sun, Aug 10, 2008 at 1:00 AM, Sam Wun [EMAIL PROTECTED] wrote: sorry about the preivous email with a different subject. Here is the quest with the right subject name: Hi, I have just

Tomcat within Eclipse

2008-08-10 Thread Sam Wun
Hi, Can anyone tell me how to resolve the followoing exception? and how do I know whether tomcat service is really running. 11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production

Re: Tomcat within Eclipse

2008-08-10 Thread Sam Wun
Can you tell me how to setup a *userdatabase* for this case? Thank you for your reply. On Mon, Aug 11, 2008 at 5:14 PM, Jens Kapitza [EMAIL PROTECTED] wrote: Sam Wun schrieb: Hi, Can anyone tell me how to resolve the followoing exception? and how do I know whether tomcat service is really

Re: Tomcat within Eclipse

2008-08-11 Thread Sam Wun
Hi, I have the server.xml path defined in Eclipse (3.4): C:\Program Files\Apache Software Foundation\Tomcat 6.0 Where is the startup.bat file? I can't find this batch file. Thanks On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Sam Wun

javax.transaction:jta:jar:1.0.1B

2008-08-12 Thread Sam Wun
HI, I am following an example from the following link, but got error and using maven building the project. http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html I have downloaded jta-1.1-classes.jar and used maven install it in the repository. Output from build process:

Re: Tomcat JConsole

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time

Form design or framework from Eclipse or Tomcat.

2008-08-14 Thread Sam Wun
Hi, I m using Eclipse 3.4 (in Vista) and Tomcat 5.5 (in linux) as J2EE development environment. I want to build a online order form to interact with backend database in linux. I know I can use dreamweaver to create web page (html template), but I don't know how to use it and dont' have the time

simple online order form

2008-08-18 Thread sam wun
Hi, I want to build a simple  online order form with Struts, eclipse, and tomcat (mysql database). Is there any example/tutorial I can follow to create this simple project? I found many tutorials are based on MyEclipse, but I am using Elcipse 3.4. Thank  you in advance.

establsh remote db connection

2008-08-19 Thread sam wun
Hi,  I triedto follow the tutorial shown in the link below http://java.sys-con.com/node/152270  but I amstuck with the mysql location. I haveinstalled mysql database engine in a linux server. Thetutorial I am following on is started in windows Vista with Eclipse 3.4, it assumed we  installed

java version in windows and tomcat server

2008-08-19 Thread sam wun
Hi, when I create a web project in windows Eclipse (3.4), I use jre6. But in my tomcat server (linux), it s using jre5. Do I have to make the jre version to be the same for both platforms? Because if I package it in a war file in windows, the lib  jar files are all in jre6 version. Then when

errors in deploying war file to tomcat 5.5

2008-08-23 Thread sam wun
Hi, I tried to deploy a war file (built from Eclipse in windows) into tomcat 5.5(in linux). I got the following errors: Aug 24, 2008 12:32:46 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost' Aug

Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
- Original Message - From: Edoardo Panfili Sent: 24/08/08 02:28 am To: Tomcat Users List Subject: Re: errors in deploying war file to tomcat 5.5 Edoardo Panfili ha scritto: sam wun ha scritto: Hi, I tried to deploy a war file (built from Eclipse in windows

Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
to see the content of the war file I built from Eclipse? Thanks - Original Message - From: Edoardo Panfili Sent: 24/08/08 02:28 am To: Tomcat Users List Subject: Re: errors in deploying war file to tomcat 5.5 Edoardo Panfili ha scritto: sam wun ha scritto: Hi, I

Re: Re: Re: errors in deploying war file to tomcat 5.5

2008-08-24 Thread sam wun
, then you can right-click on it and Extract All. -- Len On Sun, Aug 24, 2008 at 03:58, sam wun [EMAIL PROTECTED] wrote: Hi, I have downloaded commons-io-1.3.1.jar file and put it in the MET-INF\lib\ folder in Eclipse(3.4). Then I highlight the project name , right click it, select

Re: RE: Tomcat does not unpack WAR file (Tomcat 5.5.20)

2008-08-25 Thread sam wun
hi, I m having the same problem. the war file is not unpack. I have found the following parameters are set in the server.xml file: unpackWARs=true autoDeploy=true I have *deploy* a cat.war file to the following directory: linux:~/tomcat/apache-tomcat-5.5.26/webapps # ls -l total 78

how to reference a class to the current src directory.

2008-08-25 Thread sam wun
Hi there, I have created a Web project using Eclipse 3.4. However, it can't resolve the class reference to the current directory. Here is the project layout and description of the problem: DBTest  src    command CommandExecutor.java     ...     ... DatabaseCommand.java    

Re: RE: how to reference a class to the current src directory.

2008-08-25 Thread sam wun
Thanks and Regards, Ashwin Tandel Email - [EMAIL PROTECTED] -Original Message- From: sam wun [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2008 12:04 PM To: Tomcat Users List Subject: how to reference a class to the current src directory. Hi there, I have created

Re: RE: how to reference a class to the current src directory.

2008-08-25 Thread sam wun
. Chances are that DatabaseCommand is not compiled. Check if you have the class file in bin directory. If not then clean the project and build again Thanks and Regards, Ashwin Tandel Email - [EMAIL PROTECTED] -Original Message- From: sam wun [mailto:[EMAIL PROTECTED] Sent

how to create domain.Order class

2008-08-25 Thread sam wun
Hi, I have a java class file CreateOrder.java with the following coding: package command; import java.sql.Connection; import java.sql.SQLException; import java.sql.PreparedStatement; import domain.Order; /**  * Create Order in the database  */ public class CreateOrder implements

Can't generate class file from Interface

2008-08-26 Thread sam wun
Hi, In Eclipse 3.4 (not sure about the previous version), I have a project, in the src, there is a interface file called DatabaseCommand.java. This file is an interface file. It s content is shown below: package command; import java.sql.Connection; import java.sql.SQLException; public

Can't execute servlet project

2008-08-26 Thread sam wun
HI tere, I have completed a servlet project in Eclipse (3.4). I also made a war.file by seleting the project name (DBTest in this case) and the export command from the Eclipse menu, and export it to the Tomcat 5.5.26 server in linux using manager. However when I click on the project name

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
research on what you want to do. It looks like you are trying to expose an ArrayList stored in the request scope, but the jsp can't find it, hence the error. Where is this object supposed to come from if you didn't create a bean? --David sam wun wrote: HI tere, I have completed

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
designed to be run on it's own. Try http://localhost/DBTest/ListCustomers in your browser. That should hit the servlet which in turn should generate the required bean and forward the user to your jsp. --David sam wun wrote: Hi, thanks for trying to help. I dont' have a clue

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
programming. I would recommend finding some tutorial material that focuses on servlet/jsp programming, ignoring IDEs like Eclipse. --David sam wun wrote: HI there, It sounds logical, but there is no LIstCustomers in the DBTest folder. Thanks Sam

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
URLs to servlets. --David sam wun wrote: I got a similar web.xml, but the is different. Here is the entire content of my web.xml. ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001

Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
-mapping ... /servlet-mapping part of web.xml is all about -- mapping URLs to servlets. --David sam wun wrote: I got a similar web.xml, but the is different. Here is the entire content of my web.xml. ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4 xmlns

Re: Re: Re: Can't execute servlet project

2008-08-27 Thread sam wun
BTW, where should I place the web.xml file in the tomcat server? The web (root) execution path of my tomcat server is: /tomcat/apache-tomcat-5.5.26/webapps/DBTest Thanks Sam - Original Message - From: sam wun Sent: 28/08/08 02:45 am To: Tomcat Users List, Tomcat Users List

Re: Re: Can't execute servlet project

2008-08-28 Thread sam wun
and it's installed on your local workstation). That's what the servlet-mapping ... /servlet-mapping part of web.xml is all about -- mapping URLs to servlets. --David sam wun wrote: I got a similar web.xml, but the is different. Here is the entire content of my web.xml

Re: Can't execute servlet project

2008-08-28 Thread sam wun
  naming-factory.jar    servlet-api.jar ..  jasper-compiler-jdt.jar  jasper-runtime.jar   naming-factory-dbcp.jar  naming-resources.jar If I need to have that, where can I download it? Thanks - Original Message - From: sam wun Sent: 28/08/08 04:44 pm To: Tomcat Users List Subject

Re: Re: Can't execute servlet project

2008-08-28 Thread sam wun
of it? Thanks Sam - Original Message - From: Pid Sent: 28/08/08 06:47 pm To: Tomcat Users List Subject: Re: Can't execute servlet project sam wun wrote: Do I need to put mysql driver in the common/lib/ directory in linux? Yes, that's a basic requirement. If I need to have

Why GlassFish

2008-08-28 Thread sam wun
Hi, Just a quick question, I found that Tomcat is quite capable with servlet application, but lack of EJB support. Is GlassFish designed to fill the gaps to support EJB application only? Thanks

Monitor contanier

2008-08-29 Thread sam wun
Hi there, What can I use to monitor tomcat container? Thanks

Re: Can't execute servlet project

2008-09-01 Thread sam wun
To: Tomcat Users List Subject: Re: Can't execute servlet project sam wun wrote: Do I need to put mysql driver in the common/lib/ directory in linux? Yes, that's a basic requirement. If I need to have that, where can I download it? The MySQL site - you could probably

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
that article I would recommend is don't add ?autoReconnect=true to the end of the mysql database url. Instead, add validationQuery=select 1 to the Resource ... / element in your context.xml file so connections are tested and regenerated as needed. --David sam wun wrote: HI there, I

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
and standard.jar in your WEB-INF/lib directory? --David sam wun wrote: Hi, I have added testdb.jsp in the following path in Suse linux (the tomcat server): /tomcat/apache-tomcat-5.5.26/webapps/DBTest/ The content of the testdb.jsp code is: %@ taglib uri=http

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
servlet project Hmmm... good question. I moved over to Maven and don't manually download these any more. This looks like it should do the trick: Try http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi --David sam wun wrote: Hi David, No, I don't have

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/09/08 01:23 am To: Tomcat Users List Subject: Re: Can't execute servlet project Download the binary zip file and expand it. Within it is a lib directory with just standard.jar and jstl.jar. --David sam wun wrote: I just went to the website , very confused. The taglib file

Re: Can't execute servlet project

2008-09-02 Thread sam wun
/TestDB/res-ref-name     res-typejavax.sql.DataSource/res-type     res-authContainer/res-auth   /resource-ref /web-app - Original Message - From: sam wun Sent: 03/09/08 01:41 am To: Tomcat Users List Subject: Re: Re: Can't execute

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
common/lib (for tomcat v 5.5) or /lib (tomcat v 6). You can also take a look at tomcat's JDBC Datasource howto's on the tomcat website for your version of tomcat which offer a lot of help. --David sam wun wrote: Thanks David, After copied the jstl and standard dot jar files

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
on the tomcat website for your version of tomcat which offer a lot of help. --David sam wun wrote: Thanks David, After copied the jstl and standard dot jar files into the directory: linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/lib # ls . .. jstl.jar mysql-connector

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html --David sam wun wrote: Here is the mysql-connector jar file I got in the common/lib directory: linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql* mysql-connector-java-5.1.3-rc-bin.jar Is thsi the correct

Re: Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/conf # do I need to remove DBTest.xml and web.xml here? Thanks Sam - Original Message - From: sam wun Sent: 03/09/08 11:13 am To: Tomcat Users List Subject: Re: Re: Can't execute servlet project After moved the context.xml file to /tomcat/apache-tomcat-5.5.26/conf/Catalina

Re: Re: Can't execute servlet project - it works now

2008-09-02 Thread sam wun
. --David sam wun wrote: After moved the context.xml file to /tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost/ with the content changed to: Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable

Good JSP editor

2008-09-06 Thread sam wun
Hi there, I know it is better for me to ask this quetion in a jsp forum, but I couldn't find one for mailing list . And you guys are very helpful too in terms of this experience. If you are  using a good jsp editor, can you tell me where its download link? My current development

Tomcat tutorial

2008-03-27 Thread Sam Wun
Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from the web? Thanks S Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
this webpage. Thanks S tomcat.apache.org has a couple, but not as good as others. On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote: Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from the web? Thanks S

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
? Thanks sam On Fri, Mar 28, 2008 at 3:17 PM, Sam Wun [EMAIL PROTECTED] wrote: - Original Message From: Patrick Fong [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 28, 2008 2:53:49 PM Subject: Re: Tomcat tutorial I find

Usage of Hibernate

2008-04-06 Thread Sam Wun
Hi, I am new to Hibernate. From googl'ing around, I found that Hibernate is designed for mapping object classes and database. But this doesn't entirely solve my puzzle on this framework, that is what it's distinct advantage over simple usage of JDBC? UnlessHibernate has another

Why use SOAP in Java

2008-04-09 Thread Sam Wun
Hi, I am wondering why use SOAP with Java? Since SOAP is based on RPC, I think the best question may be asked, why use RPC for client-server application? Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Deploy application from Eclipse (windows) to Tomcat (in linux).

2008-08-01 Thread Sam Wun
Hi, Is there any user guide I can read thru for deploying applicatoin from windows eclipse to linux tomcat? I am using tomcat 5.5 Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

example about deploy application from windows eclipse to linux Tomcat

2008-08-02 Thread Sam Wun
Hi, Can anyone link me an example about deploy application from windows eclipse to linux Tomcat? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-02 Thread Sam Wun
why not use Linux? On Sun, Aug 3, 2008 at 10:02 AM, Glyn Thomas [EMAIL PROTECTED] wrote: I am in the process of converting a Tomcat front end for a MySQL database from Windows XP to Windows Vista. The XP version used MySQL Version 5.0.22, Tomcat 5.5.20, JRE 1.5.0 release 12 with Tomcat