Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!

Joy Vergis

Ranch Hand
+ Follow
since Sep 14, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joy Vergis

I am facing below error while running on server in Eclipse:



System Configuration:
OS: WIndows 8.1 (64-bit)
Tomcat: 8.0.30 (64-bit)
Java: jdk 1.8.0_45 (64-bit)
Maven version: 3.3.9 on C:/
Eclipse: Luna 4.4.2

Steps followed:
1. Configure maven in eclipse
  • Updated the settings.xml file with custom repositories path placed on C:\apache-maven-3.3.9\conf

  • 2. In Eclipse:

  • Click Project-->Preferences-->Maven. Selected the artifacts download options
  • Click Maven-->Installations. Added the maven installation (C:\apache-maven-3.3.9) and set it as default
  • Click Maven-->Templates. Below mention Templates are in "Off" mode
    "m2e profile","m2e-wtp activation,"m2e-wtp JAX-RS activation","m2e-wtp JPA activation","m2e-wtp JSF activation",
    "m2e-wtp's specific context root property"
    .
  • Click Maven-->User Settings. Global Setting,Local Settings point to C:\apache-maven-3.3.9\conf\settings.xml
    LocalRepository points to custom repositores path as below:
    D:\Programs\Maven\Maven_Repositories


  • 3. Created a new dynamic web project (project name: OnlineLibrary). Renamed the src folder as per Maven project strucutre.
    4. Right clicked on project -->Configure-->Convert to Maven Project. Right click on the project-->Maven. Selected Resolve
    dependency from workspace projects.
    5. Added required dependencies to the project.
    6. Project Build successful as per Maven clean, build, install process.


    Please help.

    4 years ago
    Hi,
    Please suggest a good book to understand Spring 4 core module for a new beginner.
    4 years ago
    HI,
    I am a new to Hibernate. I tried to add details to tables using hibernate but get the below error:




    AuthenticateUser:




    LoginServlet:



    Please help.

    HI,

    Please help me in understanding the difference in execution in below 2 codes. I believe both try to perform recursive constructor call but then.

    Code1: Results in runtime error.


    Code2: Results in Compile time error.
    4 years ago
    Thank You L Foster and Henry Wong for helping me understand.

    4 years ago
    HI,
    Please help me understand



    With above, I am using the reference of UserRelated to access the method checkUserInput(String value) as below, it returns NULL Pointer Exception



    But when I try executing the above code after making the below changes it works as expected.

    I believe as this is instance method after making changes as per line no. (2) it works.


    I am unable to understand that if instance of UserRelated is not created at line no. (1), then why method checkUserInput(fname) is accessible at line no (b) and never executes

    Also if null cannot be compared to anything please help let me know if line no.(a) is correct for checking null.






    4 years ago
    Hello,
    I am a new to Java programming. I am reading the oops concept. I am thinking of working on a small project which involves implementing one-to-many relationship. It may further get divided into many-to-one or many-to-many.
    I need help on the below:

    1. Is it possible to implement one-to-many, many-to-many and many-to-one relationships in core java ?

    2. If yes, what are the possible ways one can program one-to-one, many-to-one relationships using core java language ?

    3. Any java tutorial with examples to help me understand the implementation of one-to-one, many-to-one relationships using core java language ?

    4. Please help me on technical approach or planning required for designing any project.
    For example,
    I have to write backend code using core java code for a online portal, then how to decide:
  • On the number of interfaces required.
  • When to implement aggregation/composition.
  • If I need to declare an enum type.


  • Regards,

    5 years ago
    Hello,

    1) It is always a bad idea to post error messages using screenshots. It's better to copy and paste the text of the stack trace. It makes it easier for people to look at the stack trace. In your case, half the stack trace is being cut out.
    Reply: Sorry for posting screenshot

    2) The problem is obviously because it doesn't find the xml in classpath. Have you checked your classes folder to see if the xml file is there?
    Reply: I created the welcomeUser.xml file in application folder. The structure is as below:



    I would like to know the changes to be done in above structure and what path to set in the code so that "spring xml configuration file"(welcomeUser.xml) is available for ClassPathXmlApplicationContext.

    5 years ago
    I am trying to execute a dependancy injection example in eclipse. I get attach error. Request your help to resolve it
    5 years ago
    I am getting error while compiling the below program:




    Compilation error:

    Test.java:4: error: incompatible types
    String s = "Strings are immutable";
    ^
    required: String
    found: java.lang.String
    Test.java:5: error: cannot find symbol
    s = s.concat(" all the time");
    ^
    symbol: method concat(java.lang.String)
    location: variable s of type String
    2 errors
    Press any key to continue . . .

    5 years ago
    I am able to compile the below program but not able to execute.



    Output Error:


    5 years ago
    Problem Statement:
    We have two monkeys, a and b, and the parameters aSmile and bSmile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return true if we are in trouble





    Error Displayed:

    5 years ago
    I am trying a sample struts2 project. I have installed, Tomcat7,JDK7 and import Struts2 api in the project. I get the error at '<struts>' tag in the struts.xml file

    struts.xml



    Error:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'struts'. One of '{"http://
    java.sun.com/xml/ns/javaee":module-name, "http://java.sun.com/xml/ns/javaee":description, "http://
    java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://
    java.sun.com/xml/ns/javaee":distributable, "http://java.sun.com/xml/ns/javaee":context-param,
    "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping,
    "http://java.sun.com/xml/ns/javaee":listener, "http://java.sun.com/xml/ns/javaee":servlet, "http://
    java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-config,
    "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-
    file-list, "http://java.sun.com/xml/ns/javaee":error-page, "http://java.sun.com/xml/ns/javaee":jsp-
    config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/
    javaee":login-config, "http://java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/
    javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/
    javaee":ejb-local-ref, "http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/
    javaee":resource-ref, "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://java.sun.com/
    xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-
    ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-ref, "http://java.sun.com/xml/ns/
    javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/
    ns/javaee":data-source, "http://java.sun.com/xml/ns/javaee":message-destination, "http://
    java.sun.com/xml/ns/javaee":locale-encoding-mapping-list, "http://java.sun.com/xml/ns/
    javaee":absolute-ordering}' is expected.

    7 years ago
    Hi,
    Please suggest a good book on Spring 2.5 I have Spring in action but that book is too lengthy. Suggest a book that explains with help of a sample application


    Regards,
    HI,
    I am asked to design an web application using spring 2.5 framework. In this application multiple users login and do data entry activities simultaneously. I have to design a set of pages which navigate to add,modify the entries. I am dong this using Spring 2.5 mvc. now I am confused on Spring webflow and Spring MVC. i need help to understand the which would be best suited for case as above for multiple pages with multiple operations with multiple request.


    regards,
    7 years ago