Re: [java ee programming] can not able to give access specifer to class declaration

2010-12-02 Thread Georgiana Filote
Hi, It's because in Java, for top-level classes(not inner/nested class) you can have for classes only default or public access level, so if you already have a public class in your file, you cannot declare another public class. Regards, Georgiana On Fri, Nov 26, 2010 at 8:42 AM, SantoshJ wrote:

Re: [java ee programming] HashMap

2010-12-02 Thread Georgiana Filote
Hi, Actually, getAttrib() will return a Map, not only 2 strings(key, value). But with the code that you gave it here, you can do like this: TestHashMap thm = new TestHashMap(); thm.addAttrib("1", "test1"); thm.addAttrib("2", "test2"); Map m = thm.getAttrib();

[java ee programming] HashMap

2010-12-02 Thread Rafał Laczek
Hi Colleagues, I have HashMap. I have also method getAttrib() which returns 2 strings (key, value). I must in any way divide these data and get key and value in 2 separate strings (for example lists). In my application I must display them in to seperate columns. I look for in internet but can't

Re: [java ee programming] Strut

2010-12-01 Thread thiago moraes
There is a good tutorial about spring + struts2 + jpa + ajax http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html but using eclipse instead. I prefer eclipse too. On Sun, Nov 28, 2010 at 8:42 PM, ignacio giagante wrote: > Unbelieve!! It must active the plugin of any framewrok

Re: [java ee programming] Using DLL in Java

2010-12-01 Thread Ali Ekber Çelik
Did you put your .dlls into your */windows/system32* directory? Ali Ekber. 2010/12/1 Seyed Mahmood Hosseini > Hello > Using DLL in Java > I have a working sample program on how to use DLL in java with JNI. I > use to be properly implemented: > /* Test.java */ > public class Test { > /*Load th

[java ee programming] Using DLL in Java

2010-11-30 Thread Seyed Mahmood Hosseini
Hello Using DLL in Java I have a working sample program on how to use DLL in java with JNI. I use to be properly implemented: /* Test.java */ public class Test { /*Load the dll that exports functions callable from java*/ static {System.loadLibrary("TestImp");} /* Name Of DLL : TestImp.dll */

PD: [java ee programming] Eclipse/Maven

2010-11-30 Thread Rafał Laczek
Hi, I have just solved the problem. The project have some subprojects. Commend mvn eclipse:eclipse must be done at each project. Regards, Rafal Dnia 30-11-2010 o godz. 13:22 Rafał Laczek napisał(a): > Hi Colleagues, > > I have imported Maven project from SVN. > Unfortunately myEclipse doesn

[java ee programming] Eclipse/Maven

2010-11-30 Thread Rafał Laczek
Hi Colleagues, I have imported Maven project from SVN. Unfortunately myEclipse doesn t show errors and works simply like text editor. Work in this way is very uncomfortable. I was trying commends: mvn eclipse: clean eclipse:eclipse and others. I have cleaned and built project and nothing helps.

Re: [java ee programming] Strut

2010-11-28 Thread ignacio giagante
Unbelieve!! It must active the plugin of any framewrok which you wish use. And then, the option appear. 2010/11/28 ignacio giagante > HI, > > I ve just downloaded the last version of netbens with 266Mb and look at > this! I don't have the fourth step to choose the framework struts. Please, > Can

Re: [java ee programming] Logging real time system

2010-11-28 Thread Kasim Sert
Hello, I knew log4j has jdbcappender and actually i am using it for logging to flat file.But I am not sure if log4j is suitable for my case, because i will have 4-5 tables(which will be used for reporting purpose) to log and performance is big concern.I am searching some tool that i can do post p

Re: [java ee programming] Logging real time system

2010-11-27 Thread Ravikiran Mane
Hi Kasim, I have seen number of people using Log4J Logging, in production environments, for a variety of applications. You might wanna consider this as a option. Regards, Ravikiran Mane. On Sun, Nov 28, 2010 at 8:23 AM, Kasim Sert wrote: > > Hello, > > İ have a real time system in production

[java ee programming] Logging real time system

2010-11-27 Thread Kasim Sert
Hello, İ have a real time system in production environment and i would like to persist its logs in database.Approximately there will be 5 million records each day.What is the best way to do this without affecting the system and db performance too bad. can you suggest me some document or opinion..

[java ee programming] LAB-4210 struts validation doubts

2010-11-27 Thread Saji
Hi I have doubts why we had defined "zip" vlaue two times in validation.xml , I have cut pasted a part of it showing the two places where you have defined ZIP ### phone ^\(?(\d{3})\)?[-| ]?(\d{2})[-| ]?(\d{4})$ zip ^\d{3}\d*$

Re: [java ee programming] Strut

2010-11-27 Thread Alvin Reyes
Struts 1.3.8 is the most basix j2ee framework i've used and i would pefer you to use eclpise as it has more support and easy to configure. On 28 Nov 2010 10:08, "ignacio giagante" wrote: Hi, I was trying to start with the practice of struts and when I try to create a new web project and choose

Re: [java ee programming] Strut

2010-11-27 Thread John Joseph
giagante Subject: [java ee programming] Strut To: java-ee-j2ee-programming-with-passion@googlegroups.com Date: Sunday, 28 November, 2010, 3:36 AM Hi,  I was trying to start with the practice of struts and when I try to create a new web project and choose the framework, that is not possible

[java ee programming] Strut

2010-11-27 Thread ignacio giagante
Hi, I was trying to start with the practice of struts and when I try to create a new web project and choose the framework, that is not possible, becuase of I'm using Netbeans 6.9.1 and the unique framework which I can choose is Hibernate. How can I configure struts 1.3.8 with Netbeans 6.9.1. ? T

[java ee programming] can not able to give access specifer to class declaration

2010-11-25 Thread SantoshJ
hi, I am creating simple java program i.e. class file. I have written public class with main method to run that program. Also I have written another class into same java file. Here I can not able to give any access specifier to another class code block. Can any one explain me why this will be hap

[java ee programming] Re: cannot understand this section

2010-11-24 Thread Saji
Hi Rammohan I had also faced problems in understanding struts, I am slowly and consistently learning it. I have prepared some notes for my reference. I have copied almost all of it from manning pubisheser "Struts in Action"). My notes is as follow # Struts explanation Struts

[java ee programming] lab 1020

2010-11-24 Thread victor bruno
Hi fellows! I was following the lab on jdbc till the point I got stuck when trying to connect to jdbc:derby://localhost:1527/sample as I can't see it in either way suggested there. What should I do please? Regards -- You received this message becaus

Re: [java ee programming] Exercise 2 StrutsExamples :- Where where editRegistration.do comes

2010-11-22 Thread Joseph John
Thanks Antonio Your Tip helped me it is from the "action.xml" Thanks Joseph John On Mon, Nov 22, 2010 at 9:10 PM, Antonio Gonzalez wrote: > Hi jjk, > > editRegistration.do is a mapping, I give you a tip, > search "editRegistration" in all xml files, and you'll find th

[java ee programming] Newbie help needed for JBoss AS on NetBeans

2010-11-22 Thread Koen Thomeer
I'm normally a PHP&MySQL Developper, but I wanted to try JBoss. I tried to find the solution on the internet, but no ... 1. I installed JBoss 5.1.0 on my ubuntu 10.10 following the guide http://thewiki4opentech.org/index.php/How_to_install_JBoss_AS_in_CentOS_/_RedHat_/_Fedora(but translated to ub

[java ee programming] Exercise 2 StrutsExamples :- Where where editRegistration.do comes

2010-11-21 Thread Saji
Hi I am trying to understand the struts examples on "4207_strutsexamples" . I am working on "Exercise 2: Build and run "struts-example" sample application" In "index.jsp " , there is code like this I am finding very difficult to understand from where "editRegistration.do" is take

[java ee programming] fop.getDefaultHandler());

2010-11-19 Thread Rafał Laczek
Hi Colleagues,   I have added all missing jars. Now I receive communicate as follow: log4j:WARN No appenders could be found for logger (org.apache.fop.util.ContentHandlerFactoryRegistry). log4j:WARN Please initialize the log4j system properly. mpUt is Error   I/O error reported by XML parser

Re: [java ee programming] fop.getDefaultHandler());

2010-11-19 Thread rajesh sawant
Subject: Re: [java ee programming] fop.getDefaultHandler()); Hi Chil-Hoan,   Thank you very much for your detailed response. My problem was with fop jar. I have updated it. Now I create PDF but it is empty... I get following exception (I marked it). The exception refers to FopFactory fopFactory

Re: [java ee programming] fop.getDefaultHandler());

2010-11-18 Thread Rafał Laczek
is simple explanation (Web Based application) to implement PDF document using xml and fo:XSL.  This will give you some idea how to write in Java.   Good Luck   Chil --- On Thu, 11/18/10, Rafał Laczek wrote: From: Rafał Laczek Subject: [java ee programming] fop.getDefaultHandler());To: "Ja

Re: [java ee programming] fop.getDefaultHandler());

2010-11-18 Thread Chil-Hoan Kwon
plement PDF document using xml and fo:XSL.  This will give you some idea how to write in Java.   Good Luck   Chil --- On Thu, 11/18/10, Rafał Laczek wrote: From: Rafał Laczek Subject: [java ee programming] fop.getDefaultHandler()); To: "Java EE (J2EE) Programming with Passion!" R

[java ee programming] fop.getDefaultHandler());

2010-11-18 Thread Rafał Laczek
Hi, Can sobmbody advise me please why by fop.getDefaultHandler())  I get error: The method getDefaultHandler() is undefined for the type Fop.   Thanks for help! Regards, Rafal private   static void createReceiptPDF() throws IOException, TransformerFactoryConfigurationError, FileNotFoundExceptio

[java ee programming] From XML to PDF - please check this code

2010-11-17 Thread Rafał Laczek
    Hi Colleagues,   I have some code from internet and I try to adopt it to my requirements. I’m new in transforming xml into PDF. I decided to use FOP. I would like to ask you to verify this code. In this code I have following problems: 1.  I get ArrayIndexOutOFBoundsException. –My comm

Re: [java ee programming] From XML to PDF

2010-11-16 Thread Chil-Hoan Kwon
/10, Rafał Laczek wrote: > From: Rafał Laczek > Subject: [java ee programming] From XML to PDF > To: "Java EE (J2EE) Programming with Passion!" > > Received: Tuesday, November 16, 2010, 7:57 PM > Hi, > > I'm completely new in it. Some colleagues recomme

[java ee programming] From XML to PDF

2010-11-16 Thread Rafał Laczek
Hi, I'm completely new in it. Some colleagues recommended me to use FOB. Thanks a lot to everybody for advices. I'm looking for the tutorial where there will be any sample presenting whole process starting from xml file until final pdf file. In my project I must create document where there are so

[java ee programming] Re: How to generate PDF from xml

2010-11-16 Thread javacioc
Hi Rafal, you can have a look on Apache FOP (http://xmlgraphics.apache.org/ fop/). Also consider Jasper Reports (http://jasperforge.org/projects/ jasperreports), I remember it should be able to use XML as Data Source. Ciao Gianni On Nov 15, 9:34 am, Rafał Laczek wrote: > Hi Colleagues, > > I

[java ee programming] How to generate PDF from xml

2010-11-15 Thread Rafał Laczek
Hi Colleagues, I need to learn how to generate PDF files from xml. Can you advise me please any sensible learning materials. Thanks in advance for your help! Regards, Rafal -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!"

[java ee programming] Cloud Architecture

2010-11-13 Thread aykut kanyılmaz
Hi, My new projects Simple scenario is so. A user is register itself to my application. User deploy its project war file via eclipse plug in which developed by me And user's project is published. User must not have any idea how to deploy users project. I want to use a lot of PC to serve. My prob

[java ee programming] Re: DigitalClock.class not found.in bookstore2 project

2010-11-08 Thread Michèle Garoche
See here: http://groups.google.com/group/java-ee-j2ee-programming-with-passion/browse_thread/thread/d62e64d4deda7e3a/9f22cc2952ba3d8a?hl=en_US#9f22cc2952ba3d8a I give a method to get the applet clock running, though it may not work on your system. As explained in the thread if it does not work for

[java ee programming] Re: Problem in running "GetParamMetaData.java"

2010-11-08 Thread Michèle Garoche
Saji, Could you give the name of the lab, not a link to it (because it goes simply to the home web page). Michèle Garoche On Nov 2, 7:01 am, Saji wrote: > Hi >    I am going through the work assignment /tutorials > athttp://www.javapassion.com/portal/java-ee-programming-basics

[java ee programming] DigitalClock.class not found.in bookstore2 project

2010-11-08 Thread Saji
Hi I am working on "bookstore" lab , on running "bookstore2" project , I get a message that DigitalClock.class not , I am adding the eror message below.If I can add DigitalClock.java this error will go.But where I could find DigitalClock.java thanks Joseph John load: class clock/Di

[java ee programming] Problem in running "GetParamMetaData.java"

2010-11-02 Thread Saji
Hi I am going through the work assignment /tutorials at http://www.javapassion.com/portal/java-ee-programming-basics-i-with-passion/java-ee-programming-with-passion#JDBC When I run "GetParamMetaData.java" I am getting this error java.sql.SQLException: Parameter metadata not availab

[java ee programming] Lessons ordering

2010-11-01 Thread mp
Hi, Who else considers that the Lessons should be ordered a bit different? I am referring to actually 2 lessons: "Struts Sample Application" and "Struts Validation Framework". "Struts Validation Framework" should be in front of "Struts Sample Application". The homework for "Struts Sample Applicati

[java ee programming] ant deploy error

2010-10-31 Thread JDragon314159
Hi! I am trying to deploy an application from the command line using ant. I type in the following command: - - - "ant -v deploy" I read through the output and seems one of the first problems states the following: - - - "[antlib:org.apache.tools.ant] Could not load definitions from resource org/

Re: [java ee programming] Which bucket does a null key map to?

2010-10-30 Thread AlekseyM
You could look into sources of JDK to learn this... HashMap maintains an array of Entry items and it allows one only item  with the key to be null. Also there are two private methods -- putForNullKey & getForNullKey. Both perform search over the entire table of entries so the get/insert operati

[java ee programming] Learning JMS

2010-10-30 Thread java programming with
Hi All, I want to learn Java Messaging Service. Is there any good book or pdf which will give me good understanding of JMS? Thanks in advance! Regards Makrand -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post t

[java ee programming] Which bucket does a null key map to?

2010-10-30 Thread Nirmal Kumar
Hi All, HashMap allows one key as null but Hashtable does not allow any of the keys to be null. Now if HashMap allows a one key to be null then *"Which bucket does a null key map to?"* * * *Also please tell me in which scenarios one would like to place a null key in HashMap?* *Thanks*, -Nirmal

RE: [java ee programming] File upload using AJAX

2010-10-29 Thread Shiv Shankar
Niño Sent: Thursday, October 28, 2010 8:19 PM To: kunal...@gmail.com Cc: Java SOS Subject: Re: [java ee programming] File upload using AJAX yes is posible, you cand do it with swfupload. and is very simple. 2010/10/27 Kunal Raikar Hi I want to upload file on server without clicking on

Re: [java ee programming] File upload using AJAX

2010-10-29 Thread Alexander Jose Sanchez Niño
yes i have, i found in internet and works so well El 29 de octubre de 2010 03:21, Kunal Raikar escribió: > Hi Alexander > > Do you have any sample code??? > > > > 2010/10/28 Alexander Jose Sanchez Niño > >> yes is posible, you cand do it with swfupload. and is very simple. >> >> 2010/10/27 Kuna

Re: [java ee programming] File upload using AJAX

2010-10-29 Thread Kunal Raikar
Hi Alexander Do you have any sample code??? 2010/10/28 Alexander Jose Sanchez Niño > yes is posible, you cand do it with swfupload. and is very simple. > > 2010/10/27 Kunal Raikar > >> Hi >> >> I want to upload file on server without clicking on submit button(Similar >> to Gmail file attachm

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-28 Thread JKid314159 @ Windows 7
> This is what I have done to get hello2 run in NetBeans 6.8, GlassFish > v3, J2EE 1.5 platform. > 1 - In the hello2 project, you have to change the j2ee.platform=1.4 to > j2ee.platform=1.5 in the project.properties file (Files->nbproject). > Save the file. > 2. Next you change the source/binary

Re: [java ee programming] File upload using AJAX

2010-10-28 Thread Alexander Jose Sanchez Niño
yes is posible, you cand do it with swfupload. and is very simple. 2010/10/27 Kunal Raikar > Hi > > I want to upload file on server without clicking on submit button(Similar > to Gmail file attachment). For that I need to make use of AJAX, Is it > possible to do that? any help will be appreciate

Re: [java ee programming] File upload using AJAX

2010-10-28 Thread Kunal Raikar
Hi Mahesh Can you give me some sample code??? Regards Kunal Raikar On Thu, Oct 28, 2010 at 10:38 AM, Mahesh Kapure wrote: > simple way... > > get the hidden form in ur page in some iframe and put the file input > (hidden) by javascript and then submit that form > > > thank you,

[java ee programming] Re: Why only "CreateCoffees.java" execute when I run "JDBCSamples_mysql" project

2010-10-27 Thread Michèle Garoche
On 28 oct, 07:45, Saji wrote: > Hi Michele >   Thanks for the reply >   My  doubt was that why "CreateCoffees.java" only runs when I run the > project, How is it decided that "CreateCoffees.java" only should run >   I have done the necessary changes for the "con" parameter for all > other  relat

[java ee programming] Re: Checking File size using javascript without using activex

2010-10-27 Thread Michèle Garoche
On 28 oct, 07:09, Kunal Raikar wrote: > Hi > > Is it possible to check file size using javascript without using activex > object??? Since i want to check file size before submiting the form. >From what I know you cannot do it since it would break security. What you can do is checking it once it

[java ee programming] Re: Why only "CreateCoffees.java" execute when I run "JDBCSamples_mysql" project

2010-10-27 Thread Saji
Hi Michele Thanks for the reply My doubt was that why "CreateCoffees.java" only runs when I run the project, How is it decided that "CreateCoffees.java" only should run I have done the necessary changes for the "con" parameter for all other related java files I can create "SUPPLIERS" tabl

[java ee programming] Re: Why only "CreateCoffees.java" execute when I run "JDBCSamples_mysql" project

2010-10-27 Thread Michèle Garoche
On 28 oct, 06:40, Saji wrote: > Hi >    When I am running "JDBCSamples_mysql" I have notices only one table > is created ie "COFFEES". This is because only ""CreateCoffees.java" > is executed. >            Can any one guide me, How  only ""CreateCoffees.java" is > run when the project is run Bec

[java ee programming] Checking File size using javascript without using activex

2010-10-27 Thread Kunal Raikar
Hi Is it possible to check file size using javascript without using activex object??? Since i want to check file size before submiting the form. Thanks in advance -- Warm regards Kunal Raikar -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programm

Re: [java ee programming] File upload using AJAX

2010-10-27 Thread Mahesh Kapure
simple way... get the hidden form in ur page in some iframe and put the file input (hidden) by javascript and then submit that form thank you, Mahesh 9922443380 On Thu, Oct 28, 2010 at 9:53 AM, Kunal Raikar wrote: > Hi > > I want to upload file on server without clicking on su

[java ee programming] File upload using AJAX

2010-10-27 Thread Kunal Raikar
Hi I want to upload file on server without clicking on submit button(Similar to Gmail file attachment). For that I need to make use of AJAX, Is it possible to do that? any help will be appreciated. Thanks in advance. -- Warm regards Kunal Raikar P *SAVE PAPER* - *Please consider our environmen

[java ee programming] Struts Basics - Reusing the ActionForm's validation

2010-10-27 Thread Mike M. Lin
Re: Homework for Struts Basics I want to have a special error page (.jsp) in addition to the indexpassionname.jsp and indexnopassionname.jsp. So my controller HelloAction needs to figure out when to forward the request to the error page. Right now I'm doing something like this in HelloAction.exe

[java ee programming] Why only "CreateCoffees.java" execute when I run "JDBCSamples_mysql" project

2010-10-27 Thread Saji
Hi When I am running "JDBCSamples_mysql" I have notices only one table is created ie "COFFEES". This is because only ""CreateCoffees.java" is executed. Can any one guide me, How only ""CreateCoffees.java" is run when the project is run thanks Joseph John -- You received this

[java ee programming] How to call the methods of .DLL file from Java class

2010-10-26 Thread H@rsh V@rdh@n
Hi, I have a small application which needs integration of .Net DLL file with my Java class. Basically there is a payment gateway that is already developed in the .Net technology and has few exposed DLL files that provides access to the other API. I am looking for a help that shows , How we can rea

RE: [java ee programming] Scriptlet in JSP

2010-10-25 Thread Santhamoorthy, Anna Ramesh
ponse.sendRedirect( anotherUrl ) to send a response to the browser that it should load a different URL From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of Arumaikkani Sent: Monday, October 25, 2010 2:08 PM To

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-25 Thread JDragon314159
Maybe issue with jsp index file and redirect??? -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this

[java ee programming] cannot understand this section

2010-10-25 Thread Rammohan Vadlamani
Hello Everyone, I have been following the java passion tutorials since quite some time now. Now I am into struts. So far each and every section consisted of a lab and exercise. But this particular section '*Struts Sample Applications*' consists of only ready to use programs. I

[java ee programming] Scriptlet in JSP

2010-10-25 Thread Arumaikkani
hi Can any body explain about scriptlet, why we are using, can i make without the scriplet page in jsp? How can i test one of my Jsp file Ex:"login.jsp" .? regards Kani     -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Pas

[java ee programming] My apology for the incorrect "Your subscription will expire" message

2010-10-24 Thread Sang Shin
To: Paying subscribers of JavaPassion.com If you have received the following message yesterday or today indicating your subscription will expire (even though you renewed your subscription), please disregard it. It was sent byy mistake on our part. And please accept our sincere apology. Wha

[java ee programming] richfaces components are not getting displayed on jsf 2.0 tomcat 6.0

2010-10-24 Thread puneet goyal
i am using jsf 2.0 mojarra implementation with tomcat 6.0 and richfacess 4.0. I have imported the required dependencies and the namespace i use is xmlns:rich="http://richfaces.org/rich"; but the richfaces components do not get displayed on the browser and the following is displayed *Warning: Thi

[java ee programming] How to display image in export files in displaytag?

2010-10-23 Thread hayaniouassim
Hello team, I am facing some problem with displaying image in export PDF in displaytag. I am able to export text caption but not an image in the caption, i could not find the solution for displaying image in exported files ( pdf , rtf , excel ). Do I need to write a decorator for this ? Can anyo

Re: [java ee programming] Method Overriding Rules in Java

2010-10-19 Thread Krishnadas Menon
The overridden method should not throw checked exceptions that are new or broader than the ones declared by the overridden method. The above line looks incorrect. It should read as- The overriding method should not throw checked exceptions that are new or broader than the ones declared by the overr

[java ee programming] Re: Method Overriding Rules in Java

2010-10-18 Thread Sergey Nikiforov
Hi, All. Here is the sequence of java access levels: public->protected->default->private As public is the strongest so child's method can only be public. And it can throw only IOException or its subclasses or nothing at all. import java.io.IOException; class Farther{ public void FarthersMe

[java ee programming] Re: Method Overriding Rules in Java

2010-10-18 Thread Mayank Gupta
class Parent{ public void methodA(){ } } class Child{ private void methodA(){ //private method not possible so The access level *cannot be more restrictive* than the overridden method's access level. } } class Parent{ public void methodA() throws IOException{ } } class Child{ pub

Re: [java ee programming] Method Overriding Rules in Java

2010-10-18 Thread Chris K
The access level *cannot be more restrictive* than the overridden method's access level. However the access level *can be less restrictive* than the overridden method's access level. Here is an example: Lets say you are overriding: public void doSomething{} Well you cannot make it: private vo

[java ee programming] Re: Method Overriding Rules in Java

2010-10-18 Thread Jayesh
See the code explains. public class A { protected void test() throws Exception { System.out.println("in A"); } } public class B extends A { public void test() throws IOException { System.out.println("in B"); } } As

[java ee programming] Method Overriding Rules in Java

2010-10-18 Thread Nirmal Kumar
Hi All, Can anyone explain the following Method Overriding Rules in Java: The access level *cannot be more restrictive* than the overridden method's access level. However the access level *can be less restrictive* than the overridden method's access level. The overridden method should not throw

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-14 Thread JDragon314159
OK. Delete the web module for this application. -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this grou

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-14 Thread Michèle Garoche
On Oct 14, 10:29 pm, JDragon314159 wrote: > Where is the configuration file which recaps all??? Somewhere inside: glassFish->domains->domain1->config (assuming you use default domain). It is called domain.xml (Replace the -> by your system delimiter) Michèle Garoche -- You received this mess

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-14 Thread JDragon314159
> The first time I've tried to do it, I could not find a way, so I > simply threw away GlassFish v2 installation and installed it again. > Next I've found a way to do it but I did not remind exactly how. You > should first stop the server, remove any traces of your application in > GlassFish partic

[java ee programming] HttpServletRequest

2010-10-14 Thread Carlos Álvares
Hi there, I need to create a SSO token to let clients applications access content files over a link But to generate the token I need to have an HttpServletRequest, how can I do it?? Thanks -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming wit

[java ee programming] Re: When I create listener and run the project I get error

2010-10-13 Thread Mayank Gupta
posure in programming area, I am > trying my best to become a Java Master >        thanks >           Joseph John > > --- On Thu, 14/10/10, Mayank Gupta wrote: > > > > > From: Mayank Gupta > > Subject: [java ee programming] Re: When I create listener and run the &

Re: [java ee programming] Re: When I create listener and run the project I get error

2010-10-13 Thread John Joseph
t;      */ >     public void > contextDestroyed(ServletContextEvent event) { >         // TODO Auto-generated method > stub >         sessionFactory.close(); >     } > > } > > > > > Mayank > > On Oct 13, 6:48 am, John Joseph > wrote: > >

[java ee programming] Re: When I create listener and run the project I get error

2010-10-13 Thread Mayank Gupta
;   It worked >   U saved my day > > --- On Wed, 13/10/10, Mayank Gupta wrote: > > > > > From: Mayank Gupta > > Subject: [java ee programming] Re: When I create listener and run the > > project I get error > > To: "Java EE (J2EE) Programming with Pas

Re: [java ee programming] Re: When I create listener and run the project I get error

2010-10-13 Thread John Joseph
Thanks Mayank It worked U saved my day --- On Wed, 13/10/10, Mayank Gupta wrote: > From: Mayank Gupta > Subject: [java ee programming] Re: When I create listener and run the project > I get error > To: "Java EE (J2EE) Programming with Passion!" > > Date:

[java ee programming] Re: When I create listener and run the project I get error

2010-10-13 Thread Mayank Gupta
I think you are throwing exceptionthrow new UnsupportedOperationException("Not supported yet."); public void contextInitialized(ServletContextEvent sce) { // throw new UnsupportedOperationException("Not supported yet."); System.out.println("hello world"); } Comment that are print so

Re: [java ee programming] Re: When I create listener and run the project I get error

2010-10-12 Thread John Joseph
) ### --- On Wed, 13/10/10, Jayesh wrote: > From: Jayesh > Subject: [java ee programming] Re: When I create listener and run the project > I get error > To: "Java EE (J2EE) Programming with Passion!" > > Date: Wednesday, 13 October, 2010, 12:24 AM > &

[java ee programming] Re: When I create listener and run the project I get error

2010-10-12 Thread Jayesh
What exception are you getting? UnsupportedOperationException?? It seems like your code is throwing exception when context is initialized. Remove exception and then try. thanks, On Oct 12, 2:22 pm, Michèle Garoche wrote: > On 12 oct, 14:40, John Joseph wrote: > > > Hi Michele > > Thanks for the

[java ee programming] Re: When I create listener and run the project I get error

2010-10-12 Thread Michèle Garoche
On 12 oct, 14:40, John Joseph wrote: > Hi Michele > Thanks for the reply > I have cut and pasted my "MyInit.java" the listener created here > """ > > package org.apache.taglibs.standard.examples.startup; > > import javax.servlet.ServletContextEvent; > import javax.servlet.ServletContextListener;

Re: [java ee programming] Re: When I create listener and run the project I get error

2010-10-12 Thread John Joseph
supported yet."); } } """""" Thanks Joseph John --- On Tue, 12/10/10, Michèle Garoche wrote: > From: Michèle Garoche > Subject: [java ee programming] Re: When I create listener and run the project > I get error > To: "Java EE (J2

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-12 Thread JDragon314159
Hi: I went into the Admin Console and the Error msg is: "C:/eepassion/UnZip/servletbasics/samples/hello2/build/web " > The first time I've tried to do it, I could not find a way, so I > simply threw away GlassFish v2 installation and installed it again. > Next I've found a way to do it but I did

[java ee programming] Re: When I create listener and run the project I get error

2010-10-12 Thread Michèle Garoche
On Oct 12, 7:00 am, Joseph John wrote: > Hi >   I am using NB 6.9.1 , I am practising j2ee > While creating a listener in "HelloWeb" Project in EL chapter in > "http://www.javapassion.com/portal/java-ee-programming-basics-i-with-p..."; > and running the p

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-12 Thread Michèle Garoche
On 12 oct, 04:12, JDragon314159 wrote: > Hi Michele: > > I removed the application from Glassfish v3 but was not able to do > this in Glassfish v2 from the Services tab. Yes, it is difficult to remove an application from GlassFish v2, since there is no mechanism included in the server to do it a

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-12 Thread JDragon314159
Hi Michele: I removed the application from Glassfish v3 but was not able to do this in Glassfish v2 from the Services tab. I also stopped the servers from the Service window. The server from the run menu is set to Glassfish 2 and running under J2EE 1.4. There is not option to run under J2EE 1.5

[java ee programming] When I create listener and run the project I get error

2010-10-11 Thread Joseph John
Hi   I am using NB 6.9.1 , I am practising j2ee While creating a listener in "HelloWeb" Project in EL chapter in "http://www.javapassion.com/portal/java-ee-programming-basics-i-with-passion/java-ee-programming-with-passion#Expression_Language"; and running the project I ge

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-10 Thread Michèle Garoche
On Oct 11, 12:55 am, JDragon314159 wrote: > > Do you stop glassfish v3 before opening glassfish v2.1 (or launching > > the newly configured hello2 project, which is the same from the point > > of view of the server launch). > > OK.  I checked that.  I found out how to stop it.  Then ran with thi

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-10 Thread JDragon314159
> Do you stop glassfish v3 before opening glassfish v2.1 (or launching > the newly configured hello2 project, which is the same from the point > of view of the server launch). OK. I checked that. I found out how to stop it. Then ran with this error??? Caused by: java.io.FileNotFoundException:

[java ee programming] Re: Lab 4005 hello2 Run???

2010-10-10 Thread Michèle Garoche
On Oct 10, 10:28 pm, JDragon314159 wrote: > Hi! > > I ran the original hello2 project with J2EE 1.4 with GlassFish v3. > This succeeded. > > I changed the server to Glassfish2.1.1 and receive the following > message: > > Undeploying ... > While undeploying, trying to stop application in target s

[java ee programming] Re: 4011 - Ant

2010-10-10 Thread Sally
Hi: I got it working today. It is version 1.7.1. Thanks, Sally -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscri

[java ee programming] Lab 4005 hello2 Run???

2010-10-10 Thread JDragon314159
Hi! I ran the original hello2 project with J2EE 1.4 with GlassFish v3. This succeeded. I changed the server to Glassfish2.1.1 and receive the following message: Undeploying ... While undeploying, trying to stop application in target server failed; com.sun.enterprise.deployment.backend.IASDeploy

Re: [java ee programming] Multiple Interface in java

2010-10-09 Thread AnbarasanRajendran
I think you were trying extend an abstract class and 2 interfaces classes. Public class extends implements ,{ } On Sat, Oct 9, 2010 at 11:27 AM, surya joseph wrote: > Hello, > I have a class using generics type which extending one class and two > interfaces, > if any body knows the declarario

Re: [java ee programming] Multiple Interface in java

2010-10-09 Thread surya joseph
The class is not abstract, the fomat is public void methodName. Now i have to use one more interface, I want to know what the format is, public void methodName OR public void methodName. On 10/10/10, AnbarasanRajendran wrote: > I think you were trying extend an abstract class and 2 interfaces

[java ee programming] Multiple Interface in java

2010-10-09 Thread surya joseph
Hello, I have a class using generics type which extending one class and two interfaces, if any body knows the declararion please help me. -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send emai

RE: [java ee programming] Java Deployment

2010-10-08 Thread Nelson Rodrigo - LHQ
ng ü From: Narender Kumar Rajput [mailto:narender.n...@gmail.com] Sent: Friday, October 08, 2010 12:39 PM To: nelson.rodr...@loadstarlk.com Subject: Re: [java ee programming] Java Deployment that is not open On Fri, Oct 8, 2010 at 9:08 AM, Nelson Rodrigo - LHQ wrote: Dear Friends I thi

RE: [java ee programming] Java Deployment

2010-10-07 Thread Nelson Rodrigo - LHQ
rodr...@loadstarlk.com Subject: Re: [java ee programming] Java Deployment Hi Nelson, In the same fashion as you kept your application in your localhost you need to keep under the common server. If you are using tomcat then put your application under $TOMCAT_HOME/webapps. cheers! On Fri, Oct 8, 2010 at 9:0

[java ee programming] Re: 4011 - Ant

2010-10-07 Thread Michèle Garoche
On Oct 8, 4:38 am, Sally wrote: > Hi! > > I run ant as the following > \NetBeans 6.8\java3\ant\bin\ant > > The build fails with the error message: > > Class org.apache.tools.ant.taskdefs.conditions.Not doesn't support the > nested "antversion" element That means that either in NetBeans or somewh

<    1   2   3   4   5   6   7   8   9   10   >