battle programmers alliance

battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» mini A.I puzzles
Mon Apr 23, 2018 11:38 am by Moti Barski

» java and MySQL
Sun Apr 15, 2018 8:57 pm by Moti Barski

» java convert string to unicode
Sun Mar 25, 2018 8:40 pm by Admin

» java eclipse oxygen grimoire
Sat Mar 24, 2018 8:31 pm by Admin

» problem java dynamic web
Sat Mar 24, 2018 6:10 am by Admin

» auto programming dev
Wed Mar 14, 2018 8:42 pm by Admin

» JAVA design patterns
Wed Mar 07, 2018 9:53 pm by Admin

» vb.net morse ear with net lingo beef up:
Sun Mar 04, 2018 10:30 pm by Moti Barski

» java concept input output class
Tue Feb 20, 2018 7:21 pm by Admin

April 2018
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
2930     
CalendarCalendar
Social bookmarking
Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of battle programmers alliance on your social bookmarking website
Share | 
 

 problem java dynamic web

Go down 
AuthorMessage
Admin
Admin
avatar

Posts : 105
Join date : 2011-08-01

PostSubject: problem java dynamic web   Sat Mar 24, 2018 6:10 am

step one :

install apache tomcat version 9 or higher



C:\Program Files\Java\jdk1.8.0_131\jre

step 2 : conect java eclipse oxygen to the apache (setsuzoku dankai):
tool strip, help, install new software
work with : drop down arrow (select all available sites)
wait while it says panding...

drag down and check the check box with : web, XML, java EE something
wait...
eclipse will ask to be restarted, click yes.

step 3
in the package explorer right click the project folder,
project, web, arrow next to web, dynamic web project

step 4
new run time, choose apache tomcat 9
in browse select the apache install directory
it should be in C:\Program Files\Apache Software Foundation\Tomcat 9.0
finish to exit the new run time sub dialog box and on the main dialog box:
give the project a name

step 5 :
right click the web project you created, configure, convert to maven project
search the maven depository (https://mvnrepository.com) for : glassfish jersey

choose version 2.26 to get to :
https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client/2.26

open port.xml in the project in the package explorer under web-inf
click its dependency tab, add, and fill in the data from the link to the eclipse IDE.
click the pom.xml tab.

step 6 :

paste this above the build tag :
<dependencies>
 <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->
<dependency>
   <groupId>org.glassfish.jersey.core</groupId>
   <artifactId>jersey-client</artifactId>
   <version>2.26</version>
</dependency>

 </dependencies>

(I just copied it from the jersey maven link)

so it looks like :
Code:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <version>2.26</version>
 <packaging>war</packaging>
 <dependencies>
 <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->
<dependency>
   <groupId>org.glassfish.jersey.core</groupId>
   <artifactId>jersey-client</artifactId>
   <version>2.26</version>
</dependency>

 </dependencies>
 <build>
   <sourceDirectory>src</sourceDirectory>
   <plugins>
     <plugin>
       <artifactId>maven-compiler-plugin</artifactId>
       <version>3.7.0</version>
       <configuration>
         <source>1.8</source>
         <target>1.8</target>
       </configuration>
     </plugin>
     <plugin>
       <artifactId>maven-war-plugin</artifactId>
       <version>3.0.0</version>
       <configuration>
         <warSourceDirectory>WebContent</warSourceDirectory>
       </configuration>
     </plugin>
   </plugins>
 </build>
 <groupId>org.glassfish.jersey.core</groupId>
 <artifactId>jersey-client</artifactId>
</project>
step 7 :

add a class
Code:

package com.katonWeb;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("/message")
public class helloWeb {

@GET
@Path("/msg")
public String getMsg() {return "katon gouka mekyaku";}

}
step 8 :
right click project name folder, java ee tools, generate stub to create the web.xml

problems :
1 error message when running :
Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use. The server
may already be running in another process,
or a system process may be using the port. To start this server you will need to stop the other process
or change the port number(s).

2 what to put in the web.xml ?

3 in what url is the message ?

4 I tried reinstalling apache now my error is :

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile https://yotamarker.justforum.net
 
problem java dynamic web
Back to top 
Page 1 of 1
 Similar topics
-
» How to solve problem for dynamic ID changes using selenium
» How Click on Dynamic Objects at Dynamic Positions in Selenium using for loop
» Locating dynamic IDs generated when a new Directory is created !
» Verify command when used with Java,JUNIT and Eclipse
» opera browser not loading the page using selenium Rc(Java)

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: chit chat-
Jump to: