Hi,
I checked the tomcat7 source to find out how tomee set the
*org.apache.naming *to* java.naming.factory.url.pkgs *system property which
uses for JNDI stuffs. But I couldn't find the place.
Could someone point the location from where tomcat set that property?
Thanks
Thusitha
--
Sorry for the trouble.
I found that enableNaming() method sets this
Thanks
Thusitha
2016-01-11 14:34 GMT+05:30 Thusitha Thilina Dayaratne <
thusithathil...@gmail.com>:
> Hi,
>
> I checked the tomcat7 source to find out how tomee set the
> *org.apache.naming *to* java.namin
Hi,
I'm having an intermittent issue relate to tomcat vhost. I'm using embedded
tomcat version 7.0.59 and I have my own deployers as well. In some of my
virtualhosts apps are get deployed after the server get startup. This
happens only in some vhosts (not all vhosts)
The actual issue is that I'm
Hi,
I'm using form based authentication with j_security_check. I want to set
some session values upon the user login. I can set them in the index page.
But when user directly put some other url then it will redirect to login
page and then back to the actual requested page. Therefore my logic on
Hi All,
Is it possible to set am empty string () as the root context in Tomcat
7.0.59?
I'm currently using / as the root context path. But since tomcat doesn't
like that I want to change the path to something similar.
Thanks
/Thusitha
--
Thilina Dayaratne
thusithathil...@gmail.com:
Hi All,
Is it possible to set am empty string () as the root context in
Tomcat
7.0.59?
I'm currently using / as the root context path. But since tomcat
doesn't
like that I want to change the path to something similar.
The context name would
Hi All,
I'm having some jsp pages that I would like to show there source as an html
page like in the example webapp that is provided with tomcat. I have tried
few online java2html converters but couldn't obtain source as in tomcat
example.
e.g cal1.jsp -- source is cal1.jsp.html
Could someone
:)
https://www.palfrader.org/code/code2html/
Thanks
2015-07-13 17:21 GMT+05:30 David kerber dcker...@verizon.net:
On 7/13/2015 6:03 AM, Thusitha Thilina Dayaratne wrote:
Hi All,
I'm having some jsp pages that I would like to show there source as an
html
page like in the example webapp
Hi,
I'm using embedded Tomcat 7.0.59. I;m trying to access a static resource
through the embedded server. In the server.xml file I've added following
line
Host name=localhost unpackWARs=true deployOnStartup=false
autoDeploy=false
appBase=${carbon.home}/repository/deployment/server/webapps/
Hi,
Could someone tell me what is the difference between tomcat-embed-jasper
and tomcat-jasper?
I have checked the both jars. tomcat-embed-jasper contains
javax.servlet.jsp package. Is that the only difference between those 2?
Thanks
--
...@apache.org:
On 05/05/2015 16:40, Thusitha Thilina Dayaratne wrote:
Hi,
Could someone tell me what is the difference between tomcat-embed-jasper
and tomcat-jasper?
I have checked the both jars. tomcat-embed-jasper contains
javax.servlet.jsp package. Is that the only difference between
and
tomcat-jsp-api) I can directly use only the tomcat-embed-jasper
Please correct me if I'm wrong.
Thanks
2015-05-05 21:31 GMT+05:30 Mark Thomas ma...@apache.org:
On 05/05/2015 16:55, Thusitha Thilina Dayaratne wrote:
Hi
Could someone tell me what is the difference between tomcat-embed
Hi
we use an embedded Tomcat and are trying to update from version 7.0.40 to
7.0.61. The the embedded tomcat instance starts up fine and our webapp is
also running. However we get the following warning:
Apr 28, 2015 8:58:58 AM org.apache.catalina.startup.Tomcat
getWebappConfigFileFromJar
here? If so what are the dependencies that I
should include when do the build?
Thanks
Best Regards
2015-04-24 11:13 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
Hi,
I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket
example and when I'm
Hi,
Could someone tell me how does Tomcat identify the websocket endpoints in
.war file?
Does it scan all the classes and looks for annotations?
Thanks
Best Regards
--
Hi,
First I would like to apologize for the inconvenience.
On 4/24/15 7:40 AM, Thusitha Thilina Dayaratne wrote:
Furthermore I've tried following things out and both options works
without issue.
1. Running tomcat distributed examples in my server 2. Running the
war file that I built inside
But not to the ws://
localhost:9763/examples/websocket/echoProgrammatic
http://10.100.7.26:9763/examples/websocket/echoProgrammatic
(My server is running 9763)
2015-04-23 10:21 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
I've embedded tomcat 8.0.20 and using that. I build
to ws://10.100.7.26:9763/examples/websocket/
http://10.100.7.26:9763/examples/websocket/echoProgrammatic... failed:
Error during WebSocket handshake: Unexpected response code: 302
2015-04-23 12:58 GMT+05:30 Mark Thomas ma...@apache.org:
On 23/04/2015 05:51, Thusitha Thilina Dayaratne wrote:
Hi
the war file that I
built in my server.
2015-04-24 10:59 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
Hi,
I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket
example and when I'm trying to run it in my server for all 4 examples
(Echo, chat, etc
while building the sample. Can someone
help me out?
Thanks
Best Regards
2015-04-23 14:06 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi
Hi,
I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket
example and when I'm trying to run it in my server
Hi,
I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket
example and when I'm trying to run it in my server for all 4 examples
(Echo, chat, etc..)
I'm getting
Info: WebSocket connection closed, Code: 1006
In the console it prints
WebSocket connection to 'ws://
-21 12:02 GMT+05:30 Violeta Georgieva violet...@apache.org:
Hi,
2015-04-21 6:42 GMT+03:00 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
Could someone tell me what is the purpose of having WebappLoader and
WebappClassLoader in Tomcat?
WebappLoader is the Tomcat object
)
at
org.apache.catalina.webresources.DirResourceSet.init(DirResourceSet.java:81)
... 99 more
2015-04-21 12:14 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi
Could someone tell me what is the purpose of having WebappLoader and
WebappClassLoader in Tomcat?
WebappLoader is the Tomcat object that a user can configure
Hi,
On 21/04/2015 05:59, Thusitha Thilina Dayaratne wrote:
Hi,
Try addURL().
Sorry for the inconvenience.
As I understand addURL() method is defined in WebAppClassLoaderBase. So
should I obtain the WebAppClassLoaderBase using getClassLoader() method
and
use reflections to call the addURL
Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
Hi Mark,
snipe/
:)
I think you meant snip rather than snipe.
Try addURL().
Sorry for the inconvenience.
As I understand addURL() method is defined in WebAppClassLoaderBase. So
should I obtain the WebAppClassLoaderBase using
Regards
2015-04-21 1:51 GMT+05:30 Mark Thomas ma...@apache.org:
On 20/04/2015 14:22, Thusitha Thilina Dayaratne wrote:
Hi,
Could someone tell me what is the purpose of having WebappLoader and
WebappClassLoader in Tomcat?
WebappLoader is the Tomcat object that a user can configure
Hi,
Could someone tell me what is the purpose of having WebappLoader and
WebappClassLoader in Tomcat?
As I understand WebappClassLoader is per web application and WebAppLoader for
tomcat server instance. Am I wrong?
Thanks
Best Regards
--
Hi,
In tomcat 7 there is a method to set session event as follows in the
org.apache.catalina.authenticator.SingleSignOn
void sessionEvent(SessionEvent event)
But this method has been removed in tomcat 8.
Is there a equivalent in Tomcat 8? Or is there a specific reason to remove
that?
Thanks
found the answer
I can get the sessionListner and configure through that
getSessionListener(ssID).sessionEvent(event)
Thanks
Best Regards
2015-04-20 11:01 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
In tomcat 7 there is a method to set session event as follows
found the answer
I can get the sessionListner and configure through that
getSessionListener(ssID).sessionEvent(event)
But how can I get the ssoID ?
2015-04-20 11:05 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi
In tomcat 7 there is a method to set session event as follows
Hi,
I'm trying to upgrade websocket application which is using Tomcat 7 to
Tomcat 8.0.20(Which supports javax.websocket v1)
In the current implementation we have extended the WebSocketServlet
Is there a way that I can access the servletContext in the new websocket
implementation?
As I understand
to call the addURL() method?
Thanks
Best Regards
On Tue, Apr 7, 2015 at 1:19 PM, Mark Thomas ma...@apache.org wrote:
On 07/04/2015 07:51, Thusitha Thilina Dayaratne wrote:
Hi All,
I'm having the same issue. We have extend the WebAppLoader as follows in
the Tomcat 7
public class
Hi,
In tomcat 7, there is a field in the WebAppClassLoader as
protected boolean started - Has this component been started?
But In Tomcat 8 this field have been remove. What is the alternative way in
Tomcat 8 for this?
Thanks
--
Hi All,
I'm having the same issue. We have extend the WebAppLoader as follows in
the Tomcat 7
public class CarbonWebappLoader extends WebappLoader {
@Override
protected void startInternal() throws LifecycleException {
WebappClassloadingContext webappClassloadingContext;
:13 GMT+05:30 Thusitha Thilina Dayaratne
thusithathil...@gmail.com:
Hi,
In tomcat 7, there is a field in the WebAppClassLoader as
protected boolean started - Has this component been started?
But In Tomcat 8 this field have been remove. What is the alternative way
in Tomcat 8
addURL() method is defined as protected. So it is not possible to
call that method by casting right?
Thanks
Best Regards
On Tue, Apr 7, 2015 at 1:19 PM, Mark Thomas ma...@apache.org wrote:
On 07/04/2015 07:51, Thusitha Thilina Dayaratne wrote:
Hi All,
I'm having the same issue. We have
Hi,
2015-04-02 14:01 GMT+03:00 Thusitha Thilina Dayaratne thusit...@wso2.com:
Hi,
I'm using embedded-tomcat 8.0.20 in my project. In that I'm parsing a
custom server.xml file. After the parsing CatalinaBase value of the Server
is set to null.
Could someone tell me why would be the reason
Hi,
At the moment, I'm registering a URLStreamHandleerService for JNDI in OSGi
BundleContext as follows.
private static final String JNDI_PROTOCOL = jndi;
HashtableString, String[] properties = new HashtableString, String[]();
properties.put(URLConstants.URL_HANDLER_PROTOCOL, new String[]
Hi
Is there a Tomcat provided URLStreamHandlerFactory for JNDI in tomcat
8.0.20?
I tried
TomcatURLStreamHandlerFactory.getInstance().createURLStreamHandler(jndi);
But that returns null.
Thanks
Best Regards
/Thusitha
On Wed, Mar 25, 2015 at 2:48 PM, Thusitha Thilina Dayaratne
thusit...@wso2
Hi
2015-04-06 14:33 GMT+03:00 Thusitha Thilina Dayaratne thusit...@wso2.com:
Hi
Is there a Tomcat provided URLStreamHandlerFactory for JNDI in tomcat
8.0.20?
I tried
TomcatURLStreamHandlerFactory.getInstance().createURLStreamHandler(jndi);
jndi schema is removed in Tomcat 8. You may want
Hi,
Is there a any specific reason why String getInfo() method in ValveBase has
been removed from Tomcat 8?
Thanks
Best Regards
/Thusitha
--
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware | wso2.com
Mobile +94712756809
Blog alokayasoya.blogspot.com
:14, Thusitha Thilina Dayaratne wrote:
Hi,
Is there a any specific reason why String getInfo() method in ValveBase
has
been removed from Tomcat 8?
Because it served no useful purpose.
Mark
-
To unsubscribe, e-mail
Hi,
I'm using embedded-tomcat 8.0.20 in my project. In that I'm parsing a
custom server.xml file. After the parsing CatalinaBase value of the Server
is set to null.
Could someone tell me why would be the reason?
Before parsing the file it is set to the correct path.
Here is the code segment
path? Should I give the
absolute path?
[1] - http://tomcat.apache.org/tomcat-8.0-doc/config/jar-scan-filter.html
Any suggestions or help on this would be really nice.
Thanks
Best Regards
/Thusitha
On Thu, Mar 26, 2015 at 9:35 AM, Thusitha Thilina Dayaratne
thusit...@wso2.com wrote:
Hi,
I'm
Hi,
Hi Chris,
Thanks a lot for the quick response. Please find inline answers.
On 3/18/15 5:39 AM, Thusitha Thilina Dayaratne wrote:
I'm in the process of migrating embedded tomcat 7.0.59 application
to Tomcat 8.0.20. Tomcat is been bundle as a OSGI bundle. First I
get
Hi,
Is there a specific reason to remove
public void setUniqueId(String id); method from
org.apache.catalina.ha.ClusterMessage.java
in Tomcat 8.0.20?
Thanks
Best Regards
/Thusitha
--
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware | wso2.com
Mobile
Hi
how can that be modified to load the jndi.properties file?
The javadoc for InitialContext seems to indicate that this file will be
processed automatically.
If it isn't processed automatically, I'd suggest trying to figure out
why.
Good to know, thank you.
Amazingly, this is the only
, Thusitha Thilina Dayaratne wrote:
snip/
Thanks all for responses. But what I actually want is to register a
URLStreamHandlerService for JNDI
Finally. More than 2 weeks since the first e-mail in this thread the
list members know what it is you are actually trying to do.
You want:
http
Hi,
I'm using embedded tomcat as an OSGi bundle. In tomcat 7.0.59 we extended
the StandardJarScanner to scan some jars which are resides in a custom
location. Since these jars are needed for all the applications putting them
in WEB-INF is not applicable,
We are now trying to use Tomcat 8.0.20
Hi,
Hi Chris,
Thanks a lot for the quick response. Please find inline answers.
On 3/18/15 5:39 AM, Thusitha Thilina Dayaratne wrote:
I'm in the process of migrating embedded tomcat 7.0.59 application
to Tomcat 8.0.20. Tomcat is been bundle as a OSGI bundle. First I
get
Hi,
I'm in the process of migrating to a embedded tomcat 7.0.59 application to
tomcat 8.0.20. In the application i'm setting the context as */* This
works fine in tomcat 7
But in Tomcat 8 when I set the context as */*, internally it is set as .
Is this a bug in Tomcat 8?
Thanks
Best Regards
reason for this change?
Why it is not allowing to set the context path as /
Thanks
Best Regards
/Thusitha
On Thu, Mar 19, 2015 at 4:35 PM, Thusitha Thilina Dayaratne
thusit...@wso2.com wrote:
Hi
Thanks for quick response.
Hi,
I'm in the process of migrating to a embedded tomcat 7.0.59
:
On 19/03/2015 16:00, Thusitha Thilina Dayaratne wrote:
Hi,
I'm having an extended StandardJarScanner to scan for jar files which are
located in a custom location. In tomcat 8 Jar scan filters have been
introduced. Is i possible to scan my custom location without extending
Hi,
I'm having an extended StandardJarScanner to scan for jar files which are
located in a custom location. In tomcat 8 Jar scan filters have been
introduced. Is i possible to scan my custom location without extending the
StandardJarScanner in Tomcat 8?
In the [1] it say that we can specify
Hi,
I'm in the process of migrating embedded tomcat 7.0.59 application to
Tomcat 8.0.20. Tomcat is been bundle as a OSGI bundle.
First I get a NullPointerException when trying to access the server home
page. I fixed that manually setting an empty TldCache instance in the
context as follows
Hi Chris,
Thanks a lot for the quick response. Please find inline answers.
On 3/18/15 5:39 AM, Thusitha Thilina Dayaratne wrote:
I'm in the process of migrating embedded tomcat 7.0.59 application
to Tomcat 8.0.20. Tomcat is been bundle as a OSGI bundle. First I
get a NullPointerException when
)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
I'm having a custom JarScanner as well. Is this relate to the JarScanner?
Can someone help me out?
Thanks
regards
/Thusitha
On Tue, Mar 17, 2015 at 7:11 PM, Thusitha Thilina Dayaratne
thusit
Hi
Hi Violeta
Hi,
2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne thusit...@wso2.com
:
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet bridgeservlet threw exception
java.lang.NullPointerException
2015-03-17 15:16 GMT+02:00 Thusitha Thilina Dayaratne thusit...@wso2.com:
Hi
Hi Violeta
Hi,
2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne
thusit...@wso2.com
:
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet bridgeservlet
Hi Violeta
Hi,
2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne thusit...@wso2.com:
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet bridgeservlet threw exception
java.lang.NullPointerException
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet bridgeservlet threw exception
java.lang.NullPointerException
at
org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536)
at
Hi Violeta,
2015-03-16 15:33 GMT+02:00 Thusitha Thilina Dayaratne thusit...@wso2.com:
Hi Violeta
Hi,
2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne thusit...@wso2.com
:
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet bridgeservlet threw
Hi All,
I'm in the process of migrating embedded tomcat application from Tomcat 7
to Tomcat 8.
When I'm trying to start the embedded instance I'm getting a
NullPointerException
Here is the stacktrace
ERROR {org.apache.catalina.core.ApplicationDispatcher} -
Servlet.service() for servlet
On 16/03/2015 09:26, Thusitha Thilina Dayaratne wrote:
Hi All,
I'm in the process of migrating embedded tomcat application from Tomcat 7
to Tomcat 8.
When I'm trying to start the embedded instance I'm getting a
NullPointerException
Here is the stacktrace
ERROR
Hi Mark,
Thanks for the quick response.
Regards
/Thusitha
On Mon, Mar 9, 2015 at 2:29 PM, Mark Thomas ma...@apache.org wrote:
On 09/03/2015 03:59, Thusitha Thilina Dayaratne wrote:
Hi,
I want to access the JNDI Directory context in Tomcat8. I've used
*DirContextURLStreamHandler* class
Hi,
When I'm trying to start the embedded tomcat server I'm getting following
exception. Could someone tell me why am I getting that? Did I missed
anything in configuration?
I'm using JDK 1.8 and tomcat 8.0.20
ERROR {org.apache.catalina.core.ContainerBase} - A child container failed
during
Hi,
I want to access the JNDI Directory context in Tomcat8. I've used
*DirContextURLStreamHandler* class which was in Tomcat 7. But now that has
been removed.
Can someone tell me how can I access the JNDI Directory Context in Tomcat 8?
Thanks
Best Regards
/Thusitha
--
Thusitha Dayaratne
of *DirContextURLStreamHandler* to handle jndi
resources in the application.
Thanks
Best Regards
/Thusitha
On Sat, Mar 7, 2015 at 7:24 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
From: Thusitha Thilina Dayaratne [mailto:thusit...@wso2.com]
Subject: Re: Is org.apache.naming.resources package
, Thusitha Thilina Dayaratne wrote:
Hi All,
I'm working on migrating embedded tomcat 7 project to latest release of
*tomcat
8.0.20* When compiling the project, I'm getting compilation errors saying
that *org.apache.naming.resources* package can't be found. (I'm using
Hi All,
I'm working on migrating embedded tomcat 7 project to latest release of *tomcat
8.0.20* When compiling the project, I'm getting compilation errors saying
that *org.apache.naming.resources* package can't be found. (I'm using
*DirContextURLStreamHandler* which was resided in above package
Hi,
Is there an alternative method from some other class that I can use instead
of removed *protected URLConnection openConnection(URL u) *in Tomcat 8?
Thanks
Regards
/Thusitha
On Fri, Mar 6, 2015 at 2:57 PM, Thusitha Thilina Dayaratne
thusit...@wso2.com wrote:
Hi Mark,
Thanks for your
PM, Mark Thomas ma...@apache.org wrote:
On 06/03/2015 10:53, Thusitha Thilina Dayaratne wrote:
Hi,
Is there an alternative method from some other class that I can use
instead
of removed *protected URLConnection openConnection(URL u) *in Tomcat 8?
I'll ask again. What are you trying to do
Hi All,
I'm using tomcat embedded and when I try to star the server following error
get occurred. I'm using tomcat 8.0.20 and jdk8
ERROR {org.apache.catalina.core.ContainerBase} - A child container
failed during start
java.util.concurrent.ExecutionException:
73 matches
Mail list logo