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 in
Hi Mark,
Thanks for your quick response.
I'm extending that class and overriding the method openConnection(URL u)as
a public method. So I can use it from somewhere else.
Thanks
Best Regards
/Thusitha
On Fri, Mar 6, 2015 at 2:53 PM, Mark Thomas wrote:
> On 06/03/2015 09:15, Thusitha
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,
>
Mar 6, 2015 at 6:50 PM, Mark Thomas 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 Tomca
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:
org.apache.catalina.Lifecycle
ing extended class 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]
> > Subj
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
Softwar
Hi Mark,
Thanks for the quick response.
Regards
/Thusitha
On Mon, Mar 9, 2015 at 2:29 PM, Mark Thomas 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
> > *DirCont
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 sta
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 bri
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
>
>>> 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
> org.apache.jasper.compiler
Hi Violeta
Hi,
2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne :
>
> >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
> >>> Servlet.service() for servlet bridgeservlet threw exception
> >>>
Hi Violeta,
2015-03-16 15:33 GMT+02:00 Thusitha Thilina Dayaratne :
>
> Hi Violeta
>
> Hi,
>
> 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne :
> >
> > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
> > >>> Servl
Hi
>
> Hi Violeta
>
> Hi,
>
> 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne :
> >
> > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
> > >>> Servlet.service() for servlet bridgeservlet threw excep
2015-03-17 15:16 GMT+02:00 Thusitha Thilina Dayaratne :
>
> Hi
> >
> > Hi Violeta
> >
> > Hi,
> >
> > 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne <
thusit...@wso2.com
> >:
> > >
> > > >>> ERROR {org.apache.
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
t.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at
> org.apache.tomcat.util.threads.TaskThre
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
if(con
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.
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 Regar
ot;, path, this.path));
}
encodedPath = urlEncoder.encode(this.path);
if (getName() == null) {
setName(this.path);
}
}
Is there a any specific reason for this change?
Why it is not allowing to set the context path as "/"
Thanks
Best Regards
/Thusitha
On
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 comma
e scan here?
Thanks
Regards
/Thusitha
On Thu, Mar 19, 2015 at 9:37 PM, Mark Thomas wrote:
> 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 locatio
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
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 i
omas wrote:
> On 25/03/2015 08:14, Thusitha Thilina Dayaratne wrote:
>
>
> > 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
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 with
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
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 +9471275680
ions 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 using embedded tomcat as an OSGi bundle. In tomcat 7.0.59 we extended
> the StandardJarSca
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
About
; On 02/04/2015 11: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
>
>
> -
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
Exten
Hi,
At the moment, I'm registering a URLStreamHandleerService for JNDI in OSGi
BundleContext as follows.
private static final String JNDI_PROTOCOL = "jndi";
Hashtable properties = new Hashtable();
properties.put(URLConstants.URL_HANDLER_PROTOCOL, new String[] {
JNDI_PROTOCOL });
bundleCont
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 <
t
Hi
2015-04-06 14:33 GMT+03:00 Thusitha Thilina Dayaratne :
>
> Hi
>
> Is there a Tomcat provided URLStreamHandlerFactory for JNDI in tomcat
> 8.0.20?
> I tried
>
TomcatURLStreamHandlerFactory.getInstance().createURLStreamHandler("jndi");
>>"jndi"
Hi,
2015-04-02 14:01 GMT+03:00 Thusitha Thilina Dayaratne :
> 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 w
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;
tr
dURL() method is defined in WebAppClassLoaderBase. So
should I obtain the WebAppClassLoaderBase using getClassLoader() method and
use reflections to call the addURL() method?
Thanks
Best Regards
On Tue, Apr 7, 2015 at 1:19 PM, Mark Thomas wrote:
> On 07/04/2015 07:51, Thusitha Thilina Dayar
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
--
015-04-07 14: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
ssLoader.
Thanks for quick explanation Mark.
But still 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 wrote:
>
>> On 07/04/2015 07:51, Thus
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
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
Best
reason to
remove that?
I think I 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 th
eason to
remove that?
>I think I 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
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
--
ebAppClassLoader?
Please correct me if I'm wrong.
Thanks
Best Regards
2015-04-21 1:51 GMT+05:30 Mark Thomas :
> On 20/04/2015 14:22, Thusitha Thilina Dayaratne wrote:
> > Hi,
> >
> > Could someone tell me what is the purpose of having WebappLoader and
> > We
where else?
Thanks
Best Regards
2015-04-07 16:19 GMT+05:30 Thusitha Thilina Dayaratne <
thusithathil...@gmail.com>:
> Hi,
>
> > Hi Mark,
> >
> >
>
> :)
> I think you meant snip rather than snipe.
>
> > Try addURL().
> > Sorry for the inconvenie
n favor of the new resource implementation.
>>Check this [1] and this [2].
Thanks for quick response.
I will look into them :)
Best Regards
2015-04-21 12:02 GMT+05:30 Violeta Georgieva :
> Hi,
>
> 2015-04-21 6:42 GMT+03:00 Thusitha Thilina Dayaratne <
> thusithathil...@gmail.c
rResourceSet@647452d0]
> at
> org.apache.catalina.webresources.DirResourceSet.(DirResourceSet.java:83)
> at
> org.wso2.carbon.webapp.mgt.loader.CarbonWebappLoader.startInternal(CarbonWebappLoader.java:61)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>
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() meth
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://
> 10.100.7.
x27;m able to connect to "ws://echo.websocket.org" 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 <
ry websocket sample I'm getting Info: WebSocket connection
closed, Code: 1006
And in the console it says something like
WebSocket connection to ws://10.100.7.26:9763/examples/websocket/
<http://10.100.7.26:9763/examples/websocket/echoProgrammatic>... failed:
Error during WebSocket handshake
examples/websocket/echoProgrammatic>... failed:
Error during WebSocket handshake: Unexpected response code: 302
When I tried to deploy the sample distributed with Tomcat it works fine in
my server.
Seems that I did something wrong while building the sample. Can someone
help me out?
Thanks
Best
lp me out?
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 Tomcat
The only thing that doesn't work is when try to run the war file that I
built in
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
--
n I used the following dependency to build the example webapp, instead
of 302 I'm getting 404 error.
javax.websocket
javax.websocket-api
1.0
provided
Am I having wrong dependency here? If so what are the dependencies that I
should include when do the build?
Thanks
Best Regards
2
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
> w
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
>
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
--
GMT+05:30 Mark Thomas :
> 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
> > ja
anks for the explanation.
So if I need jsp support, rather than using 2 jars(tomct-jasper 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 :
> On 05/05/2015 16:55, Thusitha Thilina Dayar
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
* *
I have an empty xml file in the /home/thusitha/abc folder.
On the browser when I try to access it as follows I'm getting
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 t
://www.palfrader.org/code/code2html/
Thanks
2015-07-13 17:21 GMT+05:30 David kerber :
> 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
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
--
9:26:04 MESZ, schrieb 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 co
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
in
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
73 matches
Mail list logo