473,794 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to deploy servlets on Jetty???

29 New Member
Hi….Everyone
Anyone can tell me how to deploy servlets on Jetty server? Where I’ve to put my classes? Anything I’ve to do with ClassPath?
Many thanks in advance
Mar 15 '07 #1
1 2674
N002199B
41 New Member
Hi….Everyone
Anyone can tell me how to deploy servlets on Jetty server? Where I’ve to put my classes? Anything I’ve to do with ClassPath?
Many thanks in advance
I think there should be a config or readme.txt file in the installation folder or lib or bin or conf subfolders of your Jetty Server. Read through those and you will get the specific directories to put your classes. Setting your classes directory in the Jetty server or at least remeber it. Those will be the classes run when the Jetty server runs.

As for the classpath, java has a way of being told to run classes from specifies folders. You can add a-:
  • "." at the end of classpath variable in WINDOWS NT platform
  • set CLASSPATH=%CLAS SPATH%;. in command mode or AUTOEXEC.bat of other WINDOWS
  • set CLASSPATH=%CLAS SPATH%:. and export CLASSPATH in linux

With this, "." - fullstop, in the classpath variable, you will make running the java command look for classes in that current direcory.
Mar 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
5365
by: BigAl | last post by:
I am using the following code in a servlet to send data back to a J2ME application:
2
5466
by: N.K. | last post by:
Hi, I'm using Tomcat 7.2 and I'm trying to deploy an aplication that uses JSP and servlets. I'm actually trying to duplicate a production server but can't get it right. In the directory /whatever/java/tomcat4/webapps I have two other directories called ROOT and test. Under both ROOT and test there is a WEB-INF directory where web.xml file resides. Also, both ROOT and test have login.jsp files. When I type the URL...
3
6541
by: Jose Munoz | last post by:
Hi all, I want to share some data for all my applications (servlets and jsps). For this i am using a JSP to set the variables with scope=application. When i get this data from some JSP all is o.k, i can see the data that i saved, but when i get access with my servlets, i can't see data saved prev. My request is simple: save data with a JSP and read this data with servlets.? please if you send me a small sample to do this. or tell me...
0
2015
by: witichis | last post by:
Hi, using jetty 4.2.9 on redhat with sun jdk 1.4.2_01-b06 When using virtual hosts the java process dies after a few minutes while the CPU load goes slowly from 100% to zero (e-function?) on that process. Without virtual hosts jetty usually runs for months (no restarts necessary) on this setup. There is nothing unusual in the logs or stdout/stderr during that.
0
1447
by: Richard | last post by:
Hello! I have 2 questions regarding Xindice (http://xml.apache.org/xindice/): 1) Does anyone know how to set the encoding??? Normaly im using encoding="iso-8859-1" in my xml-files, this makes it possible to use swedish characters. The problem is that every time im pulling someting out from Xindice the encoding is lost, and all my swedish characters are turned to crap.
3
1963
by: Bit Byte | last post by:
I have written a custom servlet engine (and "wrapper" servlets) for some legacy code (C/C++) that I have. The servlets contain the bulk of my 1st 2 layers in a 3 tier architecture - i.e. data layer and business logic layer respectively. Is it technically possible to use my servlets for the first two layers and then use ASP.Net for the presentation layer (i.e. using webforms etc)? The obvious "bridge" would be SOAP, but I want a more...
0
1995
by: ank99 | last post by:
hello...i m trying to run servlets(using GET) from wml page..... using apache tomcat 5.5 server and WinWap for Windows(version 3.2.1.28.)....its working fine as far as just to display wml form page... but when i enter the data within wml page(i.e. compname) then address within browser gets to http://localhost:8080/servlets-examples/servlet/portsam?compname=abc-b39ea2eee69 as per required but it says it could not get required URL(HTTP Error...
1
2784
by: ank99 | last post by:
hello...i m trying to run servlets(using GET) from wml page..... web server : apache tomcat 5.5 server WAP Browser: WinWap for Windows(version 3.2.1.28.).... its working fine as far as just to display wml form page... but when i enter the data within wml page(i.e. compname) then address within browser gets to http://localhost:8080/servlets-examples/servlet/portsam?compname=abc-b39ea2eee68 as per required but it says it could not get...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.