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 in

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

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

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, >

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

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

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: org.apache.catalina.Lifecycle

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

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

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 Softwar

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 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

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 sta

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 bri

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 >

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 > org.apache.jasper.compiler

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 : > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > >>> Servlet.service() for servlet bridgeservlet threw exception > >>>

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 : > > Hi Violeta > > Hi, > > 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne : > > > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > > >>> Servl

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 : > > > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > > >>> Servlet.service() for servlet bridgeservlet threw excep

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 : > > Hi > > > > Hi Violeta > > > > Hi, > > > > 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne < thusit...@wso2.com > >: > > > > > > >>> ERROR {org.apache.

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

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
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

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 if(con

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.

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 Regar

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

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

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 comma

Re: Scan custom directory from JarScanner

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

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

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 i

Re: How to access JNDI Directory Context in Tomcat 8

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

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 with

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

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 +9471275680

Re: How to use Jar Scan Filters

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

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 About

Re: Why getInfo method removed from ValveBase

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

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 Exten

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"; Hashtable properties = new Hashtable(); properties.put(URLConstants.URL_HANDLER_PROTOCOL, new String[] { JNDI_PROTOCOL }); bundleCont

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 < t

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 : > > Hi > > Is there a Tomcat provided URLStreamHandlerFactory for JNDI in tomcat > 8.0.20? > I tried > TomcatURLStreamHandlerFactory.getInstance().createURLStreamHandler("jndi"); >>"jndi"

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 : > 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

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

2015-04-06 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; tr

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

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

[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] Alternative for WebAppClassLoader.started

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

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

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

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

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 Best

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

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

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

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

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 --

Re: WebappLoader vs WebappClassLoader

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

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

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

Re: WebappLoader vs WebappClassLoader

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

Re: WebappLoader vs WebappClassLoader

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

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() meth

"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:// > 10.100.7.

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

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

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

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

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

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

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

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

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
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

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 > w

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 >

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
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

Re: tomcat-embed-jasper vs tomcat-jasper

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

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 * * 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

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 t

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

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

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
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

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 in

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