Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-10-03       - By Charl Gerber

 Back
How? I tried that, but kept on getting messages that
the comp:env thingey was read-only and I couldn't set
up a jndi datasource that could be used by my
application, jstl and hibernate in one go.

I'd be delighted if someone could give me a working
example.


> What about putting a listener in your web.xml that
> create a connection
> pool and link it to jndi?
>
> En l'instant pr?cis du 03/10/07 14:01, Charl Gerber
> s'exprimait en ces
> termes:
> > Turns out datasource configuration is not possible
> > using Plesk as a shared tomcat server, the guys at
> > Plesk themselves told me.
> >
> > That sucks. Means I have to create and manage the
> > Datasource in my app... minor refactoring, but not
> a
> > nice way of doing it. I also use hibernate and
> could
> > only get that working by defining its own
> connection
> > pooling. So now I have two pools :((
> >
> >
> > --- Pid <p@(protected)> wrote:
> >
> >  
> >> Charl Gerber wrote:
> >>    
> >>> Hi,
> >>>
> >>> I just moved my hosting from a provider where I
> >>>      
> >> had a
> >>    
> >>> private Tomcat server with complete control over
> >>>      
> >> it to
> >>    
> >>> a provider that uses Plesk and I share the
> Tomcat
> >>> server with other users. The provider has no
> >>>      
> >> Tomcat
> >>    
> >>> knowledge in house and the Tomcat service is
> >>>      
> >> rarely
> >>    
> >>> used, so they couldn't help me with this
> problem.
> >>>      
> >> which version of tomcat?
> >>
> >>    
> >>> I want to create a jdbc datasource for my
> >>>      
> >> application.
> >>    
> >>> If we manually create it in server.xml, the
> >>>      
> >> provider
> >>    
> >>> claims that the changes are overwritten and
> >>>      
> >> removed
> >>    
> >>> every time someone uploads a new .war file. (Is
> >>>      
> >> this
> >>    
> >>> true?)
> >>>      
> >> AFAIK, server.xml is not altered by war file
> >> deployments.
> >> Tomcat would need to be restarted in order that
> >> those alterations to
> >> server.xml are evaluated.
> >>
> >> I also do not want to define the datasource as
> >>    
> >>> eg a global resource, as it would mean the other
> >>>      
> >> users
> >>    
> >>> of the tomcat server can get access to my
> >>>      
> >> database.
> >>    
> >>> I tried to configure the datasource in the
> >>>      
> >> context.xml
> >>    
> >>> of my application and put it in my .war file.
> This
> >>> works fine on my development server, but when
> >>>      
> >> uploaded
> >>    
> >>> to the Tomcat server with Plesk, a server.xml
> >>>      
> >> entry
> >>    
> >>> for my application is created without the
> >>>      
> >> datasource
> >>    
> >>> settings and I cannot access my database.
> >>>      
> >> What are the details of the entry being made in
> >> server.xml?
> >> Is Plesk making these alterations?
> >> What process are you using to upload the WAR?
> >>
> >>    
> >>> How and where can I properly define a datasource
> >>>      
> >> for
> >>    
> >>> my application so that Plesk will set the Tomcat
> >>> configuration correctly?
> >>>      
> >> META-INF/context.xml is the best location I
> think.
> >>
> >> Please provide more details about the tomcat
> version
> >> and the answer to
> >> the questions above.
> >>
> >>
> >> p
> >>
> >>
> >>
> >>    
> >>> CG
> >>>
> >>>
> >>>      
> >
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> >  
> >>> To start a new topic, e-mail:
> >>>      
> >> users@(protected)
> >>    
> >>> To unsubscribe, e-mail:
> >>>      
> >> users-unsubscribe@(protected)
> >>    
> >>> For additional commands, e-mail:
> >>>      
> >> users-help@(protected)
> >>    
> >>>      
> >>
> >>    
> >
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> >  
> >> To start a new topic, e-mail:
> >> users@(protected)
> >> To unsubscribe, e-mail:
> >> users-unsubscribe@(protected)
> >> For additional commands, e-mail:
> >> users-help@(protected)
> >>
> >>
> >>    
> >
> >
> >
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To start a new topic, e-mail:
> users@(protected)
> > To unsubscribe, e-mail:
> users-unsubscribe@(protected)
> > For additional commands, e-mail:
> users-help@(protected)
> >  
>
>
> --
> http://www.devlog.be (a belgian developer's logs)
>
>
>
>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail:
> users@(protected)
> To unsubscribe, e-mail:
> users-unsubscribe@(protected)
> For additional commands, e-mail:
> users-help@(protected)
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)