Re: [java ee programming] Re: NetBeans 6.8 / JSE6 / JEE6

2010-04-05 Thread Mihai DINCA
Hi Michèle I see the difference. I didn't see the "Standard Deployment Descriptor (web.xml)" option. Thank you. mihai miga a écrit : On Apr 5, 10:29 pm, Mihai DINCA wrote: Hi Mich�le Thanks for the tip. I tested and it works perfectly. So, the only thing I d

Re: [java ee programming] Re: NetBeans 6.8 / JSE6 / JEE6

2010-04-05 Thread Mihai DINCA
Hi Michèle Thanks for the tip. I tested and it works perfectly. So, the only thing I did was manually adding a "web.xml" file to the WEB-INF directory (the same that contains sun-web.xml) with only this content: * ** http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org

[java ee programming] NetBeans 6.8 / JSE6 / JEE6

2010-04-04 Thread Mihai DINCA
Hi, I tried the first labs "4001_webappstructure.zip " in NetBeans 6.8 with Glassfish 3, both with JEE5 and JEE6. It worked perfectly in the both cases, but, of course, there is no web.xml file in the ca

Re: [java ee programming] Re: [javaee_advanced] Need this PDF

2010-04-01 Thread Mihai DINCA
Hi Kamala I took the previous session of the training, but I will take it again (as it was a little reorganized). The first part starts now with servlets and JSP and goes up to Struts (the details came from the Struts presentation). It is about Struts 2, but I don't know how exactly it is org

Re: [java ee programming] Re: [javaee_advanced] Need this PDF

2010-04-01 Thread Mihai DINCA
Hi Kamala Then join us on "www.javapassion.com" (89US$/year for all the knowledge you can sip online). The "Java EE Programming Basics I (with Passion!)" (just started from March 11th, 2010) includes Struts (MVC Framework, Struts Basics, Step-By-Step Guide, Struts Tags, Struts Advanced, Strut

Re: [java ee programming] Can we write a constructor in Servlets?

2010-03-30 Thread Mihai DINCA
Hi Nirmal, 1. There is a constructor somewhere in the servlet class hierarchy, but, as it is directly called by the server (you never make a "new" for a servlet), you don't care about it. When the servlet is created, the "init()" method is called immediately. So, if you have something to init

Re: [java ee programming] What is J2EE in few words? (EOM)

2010-03-23 Thread Mihai DINCA
Hi To return to the origins, Java was not conceived as a dedicated language for business applications (like Cobol), but rather as a general-purpose language (like Pascal - to perpetuate the analogy). But there is a big advantage to use Java for business applications because of its portability

Re: [java ee programming] Re: lab 4001 : web.xml is not created after build and run

2010-03-10 Thread Mihai DINCA
Hi, Here is the clue: Hope it helps mihai miga a écrit : On Mar 10, 4:04 am, neetika mittal wrote: Hi All, Need help again.I don't see web.xml under WEB_INF. Looks like it is not generated by the IDE.I can see sun-web.xml. Can any body tell what is missing in installation .I have

Re: [java ee programming] How to create web app in netbeans 6.8

2010-03-08 Thread Mihai DINCA
Hi Neetika Go to "Tools" -> "Plugins". In the "Installed Plugins" you should find (at least): -- Java SE -- Base IDE -- Java Web and EE If "Java Web and EE" is missing, then install it from "Available Plugins". If they are not missing, but you still have the problem, please check your Java

Re: [java ee programming] I can't submit my exercise to j2eehomewo...@sun.com

2010-03-04 Thread Mihai DINCA
Hi Minginn The address changed from j2...@sun.com to j2...@javapassion.com. So just send the homework to j2eehomewo...@javapassion.com. Hope it helps mihai minginn a écrit : Hi everyone.. I tried to send my homework exercise to j2eehomewo...@sun.com as instructed but I kept on received messa

Re: [java ee programming] Lost the database connection after 10 hours in hibernate

2010-02-19 Thread Mihai DINCA
Hi You must look the logs (Tomcat logs, MySQL logs, OS logs ...), maybe there is something there. Tomcat maintain a pool of database connections. I.e. there are some already established permanent connections to the database. It is possible to configure the OS and/or the database (I don't know

[java ee programming] Re: PLEASE HELP ME

2010-02-19 Thread Mihai DINCA
Hi Jiju In my NetBeans 6.8 I can select from the menu "File" -> "New Project", then in the dialog box: "Java Web" -> "Web Application". If you cannot do it, it may happens because your NetBeans is missing some plugins. When installing, I had chosen the "complete" installation (column "All" o

Re: [java ee programming] Please HElp

2010-02-18 Thread Mihai DINCA
Hi It is not easy to fully explain how to do. But, you can try to start by: - Start NetBeans - From the menu: File -> New Project - In the dialog box: Java / Java Application - Accept default settings and be sure that "Create Main Class" and "Set as Main Project" checkboxes are checked - NetBean

Re: [java ee programming] Database tables from entity classess

2010-01-31 Thread Mihai DINCA
Hi Michał There is an UML plugin for NetBeans (installed in standard I think) that allows to make reverse engineering. There is a NetBeans plugin dedicated to DB modeling (the "Mogwai ERDesignerNG"), but I don't know if you can directly use your entity classes or the derived diagrams or if you

Re: [java ee programming] TCP/IP IBM iSeries (AS400) Connection.

2010-01-31 Thread Mihai DINCA
Hi Ervin IBM supplies an "IBM Toolbox" containing the .jar libraries containing the JDBC driver to access to DB2 on iSeries. The "Toolbox" installs on Windows when you install the Windows client/console to access the iSeries as server (I don't remember how it is called). Once you installed yo

Re: [java ee programming] problem with session.invaDate();

2010-01-30 Thread Mihai DINCA
Hi Hind, Your servlet may execute event if there is no current session (i.e. no session was started or the session was invalidate). In order to prevent the execution outside a session, you have to: -- Check explicitly inside the servlet if there is a current session and issue an error if there

Re: [java ee programming] java in future

2010-01-30 Thread Mihai DINCA
Hi Aykut Don't worry, Java will not die, as C and C++ did not die. Like C, Java was created for hardware independence (but at a more "applicative" level than C), and allows important software editors and hardware constructors to grant the availability of the old applications on the latest har

Re: [java ee programming] Cannot get Class.forName("com.mysql.jdbc.Driver"); to work

2010-01-07 Thread Mihai DINCA
Hi Ted, The library that contains the class "com.msql.jdbc.Driver" must be in the classpath. To do that, go to the "properties" of your project (right click) and look in the section libraries. You must have the same libraries in the two projects in order to get it working. Hope it helps miha

Re: [java ee programming] HTTPResponse delivery problem

2009-12-22 Thread Mihai DINCA
Hi Mykhaylo, The advantage of the HTTP protocol is that the correspondents are as decoupled as possible. The price to pay is that the server cannot known if the client is still alive to receive the message, unless it provides a sort of acknowledgement. For e.g., the sent HTML code may contain

[java ee programming] Looking for a book editor

2009-12-19 Thread Mihai DINCA
Hi I was contacted by a book editor for a project for wrinting a book on "Writing Java Applications Using NetBeans" - a field book. They canceled the project, but it still turns in my head. Do anyone know a publisher that could be interested in such a subject? TIA mihai -- You received this

Re: [java ee programming] Error In Fetching Data from STRING EMBL File

2009-12-19 Thread Mihai DINCA
Hi Jitesh More details are necessary for a complete diagnostic, but "version number" can be caused by a difference between the JDBC libraries version and the database server version. I don't think the JSP code is the cause. Hope it helps, mihai jitesh dundas a écrit : > Dear Sir/Madam, > > I

Re: [java ee programming] Re: Lab 4010 home work problem

2009-12-15 Thread Mihai DINCA
Hi Peeter, I don't understand very well what you were doing. I see you start first a Tomcat server that works without errors now, then you start a Glassfish server (that include the Tomcat kernel) that provoque errors. Why do you need two servers? Is your application deployed on the Tomcat ser

Re: [java ee programming] Re: Lab 4010 home work problem

2009-12-14 Thread Mihai DINCA
Hi Peter, It seems that the JAVA_HOME works, the new error concern another problem that seems to be known for Tomcat as I found it through Google. Here is the solution "http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/87B9844AF29A886D852570530054F28B";. Hope it helps, mihai pee

Re: [java ee programming] Cannot figure out where tomcat is getting a webapp I dev in netbeans

2009-12-14 Thread Mihai DINCA
Hi Ted Tomcat allows to have the webapps directory in another place than under the installation directories hierarchy. Typically, NetBeans (or any other tool using an embedded Tomcat server) starts Tomcat in ".netbeans\6.7\apache-tomcat-6.0.18_base" directory (figures vary uppon actual version

Re: [java ee programming] Lab 4010 home work problem

2009-12-11 Thread Mihai DINCA
Hi Peeter, From the command line, try to "DIR C:\PROGRA~1" or "DIR C:\PROGRA~2". One of them (let's say "DIR C:\PROGRA~2") behaves like "DIR C:\Program Files (x86)". In this case: set JAVA_HOME=C:\PRGRA~2 It is a real mess the default "Program Files" value when installing programs under W

Re: [java ee programming] Question about LAB4101

2009-12-09 Thread Mihai DINCA
Hi Fernando, If this is the code, than you have an extra closing acolade (see the code below). Hope it helps, mihai fernando pardo a écrit : > hello all: > anyone help me please? > > Im doing the course j2ee java programming the homework that belongs to > lab4101(lab#13)(JSFHelloworld)but i h

Re: [java ee programming]

2009-11-27 Thread Mihai DINCA
Hi Prabu In fact, why do you need to create a new object without using "new"? Of course, there are various solutions - as a nice exercise for all of us, but what is the real actual need? Regards, mihai bilal malik a écrit : > no that is short cut.But I guess behind the scenes new String() is c

Re: [java ee programming] anyone help me lab1020

2009-11-23 Thread Mihai DINCA
Hi In the original code, there must not be a comma "," between "LOCATION_ID" and "int". I.e. must write: "... LOCATION_ID int NOT NULL ..." and not: "... LOCATION_ID/*,*/ int NOT NULL ..." Otherwise, I think the declaration of the constraint on the "LOCATION_ID" line must work, even if I like

Re: [java ee programming] Difference ResourceBundle and Property

2009-11-18 Thread Mihai DINCA
Hi Hani java.util.ResourceBundle is an abstract class: -- It's static method "getBundle( String baseName )" returns a ResourceBundle instance corresponding to the requested "baseName". -- The ResourceBundle object helps you obtain a resource Object or String by its name, using "getObject( String

[java ee programming] Re: doubt-question about 4015

2009-11-14 Thread Mihai DINCA
Hi I think the idea is to do like in the presentation: -- use the index.jsp to "print" to a application scope variable "customerTable" the HTML contents that would display a of customers -- display it effectively in response.jsp through a "" That is how I interpreted it. I hope I was right. Ho

[java ee programming] Re: How about scope of JAVA?

2009-11-01 Thread Mihai DINCA
confused, because now there is less opening in > Software concerns. So dont know what to do. Actually am from chennai > in india, What skill sets or technology i've to learn to survive in > this competitive world. Please assist me. > > Thanks and regards, > KamalaKannan J.S >

[java ee programming] Re: How about scope of JAVA?

2009-11-01 Thread Mihai DINCA
f a programming language/technology. Anyway, it is a good point you brought that precisions. I think we lack a real "IT History Enciclopedia" beyond the spare articles available on the Web. Regards, mihai Undisclosed-recipient a écrit : > On Oct 30, 5:00 pm, Mihai DINCA wrote:

[java ee programming] Re: How about scope of JAVA?

2009-10-30 Thread Mihai DINCA
Hi Kamala Microsoft technologies are very good and supported by very good tools (the most user friendly Visual Studio), made by a company that lives from software, has a very good marketing and really wants to sell that good tools. Under the pressure of the market that largely embraced the vi

[java ee programming] Re: How about scope of JAVA?

2009-10-30 Thread Mihai DINCA
Hi Kamala, It is very dificult to state what is the best technology in the world. For any possible answer there will still be someone to argue. However, Java is the most portable technology, is supported by major hardware manufacturers (Sun, IBM) and is used by a large community. Someone lear

[java ee programming] Re: problem with .war files being read only

2009-10-23 Thread Mihai DINCA
ecurity model applies, then, of course, there might be complicated to make NetBeans working with projects that are not located in the shared directory. The last but not the least observation: on Windows you'd better be an administrator in order to have your work done (even for writing doc

[java ee programming] Re: problem with .war files being read only

2009-10-22 Thread Mihai DINCA
ribue through dos, as well as in windows vista, under the > properties menu. Also, i have tried to copy the unzipped lab homework, > and then work from the new folder. all to no success. Do you have any > suggestions? It's hindering me from moving forward in the class. Thank

[java ee programming] Re: Packages in Java...Need your help

2009-10-20 Thread Mihai DINCA
Hi M M You can compile any .java file with "javac". By default, the .class generated file is stored in the same directory as the original .java file. For e.g.: > cd E:\workspace\pkg\src > javac hellp.java ... or, with the same results: > javac E:\workspace\pkg\src Both "javac" commands pr

[java ee programming] Re: problem with .war files being read only

2009-10-19 Thread Mihai DINCA
line: > cd > attrib -R *.* /S I don't know if it is the same on Vista (I guess yes). Hope it helps mihai Eric Lonnett a écrit : > Thanks for the answer. I am using windows vista though. > > On Mon, Oct 19, 2009 at 2:50 AM, Mihai DINCA <mailto:mihai.di...@free.fr&

[java ee programming] Re: HTTP monitor problem Lab-4011

2009-10-19 Thread Mihai DINCA
Hi Peeter, I'm sorry, it's over my imagination :-( mihai peeter brunch a écrit : > Hello Mihai, > > I am a little lucky than you are, I don't have any error message when > compiled. And the application is using Glassfish V2. > > Regards, > Peeter > > --

[java ee programming] Re: MyHellowWeb variable definition conflict

2009-10-19 Thread Mihai DINCA
Hi Peeter, I think the values of myname1 and myname2 are actually used (the "get" methods). When you split on two lines the warning is gone because nameeq is no longer private, so, as package restricted (the default visibility) it might be read by some other class in the package. In the previo

[java ee programming] Re: problem with .war files being read only

2009-10-18 Thread Mihai DINCA
Hi, I already had this problem, I think it comes from the zipping, extracting and copying files. Under Linux, just make sure that all the files in the project are owned by you (or your group), then "cd" to the project directory and "chmod -R ug+rw *" before opening the project in NetBeans. Ho

[java ee programming] Re: MyHellowWeb variable definition conflict

2009-10-16 Thread Mihai DINCA
Hi, I think that NetBeans (in the 2nd screen) is unable to detect a statement like "String foobar = nameeq" or "System.println( nameeq )" and so on, so it finds that the attribute this.nameeq gets a value but its value is never used, so it issues a warning. This warning doesn't stop the progra

[java ee programming] Re: HTTP monitor problem Lab-4011

2009-10-16 Thread Mihai DINCA
Hi Peeter, Do you have some error messages in the output screen while compiling or executing? On my side I had an error message saying that the MonitorFilter class could not be found in the classpath. Do you have the same message? I think it is silly, but it may happen: did you check in the pr

[java ee programming] Re: HTTP monitor problem Lab-4011

2009-10-13 Thread Mihai DINCA
Hi, I had some problems too. Actions to do: -- Close the HTTP Server Monitor and HTTP Client monitor Windows -- Undeploy all applications from the application server -- Check the checkbox "Enable HTTP Monitor" in the server properties (as you did on page 5 of your .doc) -- Stop the server then (a

[java ee programming] Re: tomacat or Jboss

2009-10-12 Thread Mihai DINCA
Hi, I saw several messages passing concerning HTTP servers versus application servers. [* 1 *]. HTTP servers communicate responses to client requests over HTTP protocol. This protocol was initially conceived for exchanging documents and easily access bibliography (using hyperlinks) through tex

[java ee programming] Re: Servlet run order

2009-10-08 Thread Mihai DINCA
Hi, When you execute in the browser "http://localhost:8080/Hello2";, the server looks for a "welcome page" defined in the "web.xml" file (see "Pages" folder or "" xml entry). When you execute the application by RUNning the project from NetBeans, it may actually start by default the browser with

[java ee programming] Re: A problem: "getServletContext() "

2009-09-17 Thread Mihai DINCA
Hi, Your class is not (yet) a servlet! In order to be one (and to inherit "getServletContext()" method) it must extend "javax.servelt.http.HttpServlet" -- Hope it helps mihai gozlemci a écrit : > Hi there; > I am writing the code in book :"Professional JSP" by Wrox Press Ltd. > and I got the

[java ee programming] Re: Ex2 help

2009-09-14 Thread Mihai DINCA
Hi, Sory for my misunderstanding of the problem: doesn't LAMP stands for "Linux Apache MySQL and PHP"? If true, then servlets cannot execute on it (it is necessary to have a servlet container, like in Tomcat, Glassfish, Websphere, and so on). Just install a Tomcat (for e.g.), then use the "man

[java ee programming] Re: HTTP Monitor problem

2009-09-12 Thread Mihai DINCA
the server -- Stopped and restarted the server After all that, it works for any application (although it still display the error message on deployment) Odd but it works! -- Hope it helps mihai arun saxena a écrit : > u guys need to deploy the project i think once u'll deply it it will >

[java ee programming] Re: HTTP Monitor problem

2009-09-11 Thread Mihai DINCA
Hi, I have the same problem (NetBeans 6.7.1 on Mandriva 2009). I chacked all the check-boxes (both on project side and on server side), restart the server, restart NetBeans and so. The HTTP Server Monitor is still empty. Have you find the fix? Regards, mihai Robert Worrall a écrit : > Hello >

[java ee programming] Re: Populating the E xample Database needs password file‏

2009-09-11 Thread Mihai DINCA
Hi, as we're talking about: I like PSPad "http://www.pspad.com";. It is really freeware (not shareware or the community release with less functions than the commercial one or so) with all functions, it is light ... Regards, mihai Rafael Padron a écrit : > Any other choice is getting Textpad as w

[java ee programming] Re: HELP XML FILE FOR EXCERSISE1

2009-09-07 Thread Mihai DINCA
Hi, Srilaxmi. Just a sugestion: Open in NetBeans the file you want to execute (servlet or JSP file). Then execute it using Shift + F6. This action normally opens the (default) browser and displays in it the very file you selected. The URL displayed in the browser is the one you can type manual