From where org.apache.naming get added to java.naming.factory.url.pkgs in Tomcat 7.x

2016-01-11 Thread Thusitha Thilina Dayaratne
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 --

Re: From where org.apache.naming get added to java.naming.factory.url.pkgs in Tomcat 7.x

2016-01-11 Thread Thusitha Thilina Dayaratne
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

Embedded Tomcat 7.0.59 Some vhost are not get Started Properly

2015-08-30 Thread Thusitha Thilina Dayaratne
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

How to set Session Values with Form Based Authentication

2015-08-25 Thread Thusitha Thilina Dayaratne
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

Can is use as context root in Tomcat 7.0.59

2015-07-20 Thread Thusitha Thilina Dayaratne
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 --

Re: Can is use as context root in Tomcat 7.0.59

2015-07-20 Thread Thusitha Thilina Dayaratne
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

What is the utility use to generate source html file for jsp pages in example webapp

2015-07-13 Thread Thusitha Thilina Dayaratne
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

Re: What is the utility use to generate source html file for jsp pages in example webapp

2015-07-13 Thread Thusitha Thilina Dayaratne
:) 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

Accessing static resources return 404 in embedded tomcat

2015-05-16 Thread Thusitha Thilina Dayaratne
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/

tomcat-embed-jasper vs tomcat-jasper

2015-05-05 Thread Thusitha Thilina Dayaratne
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 --

Re: tomcat-embed-jasper vs tomcat-jasper

2015-05-05 Thread Thusitha Thilina Dayaratne
...@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

Re: tomcat-embed-jasper vs tomcat-jasper

2015-05-05 Thread Thusitha Thilina Dayaratne
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

Re: Locating WebAppConfig file in embedded tomcat

2015-04-28 Thread Thusitha Thilina Dayaratne
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

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-24 Thread Thusitha Thilina Dayaratne
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

How does Tomcat identify web socket endpoint in a war?

2015-04-24 Thread Thusitha Thilina Dayaratne
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 --

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-24 Thread Thusitha Thilina Dayaratne
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

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-23 Thread Thusitha Thilina Dayaratne
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

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-23 Thread Thusitha Thilina Dayaratne
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

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-23 Thread Thusitha Thilina Dayaratne
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

Re: Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-23 Thread Thusitha Thilina Dayaratne
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

Info: WebSocket connection closed, Code: 1006 when try to run websocket sample

2015-04-22 Thread Thusitha Thilina Dayaratne
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://

Re: WebappLoader vs WebappClassLoader

2015-04-21 Thread Thusitha Thilina Dayaratne
-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

Re: WebappLoader vs WebappClassLoader

2015-04-21 Thread Thusitha Thilina Dayaratne
) 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

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-21 Thread Thusitha Thilina Dayaratne
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

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-20 Thread Thusitha Thilina Dayaratne
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

Re: WebappLoader vs WebappClassLoader

2015-04-20 Thread Thusitha Thilina Dayaratne
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

WebappLoader vs WebappClassLoader

2015-04-20 Thread Thusitha Thilina Dayaratne
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 --

org.apache.catalina.authenticator.SingleSignOn.sessionEvent() equivalent in Tomcat 8

2015-04-19 Thread Thusitha Thilina Dayaratne
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

Re: org.apache.catalina.authenticator.SingleSignOn.sessionEvent() equivalent in Tomcat 8

2015-04-19 Thread Thusitha Thilina Dayaratne
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

Re: org.apache.catalina.authenticator.SingleSignOn.sessionEvent() equivalent in Tomcat 8

2015-04-19 Thread Thusitha Thilina Dayaratne
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

Access ServletContext from Session in new websocket implementation

2015-04-09 Thread Thusitha Thilina Dayaratne
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

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-07 Thread Thusitha Thilina Dayaratne
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

[Tomcat8] Alternative for WebAppClassLoader.started

2015-04-07 Thread Thusitha Thilina Dayaratne
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 --

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-07 Thread Thusitha Thilina Dayaratne
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;

Re: [Tomcat8] Alternative for WebAppClassLoader.started

2015-04-07 Thread Thusitha Thilina Dayaratne
: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

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-07 Thread Thusitha Thilina Dayaratne
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

Re: After parsing the custom server.xml file, catalinaBase is set to null

2015-04-06 Thread Thusitha Thilina Dayaratne
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

Better way to register a URLStreamHandlerService for JNDI from Tomcat 8

2015-04-06 Thread Thusitha Thilina Dayaratne
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[]

Re: How to access JNDI Directory Context in Tomcat 8

2015-04-06 Thread Thusitha Thilina Dayaratne
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

Re: How to access JNDI Directory Context in Tomcat 8

2015-04-06 Thread Thusitha Thilina Dayaratne
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

Why getInfo method removed from ValveBase

2015-04-02 Thread Thusitha Thilina Dayaratne
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

Re: Why getInfo method removed from ValveBase

2015-04-02 Thread Thusitha Thilina Dayaratne
: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

After parsing the custom server.xml file, catalinaBase is set to null

2015-04-02 Thread 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 would be the reason? Before parsing the file it is set to the correct path. Here is the code segment

Re: How to use Jar Scan Filters

2015-03-31 Thread Thusitha Thilina Dayaratne
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

Re: org.apache.jasper.JasperException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application

2015-03-26 Thread Thusitha Thilina Dayaratne
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

Why setUniqueId removed from ClusterMessage in Tomcat 8

2015-03-26 Thread Thusitha Thilina Dayaratne
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

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-25 Thread Thusitha Thilina Dayaratne
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

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-25 Thread Thusitha Thilina Dayaratne
, 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

How to use Jar Scan Filters

2015-03-25 Thread Thusitha Thilina Dayaratne
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

Re: org.apache.jasper.JasperException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application

2015-03-20 Thread Thusitha Thilina Dayaratne
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

Can't set context to / in Tomcat 8.0.20

2015-03-19 Thread Thusitha Thilina Dayaratne
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

Re: Can't set context to / in Tomcat 8.0.20

2015-03-19 Thread Thusitha Thilina Dayaratne
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

Re: Scan custom directory from JarScanner

2015-03-19 Thread Thusitha Thilina Dayaratne
: 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

Scan custom directory from JarScanner

2015-03-19 Thread Thusitha Thilina Dayaratne
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

org.apache.jasper.JasperException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application

2015-03-18 Thread Thusitha Thilina Dayaratne
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

Re: org.apache.jasper.JasperException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application

2015-03-18 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-17 Thread Thusitha Thilina Dayaratne
) 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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-17 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-17 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
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

java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
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

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
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

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-09 Thread Thusitha Thilina Dayaratne
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

java.lang.Error: factory already defined when trying to start the Tomcat

2015-03-09 Thread Thusitha Thilina Dayaratne
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

How to access JNDI Directory Context in Tomcat 8

2015-03-08 Thread Thusitha Thilina Dayaratne
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

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-07 Thread Thusitha Thilina 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

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
, 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

Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
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

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
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

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
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

Tomcat 8 embedded - ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during start

2015-03-06 Thread Thusitha Thilina Dayaratne
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: