Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Friday, July 31, 2015

The declared package does not match the expected package “”? (100/285 technotes for 2015)

The issue description:

The declared package “org.jboss.as.quickstarts.helloworld” does not match the expected package “main.java.org.jboss.as.quickstarts.helloworld” HelloService.java /jboss-helloworld/src/main/java/org/jboss/as/quickstarts/helloworld line 17 Java Problem

image




Resolution:


To resolve this issue.

Right click on the the project → Properties → Java Build Path → Source

Click on the project →


image


Add a new Source folder src/main/java


image


Remove the old src folder


image

Saturday, February 28, 2015

How to add Maven repository in Eclipse?

image
image
image
image


After this step, there will be a folder created under the current user settings - C:Usersjoyjia.m2repository


image

Eclipse “cannot find the tag library descriptor”

Step1. Right click on the project and select import

image

Step2. Goto - C:xxxapache-tomcat-7.0.57webappsexamplesWEB-INFlib

image

Step 3. After importing add the jars to the project

image
image

How to Configure Tomcat 7 Eclipse Luna IDE for JEE Developers

Step 1. Install Java 

image

Step 2. Download Tomcat from web site to a location where you want to install Tomcat. for eg: C:xxxxapache-tomcat-7.0.57

Step 3. Create environment variables 

JAVA_HOME=C:Program FilesJavajdk1.8.0_25

JRE_HOME=C:Program FilesJavajre1.8.0_25

Step 4. Download eclipse and unzip at a proper location C:xxxxeclipse-jee-luna-R-win32-x86_64

image

Step 5: Follow the remaining steps below to configure tomcat in eclipse

image
image
image

Double click on the server and select the server location -> to use Tomcat installation.

image


Step 6. Configure Users and Groups for Tomcat

Open tomcat-users.xml file under C:xxxxapache-tomcat-7.0.57conf and add the user and the roles.

 <role rolename=“manager-gui”/>
 <role rolename=“admin-gui”/>
 <user password=“tomcat” roles=“manager-gui,admin-gui” username=“tomcat”/>


Step 7. Start the server. The admin console url is http://localhost:8080/

image