Joy Vergis

Ranch Hand
+ Follow
since Sep 14, 2009
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
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:

  • 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.

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



    Please help.


    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.
    8 years ago
    Thank You L Foster and Henry Wong for helping me understand.

    8 years ago
    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.

    8 years ago
    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,

    9 years ago

    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.

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

    Compilation error: error: incompatible types
    String s = "Strings are immutable";
    required: String
    found: java.lang.String 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 . . .

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

    Output Error:

    10 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:

    10 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


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

    11 years ago
    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

    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.

    11 years ago