Hi,
Does anybody know how I can map a page? I want that my
www.test.com/test/login.jsp page immediately shows when I look at
www.test.com/test. How does the context look?
Thanks Pieter
Hello!
I am having problems with my Context. Below are snippets from my
httpd.conf and server.xml files:
-- httpd.conf --
ServerName www.matlaget.org
DocumentRoot /var/www/matlaget
WebAppDeploy . conn /tom
-- server.xml
I try to create a new context.
I added the new context in uriworkermap.properties but I can not use this
new context.
I received 404 error.
Why ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email
Manav,
From the reading I've done it seemed as if you needed a Context but hey, it
works without one. Perhaps you need it if, as you say, you need default
initializations to appear. I wonder how this would be done on a public
production server. I can't imagine letting us
Hello,
Prostrating my self to a tongue lashing, can any one tell me why I am getting the
500 error:
HTTP Status 500 - No Context configured to process this request
? In my server.xml I have defined:
where it resides:
c:/
/tomcat/webapps/myapp/
.etc
Appreciated
Hello,
Prostrating my self to a tongue lashing, can any one tell me why I am getting the
500 error:
HTTP Status 500 - No Context configured to process this request
? In my server.xml I have defined:
where it resides:
c:/
/tomcat/webapps/myapp/
.etc
Appreciated
Hi all,
I put some name-value properties in the context putting them in the web.xml
in this way:
companyName
My Company, Incorporated
Is this right?
Now I need to read them from within my classes... How can I do?
Is there someone who have a sample java code to give me?
Thanks
I have a context currently defined in server.xml as:
It is deployed as a single war file mycity.war. This works fine. But,
now I want the context created by this to be equivalent to the root
context. I thought I could add
What is required to redirect the root context to another context, with a relative path
name rather than an absolute path name?
can I just response.sendRedirect("/webapps/othercontext/");
Or is there additional con
Hi,
Turn off autoDeploy in the Host element in server.xml.
Yoav Shapira http://www.yoavshapira.com
>-Original Message-
>From: Frank Morton [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 02, 2004 10:30 PM
>To: [EMAIL PROTECTED]
>Subject: root context equivalent to
Hello,
Sorry for barraging the list with questions - I'm trying to migrate
quickly, so I'll hopefully quiet down in a day or so.
When I create a host and a context in that host I restart tomcat and
several other contexts appear.
For instance I create a default context (i.e. /) and
Hi all,
I need to know the context path of my web app. If I have a
HttpServletRequest req, I can get
String contextPath = req.getContextPath();
Now, what can I do within init()? I havn't got a
HttpServletRequest there. How do I get the context path?
Thanks in advance.
Andreas
In tomcat3.x, a URL like "http:/mycomputer/servlet/someservlet"
would be redirected to "http:/mycomputer/ROOT/servlet/someservlet"
or to whatever was defined as the default context.
So far I have not been able to get this behavious in tomcat4.x.
Redirect and Rewrite won
hi Guys,
I'm running tomcat 4.x on windows xp and I'm trying to add a context to
I get the following exception:
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
java.lang.NullPointerException
at java.io.File.(File.java:180)
the whole thing to be jsp enabled. I have some webapps set up and
working, but I can't get Tomcat to serve out of the root context. I am
guessing that I either need to set the Root context to be the same as
Apache's document root, or set Apache's document root to the default
Root co
Hi,
I can't seem to access files that are in a defined context in server.xml
unless the directory that is being specified has all the read permissions
set.
At the moment I have to change the permissions and restart tomcat to make
the directory recogised and accessable through the web,
Hi,
I am using Tomcat 4.0. The problem I am having is that I can't get the root
context relative to my web site, as in the format www.domainname.com/, to
point to my own servlet AND still use the "default servlet" to handle file
extensions which my servlet does not cater for. I
Hi.
I'm having a problem with my Tomcat-4.0.4 running on solaris. I want
Tomcat to create a default context for every user who has a
".public_dw3/tomcat" in their home dir. To accomplish that, I have edited
server.xml and added the following lines in the -tag:
This wor
Hi,
Is there any way to get the web-app context (as it appears in the url) during
servlet.init(ServletConfig config){} ?
e.g.
myserver/mycontext/index.html
context = "mycontext"
myserver/index.html
context = ""
Thanks
Nathan
;[EMAIL PROTECTED]'
> Oggetto: Context
>
>
> Hi,
>
> Does anybody know how I can map a page? I want that my
> www.test.com/test/login.jsp page immediately shows when I look at
> www.test.com/test. How does the context look?
>
> Thanks Pieter
>
hi, I have a servlet that I want to map to the root context, I removed
ROOT.war and copied my war file (foo.war) to the webapps folder and
added the following to server.xml:
I can now access the servlet by hitting localhost/servlet/servletname
but I can also still access the
I have Tomcat plugged into Apache, and all works well. However, I want to be able to
place .jsp files *in* the Apache document directory structure and have them handles by
Tomcat. I tried to create a Tomcat context like so:
This does indeed let me put JSP pages in the Apache directories
I have Tomcat plugged into Apache, and all works well. However, I want to be able to
place .jsp files *in* the Apache document directory structure and have them handles by
Tomcat. I tried to create a Tomcat context like so:
This does indeed let me put JSP pages in the Apache directories
Hello there,
I tried following the instructions of how to manage the admin context in
Tomcat 3.2.3, yet could not understand what to do...
what is the "trusted" attribute in the tag in server.xml? where do
I need to define users? in tomcat-users.xml? which role does the admin have
We have configured Tomcat & Apache to execute JSPs from the Apache document directory,
for two web servers running on the same box. We were able to do this via virtual hosts
and manual configuration of the JKMounts... however, there's one issue I can't
resolve..
With this setup, now /servlet m
Dear All,
I using JNDI in JBOSS for remote an object, so I cann access the object from JBOSS...
several of it is a EJB class.
but, in Tomcat 4.01 there is a jndi feature...
is this component can implement my script that run in JBoss
Frans
Hello again!
I am resending my email about my Conext/DB problem hoping that someone
will take a look at it now. =)
Have I configured my Context incorrectly? All documentation I have read
suggests that I have done things the right way. But since it is the
first time I am doing this kind of
Hi All,
I see that when you run tomcat in a out of procee mode you can do things
like context isolation (i.e running contexts in a different VMs) etc. Is it
possible to do such things when tomcat is run in stand alone mode?
Thanx
Ganesh
Anyone know how to access an application-wide context-param from a servlet?
Hi
How do i set up connection Pooling with JNDi context I browsed the
archives and did all that were suggested
but still it doesn't work . What i need to do to work this Connection
Pooling !!
<%
try {
InitialContext ctext = new InitialContext();
System.out
Title: Datasources context ?
I have got this error
Name java:comp is not bound in this Context
When I try the following code :
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:com
Hi all, I'm using tomcat 4.0, and I have setup a context /test under
server.xml
I have two file, blank.html and blank.jsp under /test. Both file are blank
html files.
but the problem is if I access http://localhost:8080/test/blank.jsp , it
tells me
message Servlet jsp is curr
does anyone know how to share a taglib from one
context to another? therefor you would set up a base context and all other
contexts would use it's taglibs.
--
C. Jason Benedict
sub dir being
a student username, I need my students to be able to ftp jsp files into
their accounts for testing. I presume I need to setup a new context that
referes to d:\studentwork but when I tried this it either still gave me the
source code rather than executing the file or it stopped serving f
Can anyone help me on how to create a context like /tcp or /exams in the
server.xml file. And also please let me know the password and username to
enter into the /admin pages.
Rajshekhar.
-
To unsubscribe, e-mail: [EMAIL
As long as you set up a context with the docBase pointing to wherever the
root for your website is, jsp's can be run from any (other than protected)
directories under it.
i.e. by default your website root is the webapps directory. just have your
students "home" directories there
Hi,
Under my /webapps dir I have a few contexts. I want to define 1 as the
default one. (So I don't have to define a context in the url), So if no
context is defined in the url, I will go to this url ...
this is what I putted in my server.xml
This works BUT now he won't load my i
When I try to get to /contextAdmin/contextAdmin.html I'm prompted to login
but I do not know what the login id is.
I fairly comfortable with configuring tomcat 3.2.1 but I haven't messed with
the security stuff yet.
Is this because there is no entry for the admin context in the tom
Guys,
Somebody was telling me that Context sharing was the default setting and
that there was a flag you had to set which turned off this option?
Is this true? If so what is the flag called and were do I go to turn it off?
-Ben
Hi,
I've Tomcat 3.2.1 running on win 2k along with Jdk1.3
I would like to have two setups for development and testing.
Can someone point me to the right documentation or tell me how to do the
setup.
Thanks in advance,
Lakshmi.
Hi,
1. I created a context in server.xml as follows
2. I also added the following in mod_jk.conf that is included in
httpd.conf
Alias /gamezone "/home/sdfong/public_html/rubyfong/gamezone"
Options Indexes FollowSymLinks
JkMount /gamezone/servlet/* ajp
I'm trying to use Realms on a per Context / web-app basis. I am able to
specify a Realm outside of a , but if I put a
inside a context, it is ignored.
I'm using tomcat 4.0beta3. Is this supported in this release?
Also, I could live with having a singleton Realm, if I could get the
'/index.jsp' and path info 'null' and update=true
I have a context like this:
Shouldn't it match the context instead of the extension? Or am I being
paranoid and Tomcat is doing exactly what it should?
Mark Lenz
(920) 832-3523
[EMAIL PROTECTED]
The information con
Hi,
Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.
For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
If load-on-startup is removed, it is working fine if the servlet is accessed
manually.
Hi,
Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.
For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
If load-on-startup is removed, it is working fine if the servlet is
accessed manuall
Hi,
Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.
For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
If load-on-startup is removed, it is working fine if the servlet is
accessed manuall
Hi All,
How do i configure my web application to become the default context in
Tomcat container bundle together with JBoss? If i point to the IP
address on which JBoss is running i will automatically directed to the
application. (Like the Root context of Tomcat)
Regards,
Stephen Ting
Hello,
I would like to create (install) a new context (just a direcotry) from my
application
(in a ServletContextListener per exemple).
I had see the ServletManager source and had search in archive mail whitout
success.
If I use : org.apache.catalina.startup.Embedded, catalina.bat not found
How would I go about loading a new context so that it is live, without restarting the
tomcat server?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have already post this question, but I haven't find the solution.
I am trying to create a new context into a ServletContextListener.
==> A Tomcat server is started whith usual method (server.xml and
catalina.bat run).
In a specific context, a class (extend of ServletContextListe
Hi,
What is meant by page context in JSP pages?
Thanks in advance.
Regards,
Anunay Ashish.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am having trouble setting up a context for a viral hostis this
the right place to post such a request for help?
TDG
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I want to get the context path for use in a Taglib. Suppose the following
tag entry:
And the following class belongs to it:
public class Load {
private String func;
public void setFunc(String func){...}
public doStartTag() throws JspException
Hi !
I'm using Tomcat/4.1.24-LE-jdk14 and getting a trouble with initial Context in Tomcat.
Could you help me ?
I'm develop my database in SQL Server 2000, using ODBC Data Source : Systwm DSN is
"book", using JdbcOdbc bridge. I don't know how to edit server.xml & we
On 12/09/2003 06:30 AM Jerald Powel wrote:
Hello,
Prostrating my self to a tongue lashing, can any one tell me why I am
getting the 500 error:
HTTP Status 500 - No Context configured to process this request
? In my server.xml I have defined:
where it resides:
c:/…/tomcat/webapps/myapp/….etc
Hi,
Sorry for any impropriety re the hijacking!
I have a WAR running successfully under webapps. All other examples etc have been
removed. I am running several instances/versions of Tomcat on the same box, and have
no CATALINA_HOME env. variable defined. I am trying to port my app fro
r contexts - so your app is running as the
root context? I believe you must have a root context.
Adam
On 12/09/2003 11:13 PM Jerald Powel wrote:
Sorry for any impropriety re the hijacking!
I have a WAR running successfully under webapps. All other examples
etc have been removed. I am running se
Hi,
Yes, they are all (3) running on different ports. All of them running apps quite
happily. This particular one is running a single WAR OK, and my app - not OK. (HTTP
Status 500 - No Context configured to process this request). I haven't played with the
root context. Manager app?!
Hi Jerald,
I'm sorry but I've never had a Status 500 - no context configured.
There must be something freaky in your context configuration. Is the
manager app running? That is normally at localhost:8080/manager/html
What does that say you have running in terms of contexts?
What dire
Hi Adam,
It's sorted. To cut a long story short, the same people who 'configured' it so
that webapps was completey separated from Tomcat, and removed the examples, also
decided to use a renamed server.xml. Once I figured that out, and added the context,
it ran fine. A
On 12/12/2003 12:21 AM Jerald Powel wrote:
It's sorted. To cut a long story short, the same people who
'configured' it so that webapps was completey separated from Tomcat,
and removed the examples, also decided to use a renamed server.xml.
Once I figured that out, and added the
om Tomcat,
> > and removed the examples, also decided to use a renamed server.xml.
> > Once I figured that out, and added the context, it ran fine. A joy of
> > being a contractor?
> >
> > Perhaps you can answer me this to close..why in my experience was it
> > not
be in the root
of the site. The thing is if I do a get getRealPath("/") from the code
in MyContext it will always return SomePath3. How do I get the docbase
of the "" context, (SomePath2)? or even of the virtual host,
(SomePath1), from with in MyContext.
I guess I
First, I want to say thanks to everyone that has helped with my transition
from Resin to Tomcat.
Here is my question:
I want to deploy my webapp in a different directory (XYZ) but I want it to
load under the default context "/". Do I need to specify this in my
context.xml () o
Mario Moroni wrote:
Hi all,
I put some name-value properties in the context putting them in the web.xml
in this way:
companyName
My Company, Incorporated
Is this right?
yes
Now I need to read them from within my classes... How can I do?
Is there someone who have a sample java code to
Hello all,
Not really a high priority question, but can you
create a context with a path like this:
If so, what would the war file name
be?
Just curious.
Leon
We have written a servlet that is being used in a virtual host setup. I need
to retrieve the virtual host that the servlet has been setup up to work
against. I can retrieve the server name but not the virtual host name. Also
I would like to retrieve the context.
We are using Apache 1.3.14
Can I declare more than one context manager in the same server.xml ?
Wellington Silva
UN/FAO
Hi
I am running tomcat 3.2b6 inside apache 1.3.14 using mod_jk. I'm running
Solaris on a sparc. All seems to work well, except for the admin app.
I am able to see the "Context Administration" page containing the form, but
when I click on the "View All Contexts" butto
I have successfully installed tomcat as an out-ot-process server. I can view the examples directory and execute the examples. My problem is in adding additional context. I have followed the instrunctions below. 1. Adding the context to Tomcat (I am not going to talk about this). (I added
Hi,
who can tell me, which class or factory is responsible for retrieving the
Initial Context (web.xml) . I think it should be a class that implements
javax.naming.spi.InitialContextFactory
ciao
Chrisse
Hi guys,
i use Tomcat as a Servlet Engine and want to create a Initial Context...but
what is the Initial Context Factory i have to USE?
ciao
Chriss
Hi,
any of you come across the term "context root"?
Zeus 3.3 requires you to mount tomcar under its JRun interface and requires
a mount point and a zone. It's docs say JServ zones are equivalent to
Tomcat's "context roots". What do you reckon this will be? The d
Hello,
I need to put some static objects into a web
application context at start-up time... I want to set the context when the
application is going up. Where should I put this? In web.xml?
Thanks,
Nicolás
Hi,
We have an installation program that installs our application on a tomcat server. I
haven't build this installation program but I it's on my shoulders now to fix it. When
the program runs a context file is generated for each application and is placed under
the folder [TOMCAT_
Hi,
I was reading in a JSTL book about the Context crossContext attribute, but
it explains nothing.
What exactly does crossContext="true" allow one to do?
Thx.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I'm new to tomcat 5.0 and the use of context seems to have changed since
4.0. I have a war that expands outside ROOT when I place it in the
webapps directory. If I place it in the ROOT directory it doesn't. I
also noticed that 5.0 doesn't use a context entry for ROOT. S
Hello. I'm hoping someone can help me with a context question.
If I define a context in an xml file in /tomcathome/conf/catalina/localhost
and if a context with the same name is defined in a webapp WEB-INF/xml
file which would "win" such a fight? I have a feeling my cont
Hi,
I need to add some context paths to my tomcat configuration. However
the context changes for development/test/qa/production . Just
wondering if there is a way the build system can deploy a file
(sampleapp.xml), deploy to /webapps directory or some place and tomcat
will be able to load this
I'm having a problem reloading / redeploying one of my web applications using
the ant tasks.
The target I am trying to run is this and it fails on when stopping the
application.
Tomcat Users -
We are distributing a servlet application that relies on the application's
element's 'cross-context' attribute to be set to 'true'. Is it
possible to set the 'cross-context' in the application's web.xml? This would
simplify the confi
Hey everyone.
I'm brain dead or something but I am setting a variable to the servlet
context. Inside that there is a database connection and query of the
database, however i need to throw a DataLayerException, and I'm not sure
where.
CODE ##
p
in CATALINA_HOME/conf/Catalina/foo/context.xml.default
/home/foo/WEB_INF/web.xml
/home/foo/META-INF/context.xml
Does not reload context after changes made to web.xml
I can only make tomcat reload contexts in CATALINA_HOME/webapps
Why What am i doing wrong
regards
Hi,
>What is required to redirect the root context to another context, with
a
>relative path name rather than an absolute path name?
>can I just response.sendRedirect("/webapps/othercontext/");
>Or is there additional configuration
No additional configuration, just respo
We had originally removed the /ROOT context. I put it back in place with the
administrator context. It has saved to the server.xml file. When I browse to the site,
it reports HTTP 500 - No context loaded If I add webaddress/ROOT it returns report
HTTP 503 - Servlet jsp is currently
I had configured the ROOT context to have a path of /ROOT when it should be nothing.
I still can't get the context to load without restarting the whole tomcat server (I
wont).
I can get the context to load on a secondary server with a tomcat restart..
-Original Message-
From: Luc
I bet you already know this, but nevertheless: ROOT is a keyword for "/".
The URLs are http://domainname/contextname. In the case of ROOT, you don't
have a contextname in the URL. Setting the attribute of the context
"reloadable=true" helps in case you want your c
I am using tomcat5.5.9 and set up my apache connector to route /apps/* to
tomcat.
The problem is I can't deploy any applications to a context path under /apps/.
For example: /apps/jsp-examples
So that this url would work (direct to tomcat)
myserver.com:8080/apps/jsp-examples
or the more fri
: den 2 februari 2001 21:35
To: '[EMAIL PROTECTED]'
Cc: Jan Labanowski
Subject: RE: JkMount for all context
On Fri, 2 Feb 2001, Andreas Ljunggren (EIN) wrote:
> What if I want tomcat to serve the root context eg / -> a servlet..
> but I want to be able to have /SomeThing
In a servlet I would like to access the same JNDIRealm directory server
context that is used during BASIC authentication. Is it possible to
configure the jndirealm as a resource link for the servlet context?
I *can* make an Application "super user" to establish a DirContext , but
I have an Oracle JDBC datasource that I defined in the Tomcat5 context for an
application (conf/Catalina/localhost/nwg.xml). Works fine, context file listed below.
But when I tried to move the datasource to the section of
server.xml so that it would be accessible to all apps it gets
Something just popped in my
mind.
If you have a ROOT context
which has a folder named hello,
And you have a context named
hello
When you request localhost:8080/hello/
Which one are you gonna get? ÂThe ROOT context or the
hello context? ÂI will try this
out tomorrow, but
ecified my
Context path="". When I start the server I get:
INFO: Installing web application at context path /myapp from...
I then also get the apparently infamous:
[myapp] WARN [main] SettingsFactory.buildSettings(96) | Could not obtain
connection metadata
org.apache.commons.dbc
/cgi/tjs/myexe.exe request to my servlet with
servlet mapping but Here It gives me the dll error.
My servlet is loading one dll, and when this code gets executed it gives me
error ...dll already loaded.
My context is something like and If i dont make it default context
and send request as
http
cc:
09/19/02 07:23 AMSubject: Context path
Please respond to
I am simply trying to change the ROOT context from /ROOT to /mydirectory and I have
been up all night doing it. I have changed server.xml from...
to...
and the default home page still went to /ROOT. After much frustration I thought I
could perhaps live with my ap
My host has given me "/home/billblac/tomcat/build/webapps" to tack onto my
context and most paths in my file
references in web.xml and server.xml files, thus I have the following entry
in the server.xml file:
The host has also given me the followi
I'm trying to use my first servlet (named "MyFirstServlet") in a context
that I created (called "graphics"). It is my understanding that the servlet
should go in "graphics/WEB-INF/classes" and should be invoked in a browser
via "graphics/servlet/MyFirstSer
Hi,
is there a known problem / bug with defining resources in the
DefaultContext?
The following resource definition works in a Context-environment
but won't be inherited from the DefaultContext to contexts automatically
created by tomcat for war-files (and for the ant-target &q
d it to spit out whatever I had bound to
my context both by looking to the initial context and my environmental context (which,
yes, I know, is part of the initial context, but I'm stumped, so I'm trying most
anything I can think of). This is the code:
Context initContext = new I
1 - 100 of 2287 matches
Mail list logo