Re: SEVERE: A child container failed during start

2019-11-30 Thread Karen Goh



Sent from Yahoo Mail for iPhone


On Saturday, November 30, 2019, 8:09 PM, M. Manna  wrote:

Karen,

On Sat, 30 Nov 2019 at 00:58, Karen Goh 
wrote:

>
>
>
> Sent from Yahoo Mail for iPhone
>
>
> On Saturday, November 30, 2019, 6:18 AM, Mark Thomas 
> wrote:
>
> On 29/11/2019 21:28, Karen Goh wrote:
> > I have done so but it is no use. I have deleted the Tomcat and add an
> new instance before run the server again.
> > caused by java.lang.IllegalArgumentException : Filter mapping specifies
> an unknown filter name[SessionValidator]
> > Sorry I am having problem with writing here using Yahoo mail n I have to
> type things out in iPhone so I can’t copy n paste the entire error
> message. Should you need more info in order to help me I hope I can just
> write above the reply message.
>
> You seem to be missing the point. The problematic filter is named:
>
> httpHeaderSecurity
>
> You need to find where that is referenced in your code and/or
> configuration.
> I can’t find this filter at all, even though I am playing with something
> along the line of httpHeaderSecurity (JWT/JSSE etc to be precise) but my
> project is done intermittently cos most of the time I am meshing up the
> code from various sources and use it...
> What do I do in this case?  Re-start a fresh project?
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
>
>
As I replied before, your best option would be:

1) remove all your custom filters from filter mappings so that there is no
filter (only for this test).
2) Start tomcat and confirm that startup is normal without issues
3) Now put back your filters 1-by-1 and repeat step 1-2 to see what breaks.

It's appears a big effort at first glance, but it's a good way to sift
through the problem.
Hi Manna,
Thanks very much for your response.
After I changed the tomcat server to 9.0.29, all the error disappeared. I have 
also changed the servlet api to 4.0.1 in maven n added the @WebFilter without 
incurring any error.
Once again, thank you. 

Thanks,




Re: SEVERE: A child container failed during start

2019-11-29 Thread Karen Goh



Sent from Yahoo Mail for iPhone


On Saturday, November 30, 2019, 6:18 AM, Mark Thomas  wrote:

On 29/11/2019 21:28, Karen Goh wrote:
> I have done so but it is no use. I have deleted the Tomcat and add an new 
> instance before run the server again.
> caused by java.lang.IllegalArgumentException : Filter mapping specifies an 
> unknown filter name[SessionValidator]
> Sorry I am having problem with writing here using Yahoo mail n I have to type 
> things out in iPhone so I can’t copy n paste the entire error message. Should 
> you need more info in order to help me I hope I can just write above the 
> reply message.

You seem to be missing the point. The problematic filter is named:

httpHeaderSecurity

You need to find where that is referenced in your code and/or configuration.
I can’t find this filter at all, even though I am playing with something along 
the line of httpHeaderSecurity (JWT/JSSE etc to be precise) but my project is 
done intermittently cos most of the time I am meshing up the code from various 
sources and use it...
What do I do in this case?  Re-start a fresh project?

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






Re: SEVERE: A child container failed during start

2019-11-29 Thread Karen Goh



Sent from Yahoo Mail for iPhone


On Saturday, November 30, 2019, 5:14 AM, M. Manna  wrote:

Karen,

On Fri, 29 Nov 2019 at 20:51, Karen Goh 
wrote:

>
>
>
> Sent from Yahoo Mail for iPhone
>
>
> On Friday, November 29, 2019, 8:39 PM, Karen Goh
>  wrote:
>
>
>
>
>
>
> On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas <
> ma...@apache.org> wrote:
>
>
> On 29/11/2019 10:44, Karen Goh wrote:
> > Hi experts,
> >
> >
> > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13
> and running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09.
> >
> > Have been trying to tackling the problem with no avail.
> >
> > Would appreciate some tips on how to make these error go away.
>
> 
>
> > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies
> an unknown filter name [httpHeaderSecurity]
>
> 
> I am not sure why the error persists even if I change the filter mapping
> to :
>
> SessionValidator/login.jsp
> And here is snippet my Filter :
> @WebFilter(“/SessionValidator”)public class SessionValidator implements
> Filter
> public void doFilter(ServletRequest request, ServletResponse response,
> FilterChain chain) throws IOException, ServletException{
> ..HttpSession session = httpRequest.getSession();If(session.isNew())
> {httpResponse.sendRedirect(httpResponse.encodedRedirectURL(httpRequest.getContextPath()
> + “/login.jsp”return;}And then redirect the user to error.html if log in
> user is null.
> Please let me know what’s wrong.
> Thanks
> Where and how is this filter specified as being required?
> Where and how is this filter defined?
>
> Please see below
>
> 
> http://www.w3.org/2001/XMLSchema-instance; xmlns="
> http://xmlns.jcp.org/xml/ns/javaee; xsi:schemaLocation="
> http://xmlns.jcp.org/xml/ns/javaee
> http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0">
>  Archetype Created Web Application
>  
>  
>  Restricted Area
>  /search.jsp
>  
>  
>  
>  SessionValidator
>  Controller.SessionValidator
>  
>  
>  404
>  /error.html
>  
>  
>  403
>  /error.html
>  
>  
>  500
>  /error.html
>  
>  
>  java.lang.Exception
>  /error.html
>  
> 
>
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
>
>
 I would advise that you remove @WebFilter and try again. Seems like it's
conflicted with processing annotation based and web.xml supplied filter
definitions.
Once you remove the annotation, give it a try and let us know.
I have done so but it is no use. I have deleted the Tomcat and add an new 
instance before run the server again.
caused by java.lang.IllegalArgumentException : Filter mapping specifies an 
unknown filter name[SessionValidator]
Sorry I am having problem with writing here using Yahoo mail n I have to type 
things out in iPhone so I can’t copy n paste the entire error message. Should 
you need more info in order to help me I hope I can just write above the reply 
message. Tks
Please advise.
Thanks.





Thanks,




Re: SEVERE: A child container failed during start

2019-11-29 Thread Karen Goh



Sent from Yahoo Mail for iPhone


On Friday, November 29, 2019, 8:39 PM, Karen Goh  
wrote:






On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas  
wrote:


On 29/11/2019 10:44, Karen Goh wrote:
> Hi experts,
>
>
> Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and 
> running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09.
>
> Have been trying to tackling the problem with no avail.
>
> Would appreciate some tips on how to make these error go away.



> Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an 
> unknown filter name [httpHeaderSecurity]


I am not sure why the error persists even if I change the filter mapping to :
SessionValidator/login.jsp
And here is snippet my Filter :
@WebFilter(“/SessionValidator”)public class SessionValidator implements 
Filter
public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain chain) throws IOException, ServletException{
..HttpSession session = httpRequest.getSession();If(session.isNew()) 
{httpResponse.sendRedirect(httpResponse.encodedRedirectURL(httpRequest.getContextPath()
 + “/login.jsp”return;}And then redirect the user to error.html if log in user 
is null.
Please let me know what’s wrong.
Thanks
Where and how is this filter specified as being required?
Where and how is this filter defined?

Please see below


http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://xmlns.jcp.org/xml/ns/javaee; 
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0">
 Archetype Created Web Application
 
 
 Restricted Area
 /search.jsp
  
 
 
 SessionValidator
 Controller.SessionValidator
 
 
 404
 /error.html
 
 
 403
 /error.html
 
 
 500
 /error.html
 
 
 java.lang.Exception
 /error.html
 



Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  




Re: SEVERE: A child container failed during start

2019-11-29 Thread Karen Goh
 




On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas  
wrote:


On 29/11/2019 10:44, Karen Goh wrote:
> Hi experts,
>
>
> Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and 
> running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09.
>
> Have been trying to tackling the problem with no avail.
>
> Would appreciate some tips on how to make these error go away.



> Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an 
> unknown filter name [httpHeaderSecurity]



Where and how is this filter specified as being required?
Where and how is this filter defined?

Please see below


http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://xmlns.jcp.org/xml/ns/javaee; 
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0">
 Archetype Created Web Application
 
 
 Restricted Area
 /search.jsp
  
 
 
 SessionValidator
 Controller.SessionValidator
 
 
 404
 /error.html
 
 
 403
 /error.html
 
 
 500
 /error.html
 
 
 java.lang.Exception
 /error.html
 



Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  

SEVERE: A child container failed during start

2019-11-29 Thread Karen Goh
Hi experts,


Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and 
running it with Tomcat 9.0.27.  Windows OS. Eclipse 2019-09.

Have been trying to tackling the problem with no avail.

Would appreciate some tips on how to make these error go away.

Here's the error :

Nov 29, 2019 6:25:18 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webApp-hi5]]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webApp-hi5]]
at 
org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at 
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
... 21 more
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an 
unknown filter name [httpHeaderSecurity]
at 
org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3009)
at 
org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2971)
at 
org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1288)
at 
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1168)
at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 27 more

Nov 29, 2019 6:25:18 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: A child container failed during start
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
 

it takes very long for Tomcat Server to start etc

2019-09-25 Thread Karen Goh
Hi experts,

Recently, the Tomcat server - version 9.0.24 for Windows 10 is acting very 
strangely.  It takes very very long for it to start.

Furthermore, I have problem in using it for debug in Eclipse.

Usually, I will start the server before right click on the jsp page that I want 
to debug.

The VM argument as follows:
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y

The JVM will start but when the web page appear, it will say that the port -the 
configuration port along with the other ports - Tomcat admin port and ACP port 
are in used.

I tried to kill it but the problem will appear again and again.

Using stackoverflow as reference, I have put in this line in the run 
configuration
Djava.security.egd=file:/dev/urandom
but no help.

I have deleted the Tomcat and re-installed new instances but no help.

Please advise what can I do to let Tomcat run again and be able to do debug 
again normally.

Thanks for your help!

Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat doesn't refreshes and still gives me an old error again and again

2019-09-06 Thread Karen Goh
 




On Thursday, September 5, 2019, 9:47:40 PM GMT+8, Mark Thomas 
 wrote:


Personally, I gave up on using Tomcat and Eclipse in this way a long
time ago. It is a little more work but I run a completely separate
Tomcat instance and then use the "Export...", "WAR file" option to
deploy the latest version of my webapp to the external Tomcat instance
and then let Tomcat's auto-deploy take care of things.

Hi Mark,

This is completely new to me. When you said use the "Export" are you referrring 
to the Export inside Eclipse?
How do you debug without Eclipse then ?

Apart from those times where I've managed to export to the wrong Tomcat
instance (entirely my own fault) I've never had an issue.

As an added bonus it makes it easy to debug into the Tomcat code when I
need to but I accept that that is something a Tomcat developer is going
to want to do rather more frequently than someone developing a web app.

Mark

> Karen,
>
> On 9/4/19 10:45, Karen Goh wrote:
>> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
>>  wrote:
>
>
>> On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote:
>
>
>>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>>> refreshes and it will give ma an error, even after I commented
>>> out a line. But, after several cleaning - using Tomcat Directory
>>> clean, right-click on the project in Eclipse and do a run maven
>>> force update and project built, it will still give me an error
>>> that point out to a commented out line.
>
>
>> Do you have a tomcat/work directory? ISTR sometimes having to
>
>> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>
>> Could you let me know how to do it Windows 10 way? Sorry for the
>> trouble cos basically most of my stuff is still using Windows
>> 10
>
> C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}
>
> Or just navigate Windows Explorer to the "work" directory and press
> the "DELETE" key on your keyboard.
>
> Hi Chris,
>
> Just to clarify, so instead of doing the clean, I will have to to to this 
> place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and 
> delete weappname ?
>
> I happened to read this 
> https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse
>
> I checked the location when I right-clicked the Tomcat instance, it says meta 
> data, so should I delete the metadata one ? My Tomcat configuration is take 
> control of Tomcat installation.
>
> Kindly advise. And thanks for your help.
>
>
>
>
> -chris
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

>
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  

Re: Tomcat doesn't refreshes and still gives me an old error again and again

2019-09-04 Thread Karen Goh
 




On Wednesday, September 4, 2019, 10:50:17 PM GMT+8, Christopher Schultz 
 wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Karen,

On 9/4/19 10:45, Karen Goh wrote:
> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn
>  wrote:
>
>
> On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote:
>
>
>> I am facing this problem - that Tomcat - 9.0.24 doesn't
>> refreshes and it will give ma an error, even after I commented
>> out a line. But, after several cleaning - using Tomcat Directory
>> clean, right-click on the project in Eclipse and do a run maven
>> force update and project built, it will still give me an error
>> that point out to a commented out line.
>
>
> Do you have a tomcat/work directory? ISTR sometimes having to
>
> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}
>
> Could you let me know how to do it Windows 10 way? Sorry for the
> trouble cos basically most of my stuff is still using Windows
> 10

C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname}

Or just navigate Windows Explorer to the "work" directory and press
the "DELETE" key on your keyboard.

Hi Chris,

Just to clarify, so instead of doing the clean, I will have to to to this place 
- C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete 
weappname ?

I happened to read this 
https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse

I checked the location when I right-clicked the Tomcat instance, it says meta 
data, so should I delete the metadata one ? My Tomcat configuration is take 
control of Tomcat installation.

Kindly advise. And thanks for your help.




- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8
pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv
7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU
zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8
+Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx
bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8
RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo
WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e
D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL
kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy
fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz
/is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ=
=EtCR
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  

Re: Tomcat doesn't refreshes and still gives me an old error again and again

2019-09-04 Thread Karen Goh
 




On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn 
 wrote:


On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote:


> I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes
> and it will give ma an error, even after I commented out a line.
> But, after several cleaning - using Tomcat Directory clean,
> right-click on the project in Eclipse and do a run maven force
> update and project built, it will still give me an error that point
> out to a commented out line.


Do you have a tomcat/work directory? ISTR sometimes having to

rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname}

Could you let me know how to do it Windows 10 way? Sorry for the trouble cos 
basically most of my stuff is still using Windows 10

although it was never obvious why I sometimes had to, but generally
didn't.

-- 
dave thorn

Would you like green eggs and the fundamental condition of yearning
for meaning in a world devoid of it?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  

Tomcat doesn't refreshes and still gives me an old error again and again

2019-09-04 Thread Karen Goh
Hi Expert,

I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes and it will 
give ma an error, even after I commented out a line.  But, after several 
cleaning - using Tomcat Directory clean, right-click on the project in Eclipse 
and do a run maven force update and project built, it will still give me an 
error that point out to a commented out line.

Can I know if the above indicate a corrupted Tomcat instance or what should I 
do in order not to have the above problem crop up again and again?

Eclipse
Maven Java EE, JSP, JSTL
OS : Windows10
Tomcat : 9.0.24

Thanks & regards,
Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: why is ContextListener.attributeAdded means?

2019-07-24 Thread Karen Goh
 




On Wednesday, July 24, 2019, 11:29:39 PM GMT+8, Mark Eggers 
 wrote:


On 7/24/2019 12:58 AM, Karen Goh wrote:
> 
>
>
>
>
> On Wednesday, July 24, 2019, 12:54:35 PM GMT+8, Mark Eggers 
>  wrote:
>
>
> Karen,
>
> On 7/23/2019 7:41 PM, Karen Goh wrote:
>> Dear experts,
>>
>> I need some help again.
>>
>> I am trying to get a html page out on my browser, I changed my Tomcat server 
>> as the previous one has some Ant script 'creeping in when I downloaded an 
>> example'. However, I do not know why am I receiving an error message ?
>>
>> Background :-
>> -
>> Netbean IDE
>> Windows OS
>> Tomcat 9.0.12
>> JEE
>>
>> Error Message :
>>
>> 24-Jul-2019 10:03:27.271 INFO [main] 
>> org.apache.catalina.core.ApplicationContext.log ContextListener: 
>> contextInitialized()
>> 24-Jul-2019 10:03:27.271 INFO [main] 
>> org.apache.catalina.core.ApplicationContext.log SessionListener: 
>> contextInitialized()
>> 24-Jul-2019 10:03:27.292 INFO [main] 
>> org.apache.catalina.core.ApplicationContext.log ContextListener: 
>> attributeAdded('StockTicker', 'async.Stockticker@4fa4f485')
>>
>> Can I know why there is a ContextListner:attributeAdded('StockTicer', 
>> 'async.Stockticker@4fa4f485') as appeared in the log ?
>>
>> How do I make it go away so that I can run my webApp ?
>>
>> Thank you for your help.
>> Karen
>
>
> This is coming from the examples that are shipped with Tomcat. In
> particular, this appears to be from the Stock Ticker asynchronous example.
>
> In other words, this is nothing to be concerned about.
>
> . . . just my two cents.
> /mde/
>
> I have never seen this log infor pop up.
>
> Now, I have another problem - Tomcat server keeps popping up the 
> authentication gui - Tomcat manager.
>
> I can't get this Tomcat Manager GUI to stop appear. And I have not configure 
> the app to use Tomcat Manager at all.
>
> Please let me know how to stop if from appearing.
>
> Tks.

This is a NetBeans thing. NetBeans uses the manager application (and the
manager-script role) to deploy or redeploy to Tomcat.

The instructions for configuring tomcat-users.xml are in that file.

Normally when you add a Tomcat server to NetBeans, it will ask to create
the user with that manager-script role if one does not exist. Or you
could supply one that you've configured in tomcat-users.xml.

Then save the password in NetBeans, so that you won't get prompted each
time there's a deploy or redeploy.

NetBeans by default will redeploy on save if you are currently running
the application. If you save the password for the user with the
manager-script role, then you should not see the prompt.

If the application is not running in Tomcat, then NetBeans won't try to
redeploy on save.


Thanks Mike. 

. . . just my two cents
/mde/


  

Re: why is ContextListener.attributeAdded means?

2019-07-24 Thread Karen Goh
 




On Wednesday, July 24, 2019, 12:54:35 PM GMT+8, Mark Eggers 
 wrote:


Karen,

On 7/23/2019 7:41 PM, Karen Goh wrote:
> Dear experts,
>
> I need some help again.
>
> I am trying to get a html page out on my browser, I changed my Tomcat server 
> as the previous one has some Ant script 'creeping in when I downloaded an 
> example'. However, I do not know why am I receiving an error message ?
>
> Background :-
> -
> Netbean IDE
> Windows OS
> Tomcat 9.0.12
> JEE
>
> Error Message :
>
> 24-Jul-2019 10:03:27.271 INFO [main] 
> org.apache.catalina.core.ApplicationContext.log ContextListener: 
> contextInitialized()
> 24-Jul-2019 10:03:27.271 INFO [main] 
> org.apache.catalina.core.ApplicationContext.log SessionListener: 
> contextInitialized()
> 24-Jul-2019 10:03:27.292 INFO [main] 
> org.apache.catalina.core.ApplicationContext.log ContextListener: 
> attributeAdded('StockTicker', 'async.Stockticker@4fa4f485')
>
> Can I know why there is a ContextListner:attributeAdded('StockTicer', 
> 'async.Stockticker@4fa4f485') as appeared in the log ?
>
> How do I make it go away so that I can run my webApp ?
>
> Thank you for your help.
> Karen


This is coming from the examples that are shipped with Tomcat. In
particular, this appears to be from the Stock Ticker asynchronous example.

In other words, this is nothing to be concerned about.

. . . just my two cents.
/mde/

I have never seen this log infor pop up.

Now, I have another problem - Tomcat server keeps popping up the authentication 
gui - Tomcat manager.

I can't get this Tomcat Manager GUI to stop appear. And I have not configure 
the app to use Tomcat Manager at all.

Please let me know how to stop if from appearing.

Tks.

  

Re: why is ContextListener.attributeAdded means?

2019-07-23 Thread Karen Goh



Sent from Yahoo Mail for iPhone


On Wednesday, July 24, 2019, 12:04 PM, M. Manna  wrote:

Hi Goh,

It’s part of standard tomcat logging for servlet ctx init audit.

Check logging.properties file in your conf/ directory. You should be able
to change the level and tune how much logging is needed.

And btw, it’s an INFO, not ERROR/FATAL/SEVERE.
ContextListener:
> attributeAdded('StockTicker', 'async.Stockticker@4fa4f485')
But, in my WebApp I don’t have this at all? So how did it creep into the log? 
Is there some kind of script lying somewhere, accidentally crept in without me 
knowing n some how make its way inside Tomcat...I know this sound abit over 
imaginative but I really can’t tell for sure this attributeAdded is something 
that comes with Tomcat

Thanks,

On Wed, 24 Jul 2019 at 11:42, Karen Goh 
wrote:

> Dear experts,
>
> I need some help again.
>
> I am trying to get a html page out on my browser, I changed my Tomcat
> server as the previous one has some Ant script 'creeping in when I
> downloaded an example'.  However, I do not know why am I receiving an error
> message ?
>
> Background :-
> -
> Netbean IDE
> Windows OS
> Tomcat 9.0.12
> JEE
>
> Error Message :
>
> 24-Jul-2019 10:03:27.271 INFO [main]
> org.apache.catalina.core.ApplicationContext.log ContextListener:
> contextInitialized()
> 24-Jul-2019 10:03:27.271 INFO [main]
> org.apache.catalina.core.ApplicationContext.log SessionListener:
> contextInitialized()
> 24-Jul-2019 10:03:27.292 INFO [main]
> org.apache.catalina.core.ApplicationContext.log ContextListener:
> attributeAdded('StockTicker', 'async.Stockticker@4fa4f485')
>
> Can I know why there is a ContextListner:attributeAdded('StockTicer',
> 'async.Stockticker@4fa4f485') as appeared in the log ?
>
> How do I make it go away so that I can run my webApp ?
>
> Thank you for your help.
> Karen
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>




why is ContextListener.attributeAdded means?

2019-07-23 Thread Karen Goh
Dear experts,

I need some help again.

I am trying to get a html page out on my browser, I changed my Tomcat server as 
the previous one has some Ant script 'creeping in when I downloaded an 
example'.  However, I do not know why am I receiving an error message ?

Background :-
-
Netbean IDE
Windows OS
Tomcat 9.0.12
JEE

Error Message :

24-Jul-2019 10:03:27.271 INFO [main] 
org.apache.catalina.core.ApplicationContext.log ContextListener: 
contextInitialized()
24-Jul-2019 10:03:27.271 INFO [main] 
org.apache.catalina.core.ApplicationContext.log SessionListener: 
contextInitialized()
24-Jul-2019 10:03:27.292 INFO [main] 
org.apache.catalina.core.ApplicationContext.log ContextListener: 
attributeAdded('StockTicker', 'async.Stockticker@4fa4f485')

Can I know why there is a ContextListner:attributeAdded('StockTicer', 
'async.Stockticker@4fa4f485') as appeared in the log ?

How do I make it go away so that I can run my webApp ?

Thank you for your help.
Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



where to look for $CATALINA_BASE/conf/ in Tomcat Server ?

2019-06-05 Thread Karen Goh
Hi,

I am trying to do JASPIC follows by JACC using Java Servlet and JSP and maybe 
REST with PostgresQL

https://www.byteslounge.com/tutorials/jaas-authentication-in-tomcat-example

However, I have difficulty in locating the $Catablina_base in the external 
tomcat server I am using in Eclipse.

Also, I went to check out the hosting company side, I can't find Catalina_base 
at all also.

I hope someone can tell me exactly where to put the jaas.config file for the 
JAAS to work.

Another thing is about JASPIC.

I can't find alot of tutorial regarding JAPIC.

There is this guy Arjan Tijms which poses quite a fair bit of infor but I guess 
my Java skills is still not good enough to understand the mechanism of how 
things work.

I am currently testing things out using Tomcat 9.0.4.

And how does JASPIC + JACC fit into the scheme of salt based password 
verification.  

Hope someone can give me some hints how to go about securely password the 
simplest possible way based on JASPIC and JACC.  Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Does Tomcat server printout System.out.print infor?

2019-05-14 Thread Karen Goh



On Tue, 5/14/19, Christopher Schultz  wrote:

 Subject: Re: Does Tomcat server printout System.out.print infor?
 To: users@tomcat.apache.org
 Date: Tuesday, May 14, 2019, 5:37 AM
 
 -BEGIN PGP SIGNED
 MESSAGE-
 Hash: SHA256
 
 Karen,
 
 On 5/11/19 22:39, Karen Goh wrote:
 > Currently, I am uploading a new .war file
 up to my hosting
 > company.
 > 
 > However, I am
 puzzled how things work and would like to check what
 > is the norm out there.
 > 
 > They are using httpd
 apache server and tomcat.
 > 
 > Basically, I have subscribed a private
 Tomcat server so I get an 
 > instance of
 Tomcat server - 8.0.27.
 That version is no
 longer supported by the "vendor" (Apache). You
 should tell your hosting company that you want
 a supported version if
 they are going to
 charge you for it :)
 
May I know what version should I go for ?
 >
 But, the re-start of server is not in my control.
 > 
 > I would like to know
 if this is the normal environment in a web
 > hosting company ?
 
 Inconvenient, perhaps, but not necessarily out
 of the ordinary.
 
 >
 Another thing is that, in my newly uploaded war file, I
 don't get
 > to see any
 System.out.println infor in my code, which I believe it 
 > should be printed out, as per my last log
 file indication in the
 > web hosting
 company.
 
 If it's
 "their" instance and not yours, then you probably
 won't see
 that. What kind of access do
 you have for the server? If you have
 shell
 access, you can probably get the logs. Using
 System.out.println
 is not a great idea as
 it's pretty inflexible. It's better to use a
 "proper" logging system where you can
 specify the log file name, etc.
 
I do have access to the Catalina log.
The technical support guy just told me that they have put in the logging jar 
for me in their Tomcat server!
 > What they told me is "Only if there
 is system level operation. For 
 >
 example, unloading/reloading a war file would have
 logged."
 > 
 > So,
 please help me know if it is not possible to see 
 > system.out.print infor as what I have put
 in the code in my java 
 > class ?
 > 
 > Another thing is
 that I am going to put in the Tomcat Realm for the
 >  log-in module and I am wondering where
 is the privacy since I do
 > not have the
 full control over Tomcat in this web hosting
 > environment ?
 
 If you are using container-managed
 authentication (which is what
 Tomcat Realms
 provide), then you have to trust the hosting provider.
 There is no way to prevent the hosting provider
 from seeing any
 secrets you have in that
 configuration.

I am now mulling if I should use JWT.  In this case, I can skip the Realm 
configuration in tomcat right ?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
 
 iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlzZ450ACgkQHPApP6U8
 pFi/EhAAhVS64ib8GzAl6PNLISm/rYeZ765eFg9eqRwCpPnss6ZuW/kD9moznKhN
 cj17X84itq3VihkRV+S/xnVM8TZ7OG71dwyhgrQUDcixuU9F37GVF16K5/gqHrF1
 cu5QrMWw9oPFIEUWEi3jaUJF233Jm9y5IgHCyyieAbcDiCm5Gl9NVd1opQHWBkKZ
 YqH0xGVGxADAf9QiFnkmX5ZEq2REaGr6sV5b2oKgQCKv2iEoCvWxFYuyqG1iIbz1
 wgbHqOy/adSdqvN704HcMaLTB7sfWBppp5RQyzN4Pz0Dx45845JRTWEdZpZ+YTop
 1Xa1NhkYd/MqV+VZoi0Ivd+pvva5cGKR4zPFKXW9KRFw3Gl+cLoQPlyXxN8k3yZv
 PDCDlRqAFoAZakJ6BC4HHarAPJzRWGPON1UWhtXR7VdLXCRhcLcMMZg1UX3n9HJ+
 ycw3haS99/0GPs1kMLNZ2Jk0QGf7v/lrU84PDQG8l27hJ8p4lJ4TqwxqMR0Nx9Uv
 iTpGodreOFJ+FXDegxYZNyrnOyOAuVl6Qi3iTz5bphuUa0FLrcX8pSJIt5PtgEFj
 qr71idqFeagCbbDJw/CtqchhEsTLyvfTFoNcTD2C5xuoG/Bo113/SKi4ffWTagxz
 y+nNPdRaKZ+dR+JotM37+7BYKxtNGnabaNT4nMUT04pHOdCmPSw=
 =kD0S
 -END PGP
 SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Does Tomcat server printout System.out.print infor?

2019-05-11 Thread Karen Goh



On Sun, 5/12/19, Jason Wee  wrote:

 Subject: Re: Does Tomcat server printout System.out.print infor?
 To: "Tomcat Users List" , "Karen Goh" 

 Date: Sunday, May 12, 2019, 10:52 AM
 
 default tomcat , when you print,
 logging should goes to catalina.out.
 In any
 case, check logging.properties in tomcat directory on where
 the
 logging configured.
 
 as for realm, it can be configure in the
 context element, which mean
 in the
 META-INF/context.xml, see
 https://tomcat.apache.org/tomcat-8.0-doc/realm-howto.html#Configuring_a_Realm

Thanks for your fast response.
I went to the URL link but there is no concrete example as to how to set the 
Realm inside context.xml.

Could you kindly point me to some examples that I can follow ?

Furthermore, my web host directory setting is like this:

tomcat
---> conf
---> Catalina -> this will open up with server.xml, tomcat-users.xml, web.xml 
-> websitename.com
->test1.websitename.com
->test2.websitename.com
logs

How do I enable the logging in this case to show my system.out.println infor ?

and the META-INF/context.xml do you mean in my web app before I make it into 
ROOT.WAR I have to do the configuration before I built it into ROOT.war so 
there is no need for me to touch anything on the web host directory right ?

 
 On Sun, May 12, 2019 at 10:40 AM Karen Goh
 
 wrote:
 >
 > Hello
 experts,
 >
 >
 Currently, I am uploading a new .war file up to my hosting
 company.
 >
 > However,
 I am puzzled how things work and would like to check what is
 the norm out there.
 >
 > They are using httpd apache server and
 tomcat.
 >
 > Basically,
 I have subscribed a private Tomcat server so I get an
 instance of Tomcat server - 8.0.27.
 >
 > But, the re-start of server is not in my
 control.
 >
 > I would
 like to know if this is the normal environment in a web
 hosting company ?
 >
 >
 Another thing is that, in my newly uploaded war file, I
 don't get to see any System.out.println infor in my
 code, which I believe it should be printed out, as per my
 last log file indication in the web hosting company.
 >
 > What they told me
 is
 > "Only if there is system level
 operation. For example, unloading/reloading a war file would
 have logged."
 >
 >
 So, please help me know if it is not possible to see
 system.out.print infor as what I have put in the code in my
 java class ?
 >
 >
 Another thing is that I am going to put in the Tomcat Realm
 for the log-in module and I am wondering where is the
 privacy since I do not have the full control over Tomcat in
 this web hosting environment ?
 >
 > Thanks & regards,
 >
 Karen
 >
 >
 >
 -
 > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 > For additional commands, e-mail: users-h...@tomcat.apache.org
 >
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Does Tomcat server printout System.out.print infor?

2019-05-11 Thread Karen Goh
Hello experts,

Currently, I am uploading a new .war file up to my hosting company.

However, I am puzzled how things work and would like to check what is the norm 
out there.

They are using httpd apache server and tomcat.  

Basically, I have subscribed a private Tomcat server so I get an instance of 
Tomcat server - 8.0.27.

But, the re-start of server is not in my control.  

I would like to know if this is the normal environment in a web hosting company 
?

Another thing is that, in my newly uploaded war file, I don't get to see any 
System.out.println infor in my code, which I believe it should be printed out, 
as per my last log file indication in the web hosting company.

What they told me is 
"Only if there is system level operation. For example, unloading/reloading a 
war file would have logged."

So, please help me know if it is not possible to see system.out.print infor as 
what I have put in the code in my java class ?

Another thing is that I am going to put in the Tomcat Realm for the log-in 
module and I am wondering where is the privacy since I do not have the full 
control over Tomcat in this web hosting environment ?

Thanks & regards,
Karen


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fw: Re: Tomcat Manager keeps asking for Authentication

2018-12-22 Thread Karen Goh



--- On Sun, 12/23/18, Karen Goh  wrote:

> From: Karen Goh 
> Subject: Re: Tomcat Manager keeps asking for Authentication
> To: "Tomcat Users List" 
> Date: Sunday, December 23, 2018, 1:40 PM
> 
> 
> On Sat, 12/22/18, Mark Thomas 
> wrote:
> 
>  Subject: Re: Tomcat Manager keeps
> asking for Authentication
>  To: users@tomcat.apache.org
>  Date: Saturday, December 22, 2018,
> 7:56 PM
>  
>  On 22/12/2018 09:12, Karen Goh
>  wrote:
>  > 
>  > I am
>  running Netbean 8.2 and am trying to
> study a web project
>  from github.
>  > 
>  > It
>  was stated that certain pages are
> constrained by the Tomcat
>  Role, in order to view the Admin
> panel.
>  >
>  
>  > So, what I did was to alter the
> Tomcat
>  C:\Program Files\Apache Software
> Foundation\Apache Tomcat
>  8.0.27\conf\tomcat-user.xml
>  
>  Note: 8.0.x has reached end of life
> and is no
>  longer supported.
>  
>  > 
>  > And here's what I added:
>  > 
>  >
>  
>  >        rolename="tomcat"/>
>  >   
>    
>  >        rolename="manager-gui"/>
>  > 
>        roles="tomcat,manager-gui"
>  username="tomcat"/>
>  >   
>      roles="tomcat,role1"
>  username="both"/>
>  >     
>   roles="role1"
>  username="role1"/>
>  >     
>roles="manager-script, administrator"
>  username="me"/>
>  >
>  
>  
>  Are
>  you sure the above is not commented
> out?
>  
>  Mark
> 
> Hello Mark,
> 
> Thanks for your reply and thanks for
> your last reply about the changing the xml file in which I
> havn't thank you cos I was grappling with so many things...
> 
> I just found out that this guy he is
> using some kind of 'embedded Tomcat' to do the work I am not
> very sure though.
> 
> And so I was trying to edit an external
> Tomcat server thus it never works.
> 
> I am quite new to the way it was done
> cos eventually I found it inside apache-tomcat inside the
> AppData !
> 
> C:\Users\xxx\\Roaming\NetBeans\8.2\apache-tomcat-8.0.27.0_base\conf\tomcat-user.xml
> 
> Can I know what is this method about?
> 
In addition, I'd like to know how to clean Tomcat directory in this case?

Cos now after examining the server log, I saw an error :
The reference to entity "ampUseLegacyDatetimeCode" must end with the ';' 
delimiter.)

So, I edited the persistence.xml to ;

jdbc:mysql://localhost:3306/music_store?autoReconnect=true;UseLegacyDatetimeCode=false;serverTimezone=UTC;seSSL=False"/>

But, it still gives me the old error.


> 
>  
> 
> -
>  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>  For additional commands, e-mail: users-h...@tomcat.apache.org
>  
>  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat Manager keeps asking for Authentication

2018-12-22 Thread Karen Goh



On Sat, 12/22/18, Mark Thomas  wrote:

 Subject: Re: Tomcat Manager keeps asking for Authentication
 To: users@tomcat.apache.org
 Date: Saturday, December 22, 2018, 7:56 PM
 
 On 22/12/2018 09:12, Karen Goh
 wrote:
 > 
 > I am
 running Netbean 8.2 and am trying to study a web project
 from github.
 > 
 > It
 was stated that certain pages are constrained by the Tomcat
 Role, in order to view the Admin panel.
 >
 
 > So, what I did was to alter the Tomcat
 C:\Program Files\Apache Software Foundation\Apache Tomcat
 8.0.27\conf\tomcat-user.xml
 
 Note: 8.0.x has reached end of life and is no
 longer supported.
 
 > 
 > And here's what I added:
 > 
 >
 
 >      
 >   
   
 >      
 > 
     
 >   
   
 >     
 
 >     
 
 >
 
 
 Are
 you sure the above is not commented out?
 
 Mark

Hello Mark,

Thanks for your reply and thanks for your last reply about the changing the xml 
file in which I havn't thank you cos I was grappling with so many things...

I just found out that this guy he is using some kind of 'embedded Tomcat' to do 
the work I am not very sure though.

And so I was trying to edit an external Tomcat server thus it never works.

I am quite new to the way it was done cos eventually I found it inside 
apache-tomcat inside the AppData !

C:\Users\xxx\\Roaming\NetBeans\8.2\apache-tomcat-8.0.27.0_base\conf\tomcat-user.xml

Can I know what is this method about?


 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat Manager keeps asking for Authentication

2018-12-22 Thread Karen Goh


I am running Netbean 8.2 and am trying to study a web project from github.

It was stated that certain pages are constrained by the Tomcat Role, in order 
to view the Admin panel.

So, what I did was to alter the Tomcat C:\Program Files\Apache Software 
Foundation\Apache Tomcat 8.0.27\conf\tomcat-user.xml

And here's what I added:











Error message :
Deployment error: Access to Tomcat server has not been authorized. Set the 
correct username and password with the "manager-script" role in the Tomcat 
customizer in the Server Manager.
See the server log for details.

I also tried below but it can't work also.











Here's the constraint that is imposed at the web.xml under WEB/INF:

 -- You can restrict access to admin pages by uncommenting the code below-->
   
  administrator of the website
  administrator
   
   
  
 Admin Login
 /admin_panel/*
 /admin/*
  
  
 administrator
  
   
   
   
  BASIC
  Admin Login
-->

Please let me know what I have done wrong.

Tks.

Here's the screenshot of 
https://ibb.co/0V3CCcs

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: http status 404 - not found

2018-11-22 Thread Karen Goh



On Mon, 11/19/18, Salil Misra  wrote:

 Subject: Re: http status 404 - not found
 To: users@tomcat.apache.org, karenwo...@yahoo.com
 Date: Monday, November 19, 2018, 9:14 PM
 
 Just a quick check , have you
 saved your view page as a JSP and not as HTML
 ? If its saved as HTML , this might be the
 possible cause.
 
 Thanks.
 
 
 
 On
 Sun, 18 Nov 2018 at 09:31, Karen Goh 
 wrote:
 
 >
 Hello Tomcat user group,
 >
 > I hope that this question is valid cos I
 googled and many related issue
 > like
 this pointed to server problem.
 >
 > Tomcat version : 8.5.24
 > IDE : Eclipse Oxygen
 >
 OS : Windows 10
 >
 >
 Basically, I have created a maven structured web app and
 after right-click
 > my tutorRegister
 page, and the form submitted, http status 404 appeared.
 >
 > This is what appeared
 in my browser :
 >
 > 
 /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor
 >
 > I have checked my
 past project and there was no problem in getting the
 > form submitted but when I made the project
 into maven type, I am getting
 > the above
 error.
 >
 >        
 
 action="${pageContext.request.contextPath}/addTutor"
 >
 > Here's my pom.xml
 ;
 >
 >
 4.0.0
 >
 >        
 com.hi5Supreme.web
 >        
 webApp-hi5
 >        
 0.0.1-SNAPSHOT
 >        
 war
 >
 >        
 webApp-hi5 Maven Webapp
 >         
 >
 >
 UTF-8
 >                
 1.8
 >                
 1.8
 >         
 >
 >
 >         
 >                
 webApp-hi5
 >                
 
 >             
    
 >      
 src/main/webapp
 >     
 >     
 >                
 
 >                        
 
 >               
                  
 >
 >
 maven-clean-plugin
 >                           
              3.0.0
 >                           
      
 >           
                      
 >         
                        
 >
 >
 maven-resources-plugin
 >                           
              3.0.2
 >                           
      
 >           
                      
 >
 >
 maven-compiler-plugin
 >                           
              3.7.0
 >                           
      
 >           
                      
 >
 >
 maven-surefire-plugin
 >                           
              2.20.1
 >                           
      
 >           
                      
 >
 >
 maven-war-plugin
 >                           
              3.2.0
 >                           
              
 >                           
             
 webApp-hi5
 >                           
              
 >                           
      
 >           
                      
 >
 >
 maven-install-plugin
 >                           
              2.5.2
 >                           
      
 >           
                      
 >
 >
 maven-deploy-plugin
 >                           
              2.8.2
 >                           
      
 >           
              
 > 
                
 >         
 >         
 >                
 
 >             
           
 javax.servlet.jsp
 >                        
 javax.servlet.jsp-api
 >                        
 2.3.1
 > 
                       
 provided
 > 
                
 >                
 
 >             
           
 javax.servlet
 >                        
 jsp-api
 >                        
 2.0
 >   
              
 >                
 
 >             
            jstl
 >                        
 jstl
 >                        
 provided
 > 
                       
 1.2
 >   
              
 >                 
 >                
 
 >             
           
 org.lazyluke
 >                        
 log4jdbc-remix
 >                        
 0.2.7
 > 
                
 >                
 
 >             
            mysql
 >                        
 mysql-connector-java
 >                        
 8.0.12
 > 
                       
 provided
 > 
                
 >                
 
 >             
           
 javax.servlet
 >                        
 javax.servlet-api
 >                        
 3.1.0
 > 
                       
 provided
 > 
                
 >                
 
 >             
            junit
 >                        
 junit
 >                        
 4.11
 > 
                       
 test
 >     
            
 > 
        
 >
 
 >
 >
 Hope someone can let me know how if I have missed out
 anything.
 >
 >
 Tks.
 >
 >
 >
 >
 >
 -
 > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 > For additional commands, e-mail: users-h...@tomcat.apache.org
 >
 >
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



http status 404 - not found

2018-11-17 Thread Karen Goh
Hello Tomcat user group,

I hope that this question is valid cos I googled and many related issue like 
this pointed to server problem.

Tomcat version : 8.5.24
IDE : Eclipse Oxygen
OS : Windows 10

Basically, I have created a maven structured web app and after right-click my 
tutorRegister page, and the form submitted, http status 404 appeared.

This is what appeared in my browser :

 /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor

I have checked my past project and there was no problem in getting the form 
submitted but when I made the project into maven type, I am getting the above 
error.

4.0.0

com.hi5Supreme.web
webApp-hi5
0.0.1-SNAPSHOT
war

webApp-hi5 Maven Webapp


UTF-8
1.8
1.8




webApp-hi5
 

  src/main/webapp






maven-clean-plugin
3.0.0




maven-resources-plugin
3.0.2



maven-compiler-plugin
3.7.0



maven-surefire-plugin
2.20.1



maven-war-plugin
3.2.0

webApp-hi5




maven-install-plugin
2.5.2



maven-deploy-plugin
2.8.2






javax.servlet.jsp
javax.servlet.jsp-api
2.3.1
provided


javax.servlet
jsp-api
2.0


jstl
jstl
provided
1.2  



org.lazyluke
log4jdbc-remix
0.2.7


mysql
mysql-connector-java
8.0.12
provided


javax.servlet
javax.servlet-api
3.1.0
provided


junit
junit
4.11
test




Hope someone can let me know how if I have missed out anything.

Tks.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Connection refused: connect

2018-09-21 Thread Karen Goh
Hi,

I am repeatedly getting the following exceptions and am stuck here like forever.

Hope someone can tell me what's wrong with my tomcat server  version: 8.5.24 
with Eclipse


java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at 
org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148)
at java.lang.Thread.run(Unknown Source)

Tks.

--- On Sat, 9/15/18, Karen Goh  wrote:

> From: Karen Goh 
> Subject: Error: Could not find or load main class set
> To: users@tomcat.apache.org
> Date: Saturday, September 15, 2018, 2:50 PM
> Hi,
> 
> I am now getting the above error. 
> There is no further error stacktrace from error log or
> console etc.
> 
> So far, I have deleted the server and
> created new instances but still getting the same error.
> 
> I have read the following solutions but
> they are not helpful
> 
> http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html
> 
> https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class
> 
> Please help.
> 
> Tks,
> Karen
> 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Error: Could not find or load main class set

2018-09-15 Thread Karen Goh
Hi,

I am now getting the above error.  There is no further error stacktrace from 
error log or console etc.

So far, I have deleted the server and created new instances but still getting 
the same error.

I have read the following solutions but they are not helpful

http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html

https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class

Please help.

Tks,
Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

2018-09-14 Thread Karen Goh



On Thu, 9/13/18, Igal Sapir  wrote:

 Subject: Re: Fw: Error: Could not find or load main class 
org.apache.catalina.startup.Bootstrap
 To: "Tomcat Users List" , "Igal Sapir" 
, "Karen Goh" 
 Date: Thursday, September 13, 2018, 2:34 PM
 
 Karen,
 
 On 9/12/2018 11:15 PM, Igal Sapir wrote:
 > Karen,
 >
 > On 9/12/2018 9:43 PM, Karen Goh wrote:
 >>   Hi Igal, I think you are spot-on my
 problem. Tks.  Thanks to 
 >> Burghard
 also for suggesting re-importing the project.
 >>
 >> I just since
 corrected the directory address inside my run 
 >> configuration as follows ;
 >>
 >>
 -Dcatalina.base="C:\Program 
 >>
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
 
 >> -Dcatalina.home="C:\Program
 
 >>
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
 
 >> -Dwtp.deploy="C:\Program 
 >>
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps"
 
 >>
 -Djava.endorsed.dirs="C:\Program 
 >>
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"
 >>
 >>
 -agentlib:jdwp=transport=dt_socket,address=8006,
 server=y,suspend=n
 >>
 >> Now, I am not sure what this address
 is referring to and I just can't 
 >> find the explanation on the
 internet.
 >> Cos what happened is that
 Tomcat is giving me errors all my ports are 
 >> being used and so I have altered it as
 follows :
 >>
 >>
 Tomcat admin port 8006
 >> HTTP/1.1  
 8082
 >> AJP/1.3 8010
 >>
 >> Please let me
 know if address should be changed to 8006
 >>
 >> Cos now I got
 this latest error :(
 >>
 >>
 >> ERROR:
 transport error 202: connect failed: Connection refused
 >> ERROR: JDWP Transport dt_socket failed
 to initialize, 
 >>
 TRANSPORT_INIT(510)
 >> JDWP exit error
 AGENT_ERROR_TRANSPORT_INIT(197): No transports 
 >> initialized [debugInit.c:750]
 >>
 >> And I
 can't do make Tomcat switch to Debug mode even though I
 have 
 >> followed what you guys have
 taught me the last time.
 >
 > No.  "8006" is not a valid
 address, it's just the port.  If you want 
 > to use port 8006 on localhost then you
 need to use "localhost:8006".  
 > The -agentlib value therefore should be
 like so:
 >
 >
 -agentlib:jdwp=transport=dt_socket,address=localhost:8006,server=y,suspend=n
 >
 > But you might be
 better off using the environment variable
 >
 >    
 JPDA_ADDRESS=localhost:8006
 
 A small clarification/correction:
 
 The environment variable above
 will work if you pass the `jpda` command 
 to
 catalina.bat.  If you are not doing that then you need to
 specify the 
 `-agentlib` argument
 explicitely.

I just found out that the User Entries where bootstrap.jar for linking Tomcat 
to Eclipse is missing so I added them and it is working 'ok' now.
Not sure why it is not being attached this time round, even with Maven update 
etc.

Now, the thing that is not working is that the VM I have to repeatedly entered 
it manually.

It wasn't like that in the past version Tomcat 8.5, 8 etc...

I hope you can advise me how to make it permanently there.   Tks.

The web suggested that I saved it in the common tab in the run configuration 
Shared File but even that it is not working
 
 Igal
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

2018-09-12 Thread Karen Goh



On Wed, 9/12/18, Igal Sapir  wrote:

 Subject: Re: Fw: Error: Could not find or load main class 
org.apache.catalina.startup.Bootstrap
 To: "Tomcat Users List" , "Karen Goh" 

 Date: Wednesday, September 12, 2018, 11:31 PM
 
 Karen,
 
 On Mon, Sep 10, 2018 at 9:46 PM, Karen Goh
 
 wrote:
 
 >
 Hi,
 >
 > I would like
 to add in further information about above problem and I
 hope
 > someone can tell me the solution
 to make it work again.
 >
 > Please see image as per the latest error I
 am getting:
 >
 > https://ibb.co/eR1cep
 >
 > I'd also like to
 add that I have deleted the .project folder in Eclipse
 > and so I am not sure if this has cause all
 the havoc I am experiencing now.
 >
 
 Is your runtime directory set
 correctly?


 Hi Igal, I think you are spot-on my problem. Tks.  Thanks to Burghard also for 
suggesting re-importing the project.

I just since corrected the directory address inside my run configuration as 
follows ;

-Dcatalina.base="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" 
-Dcatalina.home="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" 
-Dwtp.deploy="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps" 
-Djava.endorsed.dirs="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"

-agentlib:jdwp=transport=dt_socket,address=8006, server=y,suspend=n

Now, I am not sure what this address is referring to and I just can't find the 
explanation on the internet.
Cos what happened is that Tomcat is giving me errors all my ports are being 
used and so I have altered it as follows :

Tomcat admin port 8006
HTTP/1.1   8082
AJP/1.3 8010

Please let me know if address should be changed to 8006

Cos now I got this latest error :(


ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized 
[debugInit.c:750]

And I can't do make Tomcat switch to Debug mode even though I have followed 
what you guys have taught me the last time.


 
 See for example
 the warning in the screenshot that you posted:
 "Problem with directory
 C:\Prog...\Apache\apache-tomcat-8.0.27\lib EXISTS:
 FALSE"
 
 
 
 > Tks & rgds,
 > Karen
 >
 > --- On Sun, 9/9/18, Karen Goh 
 wrote:
 >
 > > From:
 Karen Goh 
 > > Subject: Error: Could not find or
 load main class
 >
 org.apache.catalina.startup.Bootstrap
 >
 > To: users@tomcat.apache.org
 > > Date: Sunday, September 9, 2018, 1:08
 PM
 > > Hi,
 >
 >
 > > I would like to seek advice
 how to
 > > tackle the above
 problem.
 > >
 > >
 What happened is that I changed my
 > >
 Eclipse to Photon and when I imported my project into
 > > workspace I was told that everything
 will be upgraded to
 > > which I
 replied ok.
 > >
 >
 > After running my web app serveral
 >
 > times, I sort of lost the steps to debug my app.
 > >
 > > And before
 I can test out my web app
 > > further,
 the JVM configuration under run configuration is
 > > all GONE
 >
 >
 > > The error message shown is :
 Error:
 > > Could not find or load main
 class
 > >
 org.apache.catalina.startup.Bootstrap
 >
 >
 > > My system setting :
 > >
 > > Tomcat with
 JDK 1.8.05
 > > Tomcat 8.0 running on
 Eclipse Oxygen
 > > with upgraded
 > > workspace from Eclipse Photon
 > > Windows 10
 >
 >
 > > I attempted the below URL
 solution but
 > > it is still giving me
 the above error.
 > >
 > > https://stackoverflow.com/questions/29196994/run-configuration-missing-
 > arguments-tab
 > >
 > > Please help me how to restore the
 JVM
 > > configuration.
 > >
 > > Tks !
 > >
 > > Karen
 > >
 >
 >
 -
 > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 > For additional commands, e-mail: users-h...@tomcat.apache.org
 >
 >
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fw: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

2018-09-10 Thread Karen Goh
Hi,

I would like to add in further information about above problem and I hope 
someone can tell me the solution to make it work again.

Please see image as per the latest error I am getting:

https://ibb.co/eR1cep

I'd also like to add that I have deleted the .project folder in Eclipse and so 
I am not sure if this has cause all the havoc I am experiencing now.

Tks & rgds,
Karen

--- On Sun, 9/9/18, Karen Goh  wrote:

> From: Karen Goh 
> Subject: Error: Could not find or load main class 
> org.apache.catalina.startup.Bootstrap
> To: users@tomcat.apache.org
> Date: Sunday, September 9, 2018, 1:08 PM
> Hi,
> 
> I would like to seek advice how to
> tackle the above problem.
> 
> What happened is that I changed my
> Eclipse to Photon and when I imported my project into
> workspace I was told that everything will be upgraded to
> which I replied ok.
> 
> After running my web app serveral
> times, I sort of lost the steps to debug my app.
> 
> And before I can test out my web app
> further, the JVM configuration under run configuration is
> all GONE
> 
> The error message shown is : Error:
> Could not find or load main class
> org.apache.catalina.startup.Bootstrap
> 
> My system setting :
> 
> Tomcat with JDK 1.8.05
> Tomcat 8.0 running on Eclipse Oxygen
> with upgraded 
> workspace from Eclipse Photon
> Windows 10
> 
> I attempted the below URL solution but
> it is still giving me the above error.
> 
> https://stackoverflow.com/questions/29196994/run-configuration-missing-arguments-tab
> 
> Please help me how to restore the JVM
> configuration.
> 
> Tks !
> 
> Karen
> 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

2018-09-08 Thread Karen Goh
Hi,

I would like to seek advice how to tackle the above problem.

What happened is that I changed my Eclipse to Photon and when I imported my 
project into workspace I was told that everything will be upgraded to which I 
replied ok.

After running my web app serveral times, I sort of lost the steps to debug my 
app.

And before I can test out my web app further, the JVM configuration under run 
configuration is all GONE

The error message shown is : Error: Could not find or load main class 
org.apache.catalina.startup.Bootstrap

My system setting :

Tomcat with JDK 1.8.05
Tomcat 8.0 running on Eclipse Oxygen with upgraded 
workspace from Eclipse Photon
Windows 10

I attempted the below URL solution but it is still giving me the above error.

https://stackoverflow.com/questions/29196994/run-configuration-missing-arguments-tab

Please help me how to restore the JVM configuration.

Tks !

Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/C:/Users//.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/javax.inject.jar] from classloader hierarchy

2018-08-05 Thread Karen Goh
Hi all,

I have a Spring Boot web app which gives me an error which is related to 
Tomcat, specifically embedded Tomcat.

There is nothing related in the internet related to this problem so I am hoping 
someone in this group would be able to provide me with the solutions.

This is the error stack :

2018-08-05 15:24:02.476  INFO 4856 --- [   main] 
c.hi5tutors.Spring.Hi5SpringApplication  : Starting Hi5SpringApplication on 
DESKTOP-1KGGO27 with PID 4856 (C:\Users\\workspace9\Hi5Spring\target\classes 
started by  in C:\Users\\workspace9\Hi5Spring)
2018-08-05 15:24:02.491  INFO 4856 --- [   main] 
c.hi5tutors.Spring.Hi5SpringApplication  : No active profile set, falling back 
to default profiles: default
2018-08-05 15:24:14.605  INFO 4856 --- [   main] 
o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-08-05 15:24:14.620  INFO 4856 --- [   main] 
org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache 
Tomcat/8.5.31
2018-08-05 15:24:14.669  INFO 4856 --- [ost-startStop-1] 
o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native 
library which allows optimal performance in production environments was not 
found on the java.library.path: [C:\Program 
Files\Java\jdk1.8.0_151\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program
 Files/Java/jre1.8.0_171/bin/server;C:/Program 
Files/Java/jre1.8.0_171/bin;C:/Program 
Files/Java/jre1.8.0_171/lib/amd64;C:\Program Files (x86)\Common 
Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program 
Files\MySQL\mysql-5.7.20-win32\bin;C:\Program 
Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
 
Files\Java\jdk1.8.0_151\bin;C:\Users\\AppData\Local\Microsoft\WindowsApps;;C:\Program
 Files (x86)\Eclipse-Spring IDE\eclipse;;.]
2018-08-05 15:24:17.153  WARN 4856 --- [ost-startStop-1] 
o.a.tomcat.util.scan.StandardJarScanner  : Failed to scan 
[file:/C:/Users//.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/hk2-utils.jar] 
from classloader hierarchy

java.io.FileNotFoundException: 
C:\Users\\.m2\repository\org\glassfish\hk2\hk2\2.5.0-b42\hk2-utils.jar (The 
system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method) ~[na:1.8.0_151]
at java.util.zip.ZipFile.(ZipFile.java:225) ~[na:1.8.0_151]
at java.util.zip.ZipFile.(ZipFile.java:155) ~[na:1.8.0_151]
at java.util.jar.JarFile.(JarFile.java:166) ~[na:1.8.0_151]
at java.util.jar.JarFile.(JarFile.java:130) ~[na:1.8.0_151]
at 
org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:188) 
~[tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:65) 
~[tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49) 
~[tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:374)
 [tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:309)
 [tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:266)
 [tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
 [tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) 
[tomcat-embed-jasper-8.5.31.jar:8.5.31]
at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104) 
[tomcat-embed-jasper-8.5.31.jar:8.5.31]
at 
org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:101)
 [tomcat-embed-jasper-8.5.31.jar:8.5.31]
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)
 [tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
[tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421) 
[tomcat-embed-core-8.5.31.jar:8.5.31]
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411) 
[tomcat-embed-core-8.5.31.jar:8.5.31]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]

2018-08-05 15:24:17.170  WARN 4856 --- [ost-startStop-1] 
o.a.tomcat.util.scan.StandardJarScanner  : Failed to scan 

Can tomcat 9 handled EJB ?

2018-04-01 Thread Karen Goh
Hi expert,

I have come to the point where I may have to use EJB transaction management in 
my Maven JEE web app which runs on JDK 1.8, windows 10 system and MySQL.

And then I read several conflicting comments, articles that I have to use 
OpenEJB and put the depenedency in order to use it.

But, I also read from the famous Adam bien blog that I only need the javaee-api 
version will do.  I have javaee-api version 8 which is one grade higher so I 
think should be ok right ?

http://www.adam-bien.com/roller/abien/entry/the_only_one_dependency_you

But, I am not sure.

At first, I tried to use hibernate sessionFactory but I find it very difficult 
to implement and finds EJB entityManager much easier..I hope cos now things are 
not running well in my tomcat 9.

I hope someone can point me to the right direction.

If I can't use EJB inside Tomcat server, is there any other framework etc that 
can be used ?

Thanks & regards,
Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat stopped and Debug can't be done in Eclipse

2018-03-24 Thread Karen Goh


On Sat, 3/17/18, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Tomcat stopped and Debug can't be done in Eclipse
 To: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Saturday, March 17, 2018, 10:25 PM
 
 /Hi!
 
 2018-03-17 10:11 GMT+03:00 Karen Goh <karenwo...@yahoo.com>:
 >
 > I have added this in
 my JVM under the tomcat argument for remote debug
 configuration :
 >
 >
 
-Dcatalina.opts="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
 
 The above line is wrong.
 
 There is no system property
 "catalina.opts".
 Those arguments
 are for java (java.exe, javaw.exe).
 
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html#BABDJJFI

Thanks Konstantin for giving me quite a clear detail on how to do the actual 
debugging.

The thing is that I am constantly getting 404 with certain occasion able to get 
the tutorRegister page being displayed so I think there is still something not 
quite right in the setting or something else I don't know.

I'd like to check with you is it a good idea to have this line at the System 
Variables(this is the Advanced System Setting at Windows 10) hard coded there ?

CATALINA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8000, server=y, 
suspend=n


 
 
 
 Note that "Remote" debugging means
 that you do two steps:
 
 1.
 First, you start Tomcat as a normal "running"
 application.
 
 If you do it
 from within Eclipse, use "Run", not
 "Debug".
 
 See menu
 Run > Run Configurations...
 Add those
 options to its "Arguments" into "VM
 arguments" field (not
 "Program
 arguments")
 
 -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
 
 
 2. Then, you
 start "Debug" separately.
 
 See menu Run > Debug Configurations...
 
 Create "Remote Java
 Application".
 
 Fill in
 "Project" (your project),  "Port"
 (8000) fields and press
 "Debug" to
 start debugging.
 
 Eclipse
 will connect to Tomcat that has been started separately.
 
 
 > Below,
 it shows that Tomcat is started
 >
 > Mar 17, 2018 2:33:29 PM
 org.apache.tomcat.util.digester.SetPropertiesRule begin
 > WARNING:
 [SetPropertiesRule]{Server/Service/Engine/Host/Context}
 Setting property 'source' to
 'org.eclipse.jst.jee.server:Hi5S' did not find a
 matching property.
 > Mar 17, 2018 2:33:29
 PM org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Server version:        Apache
 Tomcat/8.5.24
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Server built:          Nov 27
 2017 13:05:30 UTC
 > Mar 17, 2018 2:33:29
 PM org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Server number:        
 8.5.24.0
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: OS Name:              
 Windows 10
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: OS Version:            10.0
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Architecture:          amd64
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Java Home:            
 C:\Program Files\Java\jre1.8.0_161
 > Mar
 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: JVM Version:          
 1.8.0_161-b12
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: JVM Vendor:            Oracle
 Corporation
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: CATALINA_BASE:        
 
C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: CATALINA_HOME:        
 C:\Program Files\Apache\apache-tomcat-8.5.24
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Command line argument:
 -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50906
 
 Note the above line.
 A command line argument, logged by
 VersionLoggerListener .
 
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Command line argument:
 
-Dcatalina.base=C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
 > Mar 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Command line argument:
 -Dcatalina.home=C:\Program
 Files\Apache\apache-tomcat-8.5.24
 > Mar
 17, 2018 2:33:29 PM
 org.apache.catalina.startup.VersionLoggerListener log
 > INFO: Command line argument:
 
-Dwtp.deploy=C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\

Re: Tomcat stopped and Debug can't be done in Eclipse

2018-03-17 Thread Karen Goh


On Wed, 2/21/18, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Tomcat stopped and Debug can't be done in Eclipse
 To: "Karen Goh" <karenwo...@yahoo.com>
 Cc: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Wednesday, February 21, 2018, 5:43 AM
 
 2018-02-20 17:57 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com>:
 >
 > Hi Konstantin,
 >
 > Can you point me some
 useful resources where I can learn about setting the Tomcat
 launch configuration.
 
 1. On
 the topic of debugging, see the following page:
 https://wiki.apache.org/tomcat/FAQ/Developing
 
 The following two items on
 that page should be interesting for you:
 a)
 "Official Eclipse IDE Web Tools FAQ for Tomcat"
 
 with links to Eclipse
 documentation
 
 b) "How
 do I configure Tomcat to support remote debugging?"
 
 This is for the use case when
 you start Tomcat separately and attach a
 debugger to an already running Tomcat.
 
 
 2. On a topic
 of simply running Tomcat (not debugging), official
 documentation is "RUNNING.txt"
 file.
 
 There is also
 http://tomcat.apache.org/tomcat-8.5-doc/setup.html
 
 Environment variables used by
 launch scripts are documented in a
 comment
 at the top of those scripts (catalina.bat, catalina.sh).
 
I have added this in my JVM under the tomcat argument for remote debug 
configuration :
 
-Dcatalina.opts="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"

Below, it shows that Tomcat is started

Mar 17, 2018 2:33:29 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 
property 'source' to 'org.eclipse.jst.jee.server:Hi5S' did not find a matching 
property.
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:Apache Tomcat/8.5.24
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:  Nov 27 2017 13:05:30 UTC
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.24.0
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:   Windows 10
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:10.0
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:  amd64
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_161
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:   1.8.0_161-b12
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:Oracle Corporation
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: 
C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache\apache-tomcat-8.5.24
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50906
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.base=C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program 
Files\Apache\apache-tomcat-8.5.24
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dwtp.deploy=C:\Users\Karen.Goh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program 
Files\Apache\apache-tomcat-8.5.24\endorsed
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.opts=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
Mar 17, 2018 2:33:29 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Mar 17, 2018 2:33:29 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
[C:\Program 
Files\Java\jre1.8.0_161\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program
 Files/Java/jre1.8.0_161/bin/server;C:/Program 
Files/Java/jre1.8.0_161/bin;C:/Program 
Files/Java

Re: Tomcat stopped and Debug can't be done in Eclipse

2018-02-25 Thread Karen Goh


On Wed, 2/21/18, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Tomcat stopped and Debug can't be done in Eclipse
 To: "Karen Goh" <karenwo...@yahoo.com>
 Cc: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Wednesday, February 21, 2018, 5:43 AM
 
 2018-02-20 17:57 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com>:
 >
 > Hi Konstantin,
 >
 > Can you point me some
 useful resources where I can learn about setting the Tomcat
 launch configuration.
 
 1. On
 the topic of debugging, see the following page:
 https://wiki.apache.org/tomcat/FAQ/Developing
 
 The following two items on
 that page should be interesting for you:
 a)
 "Official Eclipse IDE Web Tools FAQ for Tomcat"
 
 with links to Eclipse
 documentation
 
 b) "How
 do I configure Tomcat to support remote debugging?"
 
 This is for the use case when
 you start Tomcat separately and attach a
 debugger to an already running Tomcat.
 
 
 2. On a topic
 of simply running Tomcat (not debugging), official
 documentation is "RUNNING.txt"
 file.
 
 There is also
 http://tomcat.apache.org/tomcat-8.5-doc/setup.html
 
 Environment variables used by
 launch scripts are documented in a
 comment
 at the top of those scripts (catalina.bat, catalina.sh).
 
 
 >
 Currently, I have the below inside my arguments :
 >
 >
 
-Dcatalina.base="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"
 -Dcatalina.home="C:\Program
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
 
-Dwtp.deploy="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
 -Djava.endorsed.dirs="C:\Program
 Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"
 >
 > Is this the part that
 is causing Tomcat to just hang ? Or I have missed out
 something I am not aware of.  Kindly highlight please.
 
 3. When Tomcat starts, its
 actual arguments are printed by
 VersionLoggerListener.
 
 You can see them in your previous e-mail,
 Search for "Command line argument"
 http://markmail.org/message/tgymk3r43ox5ggps
 
 > Cos I can't proceed
 with any debugging at all as in run the green button :
 Please see this attachment at https://imgur.com/OQLyJFb
 
 4. In your image I see that
 your Tomcat is not running
 
 (The "Console" view at the bottom
 says "". The
 "Servers"
 view says
 "[Stopped, Synchronized]".)
 
 How did you start it?
 
 5. My recipe will be:
 - In the
 "Servers" view select the server and deploy you
 application
 onto it (right click ->
 context menu -> ...)
 - Then click the
 small green "bug" button in the toolbar of this
 view
 (in the small toolbar right above
 "Servers" view, not the one in the
 main toolbar). The server should launch in
 debug mode.
 
It is not working following your step above.  If I started Tomcat and then 
click the green 'debug' button I will have problem going back to the Java EE 
view to click on the tutorRegister.jsp page for it to run in debug mode.

Last time, when I did debug - it was so simple.  I just click on 
tutorRegister.jsp and Eclipse will prompt me for change to debug perspective.  
After that, when I complete the form and hit submit, the IDE will then go to 
the breakpoint and allows debugging from there.

Can I know how to make this happen again ?



 HTH
 
 > Is there any other changes I need to make
 since I am also using a maven plug in as below :
 >
 > 
 >            
 org.apache.maven.plugins
 >            
 maven-war-plugin
 >            
 3.2.0
 > 
        
 >
 > It used to be very easy for me to do
 debugging and now things are so much complicated now.
 >
 
 Best
 regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat stopped and Debug can't be done in Eclipse

2018-02-20 Thread Karen Goh


On Tue, 2/20/18, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Tomcat stopped and Debug can't be done in Eclipse
 To: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Tuesday, February 20, 2018, 4:10 PM
 
 2018-02-20 5:04 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com.invalid>:
 > Hi,
 >
 > I am writing to this mailing group again
 because I finally know that Tomcat is the cause of the
 problem(after writing to an expert)
 > and
 thus I hope to sort help for this problem.
 >
 > The tomcat version is
 Apache Tomcat 9.0.4 windows 64.
 >
 > Eclipse Oxygen.
 >
 Project : Maven dynamic MVC web app with Hibernate, JPA and
 JSP.
 > MySQL server 5.7.
 >
 > Whenever, I run debug
 on jsp, after submitting the form, tomcat will just stop and
 Eclipse does not take over the debugging.
 >
 > All the breakpoints
 are there and perspective is showing debug mode, except the
 debug buttons are all grey out though.
 >
 > I do not know how to
 make Tomcat not stopping.
 >
 > Kindly advise if there is a setting I have
 missed out such that the above scenario is happening.
 
 1. How exactly do you start
 Tomcat in debug mode? What instructions
 and
 documentation are you following?
 
 2. From log output in your previous thread,
 http://markmail.org/message/tgymk3r43ox5ggps
 
 your command line options
 are
 
 > Jan 21, 2018
 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener log INFO:
 Command line argument:
 >
 -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51917
 
 I think that
 "suspend=y" option is the cause of the behaviour
 that you
 are seeing.
 
 IIRC, with that option Java stops and waits for
 a debugger just after
 JVM launch. I think
 that in Eclipse you can look into "threads"
 view,
 find a running (stopped)
 "main" thread there and hit a green button to
 resume it.
 
Hi Konstantin,

Can you point me some useful resources where I can learn about setting the 
Tomcat launch configuration.

Currently, I have the below inside my arguments :

-Dcatalina.base="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"
 -Dcatalina.home="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" 
-Dwtp.deploy="C:\Users\Karen.Goh\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
 -Djava.endorsed.dirs="C:\Program 
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"

Is this the part that is causing Tomcat to just hang ? Or I have missed out 
something I am not aware of.  Kindly highlight please.

Cos I can't proceed with any debugging at all as in run the green button : 
Please see this attachment at https://imgur.com/OQLyJFb

Is there any other changes I need to make since I am also using a maven plug in 
as below :


org.apache.maven.plugins
maven-war-plugin
3.2.0
 

It used to be very easy for me to do debugging and now things are so much 
complicated now.


 Best regards,
 Konstantin
 Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat stopped and Debug can't be done in Eclipse

2018-02-19 Thread Karen Goh
Hi,

I am writing to this mailing group again because I finally know that Tomcat is 
the cause of the problem(after writing to an expert)
and thus I hope to sort help for this problem.

The tomcat version is Apache Tomcat 9.0.4 windows 64.

Eclipse Oxygen.
Project : Maven dynamic MVC web app with Hibernate, JPA and JSP.
MySQL server 5.7.

Whenever, I run debug on jsp, after submitting the form, tomcat will just stop 
and Eclipse does not take over the debugging.

All the breakpoints are there and perspective is showing debug mode, except the 
debug buttons are all grey out though.

I do not know how to make Tomcat not stopping.

Kindly advise if there is a setting I have missed out such that the above 
scenario is happening.

Tks & rgds,
Karen 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fw: Re: Fw: No movement at Debug mode

2018-01-25 Thread Karen Goh
Hi chris,

The database problem has been resolved cos apparently, there is a old version 
of J-connector that is not removed inside Eclipse.

But, now I am facing the No movement at Debug mode again.

I used to be able to received logger infor when when run debug that shows me 
the stack when the 'compiler' steps thru the programme but I am not seeing this 
now.

All I get is Daemon thread running...

Furthermore, I am getting the below log :

127.0.0.1 - - [26/Jan/2018:11:04:44 +0800] "GET / HTTP/1.1" 404 1073
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET /Hi5S/tutorRegister.jsp 
HTTP/1.1" 200 13656
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/css/modern-business.css HTTP/1.1" 200 1413
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/css/bootstrap.min.css HTTP/1.1" 200 132281
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/css/checkbox.css HTTP/1.1" 200 434
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/css/bootstrap-multiselect.css HTTP/1.1" 200 1454
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/font-awesome/css/font-awesome.min.css HTTP/1.1" 200 21984
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/Checkbox.js HTTP/1.1" 404 1107
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/BootStrap/bootstrap-multiselect.js HTTP/1.1" 404 1120
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET /Hi5S/js/bootstrap.min.js 
HTTP/1.1" 404 1105
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET /Hi5S/js/jquery.js 
HTTP/1.1" 404 1098
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET 
/Hi5S/js/jqBootstrapValidation.js HTTP/1.1" 404 1113
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET /Hi5S/js/contact_me.js 
HTTP/1.1" 404 1102
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:04:53 +0800] "GET /Hi5S/Image/aa1.png 
HTTP/1.1" 404 1099
0:0:0:0:0:0:0:1 - - [26/Jan/2018:11:14:25 +0800] "POST /Hi5S/addTutor HTTP/1.1" 
200 -

Could you kindly explain why I am getting 404 even though I am able to get the 
tutorRegister.jsp and then there is a 404 at Checkbox.js... which I do not 
understand the error.

The addTutor which is my controller servlet I got a 200 but I am not seeing 
data being inserted into my database.

Hope you could advise me. Tks.


--- On Thu, 1/25/18, Karen Goh <karenwo...@yahoo.com> wrote:

> From: Karen Goh <karenwo...@yahoo.com>
> Subject: Re: Fw: No movement at Debug mode
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Thursday, January 25, 2018, 1:23 PM
> 
> 
> On Tue, 1/23/18, Christopher Schultz
> <ch...@christopherschultz.net>
> wrote:
> 
>  Subject: Re: Fw: No movement at Debug
> mode
>  To: users@tomcat.apache.org
>  Date: Tuesday, January 23, 2018, 11:58
> PM
>  
>  -BEGIN PGP SIGNED MESSAGE-
>  Hash: SHA256
>  
>  Karen,
>  
>  On 1/21/18 10:49 AM, Karen Goh wrote:
>  > I want to add in additional
> infor
>  :
>  > 
>  > After I stopped the server, the
>  console has the following error
>  > message which beats me.
>  > 
>  > WARNING: The web application
>  [Hi5S] appears to have started a
>  > thread named [Abandoned
> connection
>  cleanup thread] but has failed
>  > to stop it. This is very likely
> to
>  create a memory leak. Stack
>  > trace of thread:
> 
> java.io.WinNTFileSystem.canonicalize0(Native
>  > Method) 
>  >
> 
> java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
>  
>  >
> 
> java.io.File.getCanonicalPath(File.java:618) 
>  >
> 
> org.apache.catalina.webresources.AbstractFileResourceSet.file(Abstract
>  FileResourceSet.java:90)
>  >
>  > 
> 
> org.apache.catalina.webresources.DirResourceSet.getResource(DirResourceS
>  et.java:101)
>  >
> 
> org.apache.catalina.webresources.StandardRoot.getResourceInternal(Stan
>  dardRoot.java:281)
>  >
>  > 
> 
> org.apache.catalina.webresources.CachedResource.validateResource(CachedR
>  esource.java:97)
>  >
> 
> org.apache.catalina.webresources.Cache.getResource(Cache.java:69)
>  
>  >
> 
> org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot
>  .java:216)
>  >
>  > 
> 
> org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(Sta
>  ndardRoot.java:225)
>  >
> 
> org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappCl
>  assLoaderBase.java:884)
>  >
>  > 
> 
> org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClass
>  LoaderBase.java:1

Re: Fw: No movement at Debug mode

2018-01-24 Thread Karen Goh


On Tue, 1/23/18, Christopher Schultz <ch...@christopherschultz.net> wrote:

 Subject: Re: Fw: No movement at Debug mode
 To: users@tomcat.apache.org
 Date: Tuesday, January 23, 2018, 11:58 PM
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Karen,
 
 On 1/21/18 10:49 AM, Karen Goh wrote:
 > I want to add in additional infor
 :
 > 
 > After I stopped the server, the
 console has the following error
 > message which beats me.
 > 
 > WARNING: The web application
 [Hi5S] appears to have started a
 > thread named [Abandoned connection
 cleanup thread] but has failed
 > to stop it. This is very likely to
 create a memory leak. Stack
 > trace of thread:
 java.io.WinNTFileSystem.canonicalize0(Native
 > Method) 
 >
 java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
 
 >
 java.io.File.getCanonicalPath(File.java:618) 
 >
 org.apache.catalina.webresources.AbstractFileResourceSet.file(Abstract
 FileResourceSet.java:90)
 >
 > 
 org.apache.catalina.webresources.DirResourceSet.getResource(DirResourceS
 et.java:101)
 >
 org.apache.catalina.webresources.StandardRoot.getResourceInternal(Stan
 dardRoot.java:281)
 >
 > 
 org.apache.catalina.webresources.CachedResource.validateResource(CachedR
 esource.java:97)
 >
 org.apache.catalina.webresources.Cache.getResource(Cache.java:69)
 
 >
 org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot
 .java:216)
 >
 > 
 org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(Sta
 ndardRoot.java:225)
 >
 org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappCl
 assLoaderBase.java:884)
 >
 > 
 org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClass
 LoaderBase.java:1005)
 >
 com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoade
 rs(AbandonedConnectionCleanupThread.java:90)
 >
 > 
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionC
 leanupThread.java:63)
 >
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
 ava:1149)
 >
 > 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
 va:624)
 >
 java.lang.Thread.run(Thread.java:748)
 > 
 > I hope with the new infor, this
 group will be able to help me
 > resolve the error.
 
 The MySQL Connector/J simply has a bug.
 Upgrade to the latest version
 to see if they have fixed it.
 
 I gave up trying to convince them that
 it was a problem and that they
 needed to fix it, because I guess they
 fundamentally don't understand
 what it means to want to be able to
 "completely deregister the driver
 and shutdown all threads".
 
 - -chris

Hi Chris,

I added the MYSQL J connector 5.1.45.bin.jar to the build path but the thing is 
that it seems not able to work with Tomcat 9.0.4.

There is a copy of 5.1.45.bin.jar that pasted in my Tomcat server location.

The Mysql connection in my workbench MYSQL 6.3 is tested ok.

I did a test connection in Eclipse and it gives me the following error :

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at 
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:327)
at 
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.internalCreateConnection(JDBCConnection.java:229)
at 
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:120)
at 
org.eclipse.datatools.enablement.internal.mysql.connection.JDBCMySQLConnectionFactory.createConnection(JDBCMySQLConnectionFactory.java:28)
at 
org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at 
org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at 
org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Here's what in my pom.xml which I hope will help to give further insight into 
my problem :

 4.0.0
  Hi5S
  Hi5S
  0.0.1-SNAPSHOT
  war
  
UTF-8
1.8
1.8
  
  

  org.apache.maven.plugins
  maven-war-plugin
  3.1.0
  provided


  org.apache.tomcat
  tomcat-jdbc
  9.0.2
  compile


  org.apache.logging.log4j
  log4j-api
  2.10.0
  compile


  org.apache.logging.log4j
  log4j-core
  2.10.0
  compile


  javax.servlet
  jstl
  

Re: No movement at Debug mode

2018-01-23 Thread Karen Goh

On Sun, 1/21/18, Alex O'Ree <alexo...@apache.org> wrote:

 Subject: Re: No movement at Debug mode
 To: "Tomcat Users List" <users@tomcat.apache.org>, "Karen Goh" 
<karenwo...@yahoo.com>
 Date: Sunday, January 21, 2018, 11:44 PM
 
 Do you mean you cannot get a
 debugger to attach to Tomcat and thus step
 through your app?
 Make sure you
 start tomcat with "catalina jpda run". I think it
 listens on
 port 8000 by default. You can
 then use just about any IDE to attach the
 debugger via JPDA to localhost port 8000.

Hi Alex,

Actually, I found out that there is actually debugging going on cos I found out 
in the Tomcat log the following details :

127.0.0.1 - - [23/Jan/2018:12:14:49 +0800] "GET / HTTP/1.1" 404 1074
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/tutorRegister.jsp 
HTTP/1.1" 200 13656
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET 
/Hi5S/BootStrap/bootstrap-multiselect.js HTTP/1.1" 404 1121
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET 
/Hi5S/BootStrap/Checkbox.js HTTP/1.1" 404 1108
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/jquery.js 
HTTP/1.1" 404 1099
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/bootstrap.min.js 
HTTP/1.1" 404 1106
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET 
/Hi5S/js/jqBootstrapValidation.js HTTP/1.1" 404 1114
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/js/contact_me.js 
HTTP/1.1" 404 1103
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:14:51 +0800] "GET /Hi5S/Image/aa1.png 
HTTP/1.1" 404 1100
0:0:0:0:0:0:0:1 - - [23/Jan/2018:12:16:36 +0800] "POST /Hi5S/addTutor HTTP/1.1" 
200 -

But, I could not understand why Tomcat can't read the URL tutorRegister.jsp, as 
there is a 404.

I have make sure I have all the right thing in my web.xml as follows :

http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">
  Hi5S
  
tutorRegister.jsp
index.html
  index.htm
  index.jsp
  
  
 MySQL Datasource
 jdbc/hi5s
 javax.sql.DataSource
 Container

  

I have used the option of use workspace meta data for my tomcat server location 
and it does shows the 2 folders : ROOTS and the project name : Hi5S folders 
inside 

C:\Users\\workspace5\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

So, why is tomcat not able to read the URL ?

Hope that you could tell me the way to resolve this.  

Thanks & regards,
Karen
 
 On Sun, Jan 21, 2018 at 10:37 AM, Karen Goh
 <karenwo...@yahoo.com.invalid>
 wrote:
 
 > Hi
 expert,
 >
 > I have
 been stuck at this problem - No debug movement , for quite
 some
 > time and am seeking help from this
 user group.
 >
 > After
 submitting my form using JSP,
 >
 > So, here's what appeared at the
 console :
 >
 > an 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: Server
 version:        Apache Tomcat/8.5.24
 > Jan 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: Server
 built:          Nov 27 2017 13:05:30 UTC
 > Jan 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: Server
 number:         8.5.24.0
 > Jan 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: OS Name: 
              Windows 10
 > Jan 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: OS
 Version:            10.0
 > Jan 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO:
 Architecture:          amd64
 > Jan
 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: Java
 Home:             C:\Program
 Files\Java\jdk1.8.0_151\jre
 > Jan 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: JVM
 Version:           1.8.0_151-b12
 >
 Jan 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: JVM
 Vendor:            Oracle Corporation
 > Jan 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO:
 CATALINA_BASE:        
 C:\Users\Karen.Goh\workspace5\Servers2\Tomcat
 > v8.5 Server at
 localhost-config\Hi5SProject
 > Jan 21,
 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO:
 CATALINA_HOME:         C:\Program
 Files\Apache\apache-tomcat-8.5.24
 > Jan
 21, 2018 11:25:58 PM
 org.apache.catalina.startup.VersionLoggerListener
 > log
 > INFO: Command
 line argument: -agentlib:jdwp=tr

Fw: No movement at Debug mode

2018-01-21 Thread Karen Goh
I want to add in additional infor :

After I stopped the server, the console has the following error message which 
beats me.

WARNING: The web application [Hi5S] appears to have started a thread named 
[Abandoned connection cleanup thread] but has failed to stop it. This is very 
likely to create a memory leak. Stack trace of thread:
 java.io.WinNTFileSystem.canonicalize0(Native Method)
 java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
 java.io.File.getCanonicalPath(File.java:618)
 
org.apache.catalina.webresources.AbstractFileResourceSet.file(AbstractFileResourceSet.java:90)
 
org.apache.catalina.webresources.DirResourceSet.getResource(DirResourceSet.java:101)
 
org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
 
org.apache.catalina.webresources.CachedResource.validateResource(CachedResource.java:97)
 org.apache.catalina.webresources.Cache.getResource(Cache.java:69)
 
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
 
org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
 
org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappClassLoaderBase.java:884)
 
org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1005)
 
com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
 
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:748)

I hope with the new infor, this group will be able to help me resolve the error.

Tks.

--- On Sun, 1/21/18, Karen Goh <karenwo...@yahoo.com> wrote:

> From: Karen Goh <karenwo...@yahoo.com>
> Subject: No movement at Debug mode
> To: users@tomcat.apache.org
> Date: Sunday, January 21, 2018, 11:37 PM
> Hi expert,
> 
> I have been stuck at this problem - No
> debug movement , for quite some time and am seeking help
> from this user group.
> 
> After submitting my form using JSP, 
> 
> So, here's what appeared at the console
> :
> 
> an 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Server version:   
>     Apache Tomcat/8.5.24
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Server built:     
>     Nov 27 2017 13:05:30 UTC
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Server number:   
>      8.5.24.0
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: OS Name:     
>          Windows 10
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: OS Version:     
>       10.0
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Architecture:     
>     amd64
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Java Home:     
>        C:\Program
> Files\Java\jdk1.8.0_151\jre
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: JVM Version:     
>      1.8.0_151-b12
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: JVM Vendor:     
>       Oracle Corporation
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: CATALINA_BASE:   
>      C:\Users\Karen.Goh\workspace5\Servers2\Tomcat
> v8.5 Server at localhost-config\Hi5SProject
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: CATALINA_HOME:   
>      C:\Program Files\Apache\apache-tomcat-8.5.24
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument:
> -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51917
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument:
> -Dcatalina.base=C:\Users\Karen.Goh\workspace5\Servers2\Tomcat
> v8.5 Server at localhost-config\Hi5SProject
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument:
> -Dcatalina.home=C:\Program
> Files\Apache\apache-tomcat-8.5.24
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument:
> -Dwtp.deploy=C:\Users\Karen.Goh\workspace5\Servers2\Tomcat
> v8.5 Server at localhost-config\Hi5SProject\wtpwebapps
> Jan 21, 2018 11:25:58 PM
> org.apache.catalina.startup.VersionLoggerListener log
> INFO: Comman

No movement at Debug mode

2018-01-21 Thread Karen Goh
Hi expert,

I have been stuck at this problem - No debug movement , for quite some time and 
am seeking help from this user group.

After submitting my form using JSP, 

So, here's what appeared at the console :

an 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:Apache Tomcat/8.5.24
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:  Nov 27 2017 13:05:30 UTC
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.5.24.0
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:   Windows 10
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:10.0
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:  amd64
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_151\jre
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:   1.8.0_151-b12
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:Oracle Corporation
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Karen.Goh\workspace5\Servers2\Tomcat v8.5 
Server at localhost-config\Hi5SProject
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache\apache-tomcat-8.5.24
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51917
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dcatalina.base=C:\Users\Karen.Goh\workspace5\Servers2\Tomcat v8.5 Server at 
localhost-config\Hi5SProject
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program 
Files\Apache\apache-tomcat-8.5.24
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Dwtp.deploy=C:\Users\Karen.Goh\workspace5\Servers2\Tomcat v8.5 Server at 
localhost-config\Hi5SProject\wtpwebapps
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program 
Files\Apache\apache-tomcat-8.5.24\endorsed
Jan 21, 2018 11:25:58 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Jan 21, 2018 11:25:58 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
[C:\Program 
Files\Java\jdk1.8.0_151\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
 Files\Java\jdk1.8.0_151\jre\bin;C:/Program 
Files/Java/jdk1.8.0_151/bin/../jre/bin/server;C:/Program 
Files/Java/jdk1.8.0_151/bin/../jre/bin;C:/Program 
Files/Java/jdk1.8.0_151/bin/../jre/lib/amd64;C:\Program 
Files\MySQL\mysql-5.7.20-win32\bin;C:\Program 
Files\Java\jdk1.8.0_151\bin;C:\Program Files\eclipse;;.]
Jan 21, 2018 11:25:59 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jan 21, 2018 11:26:00 PM org.apache.tomcat.util.net.NioSelectorPool 
getSharedSelector
INFO: Using a shared selector for servlet write/read
Jan 21, 2018 11:26:00 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Jan 21, 2018 11:26:00 PM org.apache.tomcat.util.net.NioSelectorPool 
getSharedSelector
INFO: Using a shared selector for servlet write/read
Jan 21, 2018 11:26:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5550 ms
Jan 21, 2018 11:26:00 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 21, 2018 11:26:00 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.24
Jan 21, 2018 11:26:02 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug 
logging for this logger for a complete list of JARs that were scanned but no 
TLDs were found in them. Skipping unneeded JARs during scanning can improve 
startup time and JSP compilation time.
Jan 21, 2018 11:26:03 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor 
[C:\Users\Karen.Goh\workspace5\Servers2\Tomcat v8.5 Server at 
localhost-config\Hi5SProject\conf\Catalina\localhost\Hi5S.xml]
Jan 21, 2018 11:26:03 PM org.apache.catalina.startup.SetContextPropertiesRule 
begin

RE: Multiple errors

2017-11-20 Thread Karen Goh
Hi all,

I managed to get the errors to go away by installing a higher version Tomcat 
and also update my windows environment variable to JDK 8.
Thanks for all the replies.



On Mon, 11/20/17, Nicolas Therrien <nicolas.therr...@airbus-dscomm.com> wrote:

 Subject: RE: Multiple errors
 To: "users@tomcat.apache.org" <users@tomcat.apache.org>
 Date: Monday, November 20, 2017, 8:37 PM
 
 If you have autodeploy set to ON,
 make sure you clean your webapps from any leftover war
 files.   I would delete the folder contents entirely and
 redeploy.
 
 
 
 
 On 19.11.2017 07:32, Karen Goh
 wrote:
 > Hi,
 >
 > I am writing to this group as I could not
 get an answer from anywhere.
 >
 > Basically, I do not know what happened cos
 my Tomcat was running fine and then I got a bunch of
 error.
 >
 > I did a mvn
 clean, delete all my dependencies in my .m2 repositotries
 and rebuilt, re-installed Tomcat many times but to no
 avail.
 >
 > My tomcat
 is in my built path in my Eclipse NEON.
 >
 > So, I really hope
 someone can let me know what went wrong.
 
 I'm not the expert, but it looks as if one
 of the .jar files composing tomcat may be corrupt.
 I am basing this on the following lines below
 :
 
 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Hi5S]]
 ...
  > Caused by:
 java.lang.IllegalArgumentException:
 java.util.zip.ZipException: invalid LOC header (bad
 signature)
 
 (a .jar file is
 a zip file containing java programs and libraries)
 
 "/Hi5S" does not
 look like it is any part of a standard tomcat, so maybe it
 is in your application rather than tomcat itself.
 
 >
 >
 Here's the error message :
 >
 > Nov 19, 2017 2:30:29 PM
 org.apache.catalina.core.StandardService 
 > startInternal
 > INFO:
 Starting service [Catalina]
 > Nov 19,
 2017 2:30:29 PM org.apache.catalina.core.StandardEngine 
 > startInternal
 > INFO:
 Starting Servlet Engine: Apache Tomcat/8.5.23 Nov 19, 2017
 
 > 2:30:30 PM
 org.apache.catalina.core.ContainerBase startInternal
 > SEVERE: A child container failed during
 start
 >
 java.util.concurrent.ExecutionException:
 org.apache.catalina.LifecycleException: Failed to start
 component
 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Hi5S]]
 >     at
 java.util.concurrent.FutureTask.report(Unknown Source)
 >     at
 java.util.concurrent.FutureTask.get(Unknown Source)
 >     at
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
 >     at
 org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 >     at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
 >     at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
 >     at
 java.util.concurrent.FutureTask.run(Unknown Source)
 >     at
 java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
 Source)
 >     at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
 Source)
 >     at
 java.lang.Thread.run(Unknown Source) Caused by: 
 > org.apache.catalina.LifecycleException:
 Failed to start component
 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Hi5S]]
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
 >     ... 6 more
 >
 Caused by: org.apache.catalina.LifecycleException: Failed to
 start component [org.apache.catalina.webresources.StandardRoot@59d0966f]
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
 >     at
 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4860)
 >     at
 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4995)
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 >     ... 6 more
 >
 Caused by: org.apache.catalina.LifecycleException: Failed to
 initialize component [org.apache.catalina.webresources.JarResourceSet@38099cbe]
 >     at
 org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:113)
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
 >     at
 
org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)
 >     at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 >     ... 9 more
 >
 Caused by: java.lang.IllegalArgumentException:
 java.util.zip.ZipException: invalid LOC header (bad
 signature)
 >     at
 
org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)
 >     at
 org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
 >     ... 12 more
 >
 Caused by: java.util.zip.ZipException: invalid LOC header
 (bad 

Multiple errors

2017-11-18 Thread Karen Goh
Hi,

I am writing to this group as I could not get an answer from anywhere.

Basically, I do not know what happened cos my Tomcat was running fine and then 
I got a bunch of error.

I did a mvn clean, delete all my dependencies in my .m2 repositotries and 
rebuilt, re-installed Tomcat many times but to no avail.

My tomcat is in my built path in my Eclipse NEON.

So, I really hope someone can let me know what went wrong.

Here's the error message :

Nov 19, 2017 2:30:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Nov 19, 2017 2:30:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.23
Nov 19, 2017 2:30:30 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Hi5S]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Hi5S]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component 
[org.apache.catalina.webresources.StandardRoot@59d0966f]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4860)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4995)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize 
component [org.apache.catalina.webresources.JarResourceSet@38099cbe]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:113)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at 
org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: 
invalid LOC header (bad signature)
at 
org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:113)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 12 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.misc.IOUtils.readFully(Unknown Source)
at java.util.jar.JarFile.getBytes(Unknown Source)
at java.util.jar.JarFile.getManifestFromReference(Unknown Source)
at java.util.jar.JarFile.getManifest(Unknown Source)
at 
org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:111)
... 13 more

Nov 19, 2017 2:30:30 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

2017-10-19 Thread Karen Goh
Dear expert,

Today I receive an error message that I have never come across.

"Https status 404 - not found "
"The origin server did not find a current representation for the target 
resource or is not willing to disclose that one exists."

I have googled but there is no solution that can help me.

So far, I have delete the server and add a new one but it is not helpful.

So far, my context.xml is correct so rightfully, the tutorRegister.jsp page 
should appear.

Here's my context.xml and I am running on Eclipse NEON 3 with Maven and it is a 
dynamic web project.

http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">
  Hi5S
  
tutorRegister.jsp
  
  
mydb
jdbc/hi5
javax.sql.DataSource
Container
  


Hope someone could help. Tks.

Regards,
Karen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fw: Re: Help needed - JPA probem - No connection specified with project

2017-10-08 Thread Karen Goh
Hi,

I have been trying to get a reply on this but seems like nobody can help me on 
this.
Till today, no matter what I did, I still get a JPA - no connection specified 
with project.

Can someone give me a tutorial that uses Javax JPA that works with JDBC mysql ?

Thanks!

--- On Mon, 10/2/17, Karen Goh <karenwo...@yahoo.com> wrote:

> From: Karen Goh <karenwo...@yahoo.com>
> Subject: Re: Help needed - JPA probem - No connection specified with project
> To: knst.koli...@gmail.com
> Cc: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Monday, October 2, 2017, 4:01 PM
> 
> 
> On Fri, 9/29/17, Konstantin Kolinko
> <knst.koli...@gmail.com>
> wrote:
> 
>  Subject: Re: Help needed - JPA probem
> - No connection specified with project
>  To: "Karen Goh" <karenwo...@yahoo.com>
>  Cc: "Tomcat Users List" <users@tomcat.apache.org>
>  Date: Friday, September 29, 2017, 9:16
> PM
>  
>  >>
>  >>  1. See a link to Eclipse
> IDE FAQ
>  here:
>  >>
>  >>  https://wiki.apache.org/tomcat/FAQ/Developing#Q6
>  
>  The actual Tomcat
>  configuration that is running is in
> 
> ".metadata/.plugins/org.eclipse.wst.server.core"
>  directory (the
>  Eclipse Web Tools FAQ should
>  provide more pointers). There may be
>  situations when it becomes stale.
>  
>  >>  2. See the
>  >>  following thread on how to
> turn on
>  "Publish module
>  >>  context to
>  separate XML files" option in
> Eclipse.
>  >>
>  >>  By
>  default
>  >>  (without that option)
>  Eclipse IDE places 
>  >>  elements into server.xml,
> which is a
>  rather
>  >>  discourage practice.
>  >>
>  >>  http://markmail.org/message/7zkyocvph56b6t6q
>  >
>  > OK.  I managed to
>  turn on "Publish module context..but
> my problem of
>  context not bound is still there.
>  >
>  >>  3.
>  >> 
>  Documentation on Context:
>  >>
>  >>  http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
>  >>
>  >>  The
>   element in
>  >>  your
>  context.xml has a lot of attributes
> that
>  >>  should not be there,
> starting
>  with
>  >>  "debug". What
>  (bad) example were
>  >>  they copied
>  from?
>  >
>  >  4. The
>  current version of
>  >  Tomcat 8.0 is
>  8.0.46.
>  >  There were security
>  >  fixes in Java as well (8u141
> was a
>  security update
>  >  in July 2017)
>  >
>  >  Also EOL date for
>  Tomcat 8.0 has been
>  >  announced. Users
>  are advised to
>  >  migrate to
>  >  8.5.
>  >  http://tomcat.apache.org/tomcat-80-eol.html
>  >
>  > Hi kolinko, I have
>  now installed Tomcat 8.5.20 but same
> problem.
>  
>  Even if it is "the same
>  problem", it 'd better if you provide
> the
>  actual log messages and stacktraces.
> Those
>  differ between versions.
>  
> Here's my latest error in which I
> really don't know what have cause the JPA no connection is
> specified :
> 
> INFO: Starting service Catalina
> Oct 02, 2017 3:53:51 PM
> org.apache.catalina.core.StandardEngine startInternal
> INFO: Starting Servlet Engine: Apache
> Tomcat/8.0.29
> Oct 02, 2017 3:53:52 PM
> org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration
> descriptor C:\Users\Karen Goh Seow
> Hui\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\conf\Catalina\localhost\Hi5S.xml
> Oct 02, 2017 3:53:53 PM
> org.apache.catalina.startup.SetContextPropertiesRule begin
> WARNING:
> [SetContextPropertiesRule]{Context} Setting property
> 'source' to 'org.eclipse.jst.jee.server:Hi5S' did not find a
> matching property.
> Oct 02, 2017 3:53:57 PM
> org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory
> getObjectInstance
> INFO: Name = hi5 Ignoring unknown
> property: value of "" for "description" property
> Oct 02, 2017 3:53:57 PM
> org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory
> getObjectInstance
> INFO: Name = hi5 Ignoring unknown
> property: value of "" for "mappedName" property
> Oct 02, 2017 3:53:58 PM
> org.apache.jasper.servlet.TldScanner scanJars
> INFO: At least one JAR was scanned for
> TLDs yet contained no TLDs. Enable debug logging for this
> logger for a complete list of JARs that were scanned but no
> TLDs were found in them. Skipping unneeded JARs during
> scanning can improve startup time and JSP compilation t

Re: Help needed - JPA probem - No connection specified with project

2017-10-02 Thread Karen Goh


On Fri, 9/29/17, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Help needed - JPA probem - No connection specified with project
 To: "Karen Goh" <karenwo...@yahoo.com>
 Cc: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Friday, September 29, 2017, 9:16 PM
 
 >>
 >>  1. See a link to Eclipse IDE FAQ
 here:
 >>
 >>  https://wiki.apache.org/tomcat/FAQ/Developing#Q6
 
 The actual Tomcat
 configuration that is running is in
 ".metadata/.plugins/org.eclipse.wst.server.core"
 directory (the
 Eclipse Web Tools FAQ should
 provide more pointers). There may be
 situations when it becomes stale.
 
 >>  2. See the
 >>  following thread on how to turn on
 "Publish module
 >>  context to
 separate XML files" option in Eclipse.
 >>
 >>  By
 default
 >>  (without that option)
 Eclipse IDE places 
 >>  elements into server.xml, which is a
 rather
 >>  discourage practice.
 >>
 >>  http://markmail.org/message/7zkyocvph56b6t6q
 >
 > OK.  I managed to
 turn on "Publish module context..but my problem of
 context not bound is still there.
 >
 >>  3.
 >> 
 Documentation on Context:
 >>
 >>  http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
 >>
 >>  The
  element in
 >>  your
 context.xml has a lot of attributes that
 >>  should not be there, starting
 with
 >>  "debug". What
 (bad) example were
 >>  they copied
 from?
 >
 >  4. The
 current version of
 >  Tomcat 8.0 is
 8.0.46.
 >  There were security
 >  fixes in Java as well (8u141 was a
 security update
 >  in July 2017)
 >
 >  Also EOL date for
 Tomcat 8.0 has been
 >  announced. Users
 are advised to
 >  migrate to
 >  8.5.
 >  http://tomcat.apache.org/tomcat-80-eol.html
 >
 > Hi kolinko, I have
 now installed Tomcat 8.5.20 but same problem.
 
 Even if it is "the same
 problem", it 'd better if you provide the
 actual log messages and stacktraces. Those
 differ between versions.
 
Here's my latest error in which I really don't know what have cause the JPA no 
connection is specified :

INFO: Starting service Catalina
Oct 02, 2017 3:53:51 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.29
Oct 02, 2017 3:53:52 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor C:\Users\Karen Goh Seow 
Hui\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\conf\Catalina\localhost\Hi5S.xml
Oct 02, 2017 3:53:53 PM org.apache.catalina.startup.SetContextPropertiesRule 
begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 
'org.eclipse.jst.jee.server:Hi5S' did not find a matching property.
Oct 02, 2017 3:53:57 PM org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory 
getObjectInstance
INFO: Name = hi5 Ignoring unknown property: value of "" for "description" 
property
Oct 02, 2017 3:53:57 PM org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory 
getObjectInstance
INFO: Name = hi5 Ignoring unknown property: value of "" for "mappedName" 
property
Oct 02, 2017 3:53:58 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug 
logging for this logger for a complete list of JARs that were scanned but no 
TLDs were found in them. Skipping unneeded JARs during scanning can improve 
startup time and JSP compilation time.
2017-10-02 15:53:59,962 localhost-startStop-1 ERROR Error processing element 
Configuration ([Configuration: null]): CLASS_NOT_FOUND
2017-10-02 15:54:00,324 localhost-startStop-1 ERROR No ConnectionSource 
provided: connectionSource
2017-10-02 15:54:00,327 localhost-startStop-1 ERROR Unable to inject fields 
into builder class for plugin type class 
org.apache.logging.log4j.core.appender.db.jdbc.JdbcAppender, element Jdbc. 
org.apache.logging.log4j.core.config.ConfigurationException: Arguments given 
for element Jdbc are invalid
at 
org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.injectFields(PluginBuilder.java:198)
at 
org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:121)
at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:952)
at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:892)
at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:884)
at 
org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:508)
at 
org.apache.logging.log4j.core.config.AbstractConfiguratio

Re: Help needed - JPA probem - No connection specified with project

2017-09-28 Thread Karen Goh


On Thu, 9/28/17, Guang Chao <guang.chao.1...@gmail.com> wrote:

 Subject: Re: Help needed - JPA probem - No connection specified with project
 To: "Tomcat Users List" <users@tomcat.apache.org>, "Karen Goh" 
<karenwo...@yahoo.com>
 Date: Thursday, September 28, 2017, 1:25 PM
 
 On Thu, Sep 28, 2017 at 12:57 PM,
 Karen Goh <karenwo...@yahoo.com.invalid>
 wrote:
 
 >
 >
 
 > On Tue, 9/26/17, Konstantin Kolinko <knst.koli...@gmail.com>
 wrote:
 >
 >  Subject:
 Re: Help needed - JPA probem - No connection specified
 with
 > project
 >  To:
 "Tomcat Users List" <users@tomcat.apache.org>
 >  Date: Tuesday, September 26, 2017, 8:52
 AM
 >
 >  2017-09-25
 18:02 GMT+03:00 Karen
 >  Goh <karenwo...@yahoo.com>:
 >  > Hi Kolinko,
 > 
 >
 >  > I have now removed the
 ResourceLink and
 >  left with Resource
 in my context.xml which is resided at
 > 
 WebContent/META-INF.
 >  >
 >  > And this is C:\Program
 Files\Apache
 >  Software
 Foundation\Tomcat 8.0\conf\context.xml
 >  >
 >  >
   version="1.0"
 encoding="UTF-8"?>
 >  >
 
 >  >
 >  >    
 
 >  >     
 >  >
 > 
 WEB-INF/web.xml
 >  >
 > 
 ${catalina.base}/conf/web.xml
 >  >
 >  >    
 
 >  >     
 > 
 >
 >  >     
 >  >    
 
 >  >
 > 
 
 >  >
 >  >
 >  And
 here's my web.xml :
 >  >
 >  >   encoding="UTF-8"?>
 >  >
 >  http://www.w3.org/2001/XMLSchema-instance;
 >  xmlns="http://xmlns.jcp.org/xml/ns/javaee;
 >  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
 > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 >  version="3.1">
 >  >
 > 
 Hi5S
 >  >   
 >  >
 > 
 Index.jsp
 >  >   
 >  >   
 >  >     MySQL
 >  Datasource
 >  >
 > 
 jdbc/hi5
 >  >
 > 
 javax.sql.DataSource
 >  >
 > 
 Container
 >  >   
 >  >
 >  >
 
 >  >
 >  > The error remains the
 >  same and my Tomcat failed to start,
 despite I cleaned them
 >  etc etc.
 >  >
 >  > SEVERE:
 A
 >  child container failed during
 start
 >  >
 > 
 java.util.concurrent.ExecutionException:
 >  org.apache.catalina.LifecycleException:
 Failed to start
 >  component
 > 
 [StandardEngine[Catalina].StandardHost[localhost]]
 >  >
 >  > Could
 you advise how
 >  to go about making it
 work ?
 >
 >  Mailing
 list rules:
 >  http://tomcat.apache.org/lists.html#tomcat-users
 >  -> Top-posting is bad.
 >
 > Ok. Tks, now I follow
 your requirements.
 >
 >
 >  1. See a link to
 Eclipse IDE FAQ here:
 >
 >  https://wiki.apache.org/tomcat/FAQ/Developing#Q6
 >
 >
 >  2. See the
 > 
 following thread on how to turn on "Publish module
 >  context
 >  to
 separate XML files" option
 >  in
 Eclipse.
 >
 >  By
 default
 >  (without that option) Eclipse
 IDE places 
 > 
 elements
 >  into server.xml, which is a
 rather
 >  discourage practice.
 >
 >  http://markmail.org/message/7zkyocvph56b6t6q
 >
 >
 >
 OK.  I managed to turn on "Publish module context..but
 my problem of
 > context not bound is
 still there.
 >
 > 
 3.
 >  Documentation on Context:
 >
 >  http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
 >
 >  The 
 element in
 >  your context.xml has a lot
 of attributes that
 >  should not be
 there, starting with
 > 
 "debug". What (bad) example were
 >  they copied from?
 >
 >
 >  4. The current version of
 >  Tomcat 8.0 is 8.0.46.
 >  There were security
 >  fixes in Java as well (8u141 was a
 security update
 >  in July 2017)
 >
 >  Also EOL date for
 Tomcat 8.0 has been
 >  announced. Users
 are advised to
 >  migrate to
 >  8.5.
 >  http://tomcat.apache.org/tomcat-80-eol.html
 >
 > Hi kolinko, I have
 now installed Tomcat 8.5.20 but same problem.
 >
 >
 >
 >
 >  5. Your
 > 
 META-INF/context.xml is broken:
 > 
 [[[
 >    // here is
 rogue
 >  ">", thus your
 Resource has no name (all
 >  the
 following is plain text, not attributes)
 >  and thus NPE happens
 >
 > 
 name="jdbc/hi5"
 >
 >  auth="Container"
 >
 > 
 type="javax.sql.DataSource"
 >
 > 
 maxTotal="8"
 >
 >  maxActive="100"
 >
 > 
 maxIdle="30"
 >
 >  maxWait="-1"
 >
 > 
 username="root"
 >
 >  singleton="true"
 >
 > 
 override="true"
 >
 > 
 factory="or

Re: Help needed - JPA probem - No connection specified with project

2017-09-27 Thread Karen Goh


On Tue, 9/26/17, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Help needed - JPA probem - No connection specified with project
 To: "Tomcat Users List" <users@tomcat.apache.org>
 Date: Tuesday, September 26, 2017, 8:52 AM
 
 2017-09-25 18:02 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com>:
 > Hi Kolinko,
 >
 > I have now removed the ResourceLink and
 left with Resource in my context.xml which is resided at
 WebContent/META-INF.
 >
 > And this is C:\Program Files\Apache
 Software Foundation\Tomcat 8.0\conf\context.xml
 >
 > 
 > 
 >
 >     
 >     
 >    
 WEB-INF/web.xml
 >    
 ${catalina.base}/conf/web.xml
 >
 >     
 >     
 >
 >     
 >     
 >
 
 >
 >
 And here's my web.xml :
 >
 > 
 >
 http://www.w3.org/2001/XMLSchema-instance;
 xmlns="http://xmlns.jcp.org/xml/ns/javaee;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">
 >  
 Hi5S
 >   
 >    
 Index.jsp
 >   
 >   
 >     MySQL
 Datasource
 >    
 jdbc/hi5
 >    
 javax.sql.DataSource
 >    
 Container
 >   
 >
 > 
 >
 > The error remains the
 same and my Tomcat failed to start, despite I cleaned them
 etc etc.
 >
 > SEVERE: A
 child container failed during start
 >
 java.util.concurrent.ExecutionException:
 org.apache.catalina.LifecycleException: Failed to start
 component
 [StandardEngine[Catalina].StandardHost[localhost]]
 >
 > Could you advise how
 to go about making it work ?
 
 Mailing list rules:
 http://tomcat.apache.org/lists.html#tomcat-users
 -> Top-posting is bad.

Ok. Tks, now I follow your requirements.

 
 1. See a link to Eclipse IDE FAQ here:
 
 https://wiki.apache.org/tomcat/FAQ/Developing#Q6
 
 
 2. See the
 following thread on how to turn on "Publish module
 context
 to separate XML files" option
 in Eclipse.

 By default
 (without that option) Eclipse IDE places 
 elements
 into server.xml, which is a rather
 discourage practice.
 
 http://markmail.org/message/7zkyocvph56b6t6q


OK.  I managed to turn on "Publish module context..but my problem of context 
not bound is still there. 
 
 3.
 Documentation on Context:
 
 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
 
 The  element in
 your context.xml has a lot of attributes that
 should not be there, starting with
 "debug". What (bad) example were
 they copied from?
 
 
 4. The current version of
 Tomcat 8.0 is 8.0.46.
 There were security
 fixes in Java as well (8u141 was a security update
 in July 2017)
 
 Also EOL date for Tomcat 8.0 has been
 announced. Users are advised to
 migrate to
 8.5.
 http://tomcat.apache.org/tomcat-80-eol.html

Hi kolinko, I have now installed Tomcat 8.5.20 but same problem.
 


 
 5. Your
 META-INF/context.xml is broken:
 [[[
   // here is rogue
 ">", thus your Resource has no name (all
 the following is plain text, not attributes)
 and thus NPE happens
    
 name="jdbc/hi5"
    
 auth="Container"
    
 type="javax.sql.DataSource"
    
 maxTotal="8"
    
 maxActive="100"
    
 maxIdle="30"
    
 maxWait="-1"
    
 username="root"
    
 singleton="true"
    
 override="true"
    
 factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
     password="password"
      
 alternateUsernameAllowed="true"
  
   driverClassName="com.mysql.jdbc.Driver"
    
 url="jdbc:mysql://localhost:3306/hi5" />  //
 You either use /> or
 ,
 not both.
   
 ]]]
 
 
I have changed my context.xml as follows :



   


And my web.xml ;


http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://xmlns.jcp.org/xml/ns/javaee; 
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd; version="3.1">
  Hi5S
  
Index.jsp
  
  
MySQL dataSource
JDBC/hi5
javax.sql.DataSource
Container
  
   
util.HibernateSessionFactoryListener 
// I do not know if this is necessary.  Wld like to have your comments. Tks.



 Best
 regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help needed - JPA probem - No connection specified with project

2017-09-25 Thread Karen Goh
Hi Kolinko,

I have now removed the ResourceLink and left with Resource in my context.xml 
which is resided at WebContent/META-INF.

And this is C:\Program Files\Apache Software Foundation\Tomcat 
8.0\conf\context.xml






WEB-INF/web.xml
${catalina.base}/conf/web.xml








And here's my web.xml :


http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://xmlns.jcp.org/xml/ns/javaee; 
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd; version="3.1">
  Hi5S
  
Index.jsp
  
  
MySQL Datasource
jdbc/hi5
javax.sql.DataSource
Container
  
  


The error remains the same and my Tomcat failed to start, despite I cleaned 
them etc etc.

SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost]]

Could you advise how to go about making it work ?

Hope to hear from you soon.

On Fri, 9/22/17, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Help needed - JPA probem - No connection specified with project
 To: "Tomcat Users List" <users@tomcat.apache.org>, "Karen Goh" 
<karenwo...@yahoo.com>
 Date: Friday, September 22, 2017, 10:00 PM
 
 2017-09-22 13:35 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com.invalid>:
 > Hi expert,
 >
 > I have been trying very hard to nail the
 above problem including asking various forums like
 CodeRanch, dream in code etc but to no avail.
 >
 > As such, I am hoping
 to get help from the Apache Tomcat user support.
 >
 > Tools and setting :
 Eclipse Mars, Tomcat 1.8, MySQL, OS : Windows 7, Maven, Java
 JPA with Hibernate framework 5.1.0
 
 There is no such version as "Tomcat
 1.8". I assume that you meant some
 version of Tomcat 8.0.x.
 
 
 > The MySQL setting is
 confirmed correct, as I have managed to insert the data via
 single JDBC connection.
 >
 > Project summary : J2ee servlet with JSP,
 Java JPA in Hibernate framework. (Hibernate is for pure
 insertion of data - many to many relationship)
 >
 > My purpose is to get
 the JNDI datasource working but till now I can't just
 get it work.
 >
 >
 Here's my context.xml :
 >
 > 
 >
 
 >
 
 > 
 >   
  name="jdbc/hi5"
 >    
 auth="Container"
 >    
 type="javax.sql.DataSource"
 > 
    maxTotal="8"
 >    
 maxActive="100"
 >    
 maxIdle="30"
 >    
 maxWait="-1"
 >    
 username="root"
 >    
 singleton="true"
 >    
 override="true"
 >    
 factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
 >     password="password"
 >      
 alternateUsernameAllowed="true"
 >    
 driverClassName="com.mysql.jdbc.Driver"
 >    
 url="jdbc:mysql://localhost:3306/hi5" />
 >   
 >   
 
 The META-INF/context.xml file of a web
 application must have only one
 of
 <Resource, ResourceLink> elements with the same value
 of "name"
 attribute.
 
 
 If you have a
 ResourceLink in context.xml, it means that your Resource
 element must go into GlobalNamingResources
 element of conf/server.xml
 file.
 http://tomcat.apache.org/tomcat-8.5-doc/config/globalresources.html
 
 
 BTW, you
 should not modify conf/context.xml file. It is the
 defaults
 file shared by all web
 applications. (Modifying it is a common
 configuration mistake).
 
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Fw: Re: Help needed - JPA probem - No connection specified with project

2017-09-23 Thread Karen Goh
Hi all,

I'd like to add that I did not add EclipseLink cos I learnt that you cannot mix 
Hibernate with EclipseLink.

Tks & rgds,
Karen

--- On Sat, 9/23/17, Karen Goh <karenwo...@yahoo.com> wrote:

> From: Karen Goh <karenwo...@yahoo.com>
> Subject: Re: Help needed - JPA probem - No connection specified with project
> To: "Tomcat Users List" <users@tomcat.apache.org>, knst.koli...@gmail.com
> Date: Saturday, September 23, 2017, 1:03 PM
> Hi all,
> 
> My apologies, my Tomcat server version
> is Apache Tomcat 8.0.29 Server.
> The JDK is 1.8
> 
> Hope to get some advice what went wrong
> in regards to the No connection specified with project.
> 
> Tks & rgds,
> Karen
> 
> On Fri, 9/22/17, Konstantin Kolinko
> <knst.koli...@gmail.com>
> wrote:
> 
>  Subject: Re: Help needed - JPA probem
> - No connection specified with project
>  To: "Tomcat Users List" <users@tomcat.apache.org>,
> "Karen Goh" <karenwo...@yahoo.com>
>  Date: Friday, September 22, 2017,
> 10:00 PM
>  
>  2017-09-22 13:35 GMT+03:00 Karen
>  Goh <karenwo...@yahoo.com.invalid>:
>  > Hi expert,
>  >
>  > I have been trying very hard to
> nail the
>  above problem including asking various
> forums like
>  CodeRanch, dream in code etc but to no
> avail.
>  >
>  > As such, I am hoping
>  to get help from the Apache Tomcat
> user support.
>  >
>  > Tools and setting :
>  Eclipse Mars, Tomcat 1.8, MySQL, OS :
> Windows 7, Maven, Java
>  JPA with Hibernate framework 5.1.0
>  
>  There is no such version as "Tomcat
>  1.8". I assume that you meant some
>  version of Tomcat 8.0.x.
>  
>  
>  > The MySQL setting is
>  confirmed correct, as I have managed
> to insert the data via
>  single JDBC connection.
>  >
>  > Project summary : J2ee servlet
> with JSP,
>  Java JPA in Hibernate framework.
> (Hibernate is for pure
>  insertion of data - many to many
> relationship)
>  >
>  > My purpose is to get
>  the JNDI datasource working but till
> now I can't just
>  get it work.
>  >
>  >
>  Here's my context.xml :
>  >
>  >   encoding="UTF-8"?>
>  >
>   docBase="Hi5S"
>  crossContext="true" reloadable="true"
>  antiResourceLocking="true"
>  debug="1">
>  >
>name="jdbc/hi5"
>  type="javax.sql.DataSource"/>
>  > 
>  >   
>   name="jdbc/hi5"
>  >    
>  auth="Container"
>  >    
>  type="javax.sql.DataSource"
>  > 
>     maxTotal="8"
>  >    
>  maxActive="100"
>  >    
>  maxIdle="30"
>  >    
>  maxWait="-1"
>  >    
>  username="root"
>  >    
>  singleton="true"
>  >    
>  override="true"
>  >    
> 
> factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
>  >     password="password"
>  >      
>  alternateUsernameAllowed="true"
>  >    
> 
> driverClassName="com.mysql.jdbc.Driver"
>  >    
>  url="jdbc:mysql://localhost:3306/hi5"
> />
>  >   
>  >   
>  
>  The META-INF/context.xml file of a
> web
>  application must have only one
>  of
>  <Resource, ResourceLink>
> elements with the same value
>  of "name"
>  attribute.
>  
>  
>  If you have a
>  ResourceLink in context.xml, it means
> that your Resource
>  element must go into
> GlobalNamingResources
>  element of conf/server.xml
>  file.
>  http://tomcat.apache.org/tomcat-8.5-doc/config/globalresources.html
>  
>  
>  BTW, you
>  should not modify conf/context.xml
> file. It is the
>  defaults
>  file shared by all web
>  applications. (Modifying it is a
> common
>  configuration mistake).
>  
>  
>  Best regards,
>  Konstantin Kolinko
>  
> 
> -
>  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>  For additional commands, e-mail: users-h...@tomcat.apache.org
>  
>  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help needed - JPA probem - No connection specified with project

2017-09-22 Thread Karen Goh
Hi all,

My apologies, my Tomcat server version is Apache Tomcat 8.0.29 Server.
The JDK is 1.8

Hope to get some advice what went wrong in regards to the No connection 
specified with project.

Tks & rgds,
Karen

On Fri, 9/22/17, Konstantin Kolinko <knst.koli...@gmail.com> wrote:

 Subject: Re: Help needed - JPA probem - No connection specified with project
 To: "Tomcat Users List" <users@tomcat.apache.org>, "Karen Goh" 
<karenwo...@yahoo.com>
 Date: Friday, September 22, 2017, 10:00 PM
 
 2017-09-22 13:35 GMT+03:00 Karen
 Goh <karenwo...@yahoo.com.invalid>:
 > Hi expert,
 >
 > I have been trying very hard to nail the
 above problem including asking various forums like
 CodeRanch, dream in code etc but to no avail.
 >
 > As such, I am hoping
 to get help from the Apache Tomcat user support.
 >
 > Tools and setting :
 Eclipse Mars, Tomcat 1.8, MySQL, OS : Windows 7, Maven, Java
 JPA with Hibernate framework 5.1.0
 
 There is no such version as "Tomcat
 1.8". I assume that you meant some
 version of Tomcat 8.0.x.
 
 
 > The MySQL setting is
 confirmed correct, as I have managed to insert the data via
 single JDBC connection.
 >
 > Project summary : J2ee servlet with JSP,
 Java JPA in Hibernate framework. (Hibernate is for pure
 insertion of data - many to many relationship)
 >
 > My purpose is to get
 the JNDI datasource working but till now I can't just
 get it work.
 >
 >
 Here's my context.xml :
 >
 > 
 >
 
 >
 
 > 
 >   
  name="jdbc/hi5"
 >    
 auth="Container"
 >    
 type="javax.sql.DataSource"
 > 
    maxTotal="8"
 >    
 maxActive="100"
 >    
 maxIdle="30"
 >    
 maxWait="-1"
 >    
 username="root"
 >    
 singleton="true"
 >    
 override="true"
 >    
 factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
 >     password="password"
 >      
 alternateUsernameAllowed="true"
 >    
 driverClassName="com.mysql.jdbc.Driver"
 >    
 url="jdbc:mysql://localhost:3306/hi5" />
 >   
 >   
 
 The META-INF/context.xml file of a web
 application must have only one
 of
 <Resource, ResourceLink> elements with the same value
 of "name"
 attribute.
 
 
 If you have a
 ResourceLink in context.xml, it means that your Resource
 element must go into GlobalNamingResources
 element of conf/server.xml
 file.
 http://tomcat.apache.org/tomcat-8.5-doc/config/globalresources.html
 
 
 BTW, you
 should not modify conf/context.xml file. It is the
 defaults
 file shared by all web
 applications. (Modifying it is a common
 configuration mistake).
 
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Help needed - JPA probem - No connection specified with project

2017-09-22 Thread Karen Goh
he.catalina.startup.VersionLoggerListener log
INFO: Server built:  Nov 20 2015 09:18:00 UTC
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.29.0
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:   Windows 7
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:6.1
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:  amd64
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jre1.8.0_131
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:   1.8.0_131-b11
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:Oracle Corporation
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\Users\Karen Goh Seow 
Hui\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 
8.0
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1438
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Karen Goh Seow 
Hui\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software 
Foundation\Tomcat 8.0
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\Karen Goh Seow 
Hui\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache 
Software Foundation\Tomcat 8.0\endorsed
Sep 22, 2017 5:59:46 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Sep 22, 2017 5:59:46 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\Program 
Files\Java\jre1.8.0_131\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
 Files/Java/jre1.8.0_131/bin/server;C:/Program 
Files/Java/jre1.8.0_131/bin;C:/Program 
Files/Java/jre1.8.0_131/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program
 Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program 
Files\Java ; C:\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin;C:\Program 
Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft SQL 
Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client 
SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL 
Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL 
Server\120\DTS\Binn\;C:\Program Files\Lenovo\Fingerprint Manager 
Pro\;C:\Program Files (x86)\Microsoft SQL Server\Client 
SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL 
Server\130\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Intel\Intel(R) 
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management 
Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine 
Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine 
Components\IPT;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Windows; 
C:\Windows\system32; C:\Program Files\Java\jdk1.7.0_79\bin;C:\Program 
Files\apache-maven-3.3.9\bin;C:\Users\Karen Goh Seow 
Hui\Documents\eclipse-jee-mars-2-win32-x86_64\eclipse;;.
Sep 22, 2017 5:59:49 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8013"]
Sep 22, 2017 5:59:50 PM org.apache.tomcat.util.net.NioSelectorPool 
getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 22, 2017 5:59:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Sep 22, 2017 5:59:50 PM org.apache.tomcat.util.net.NioSelectorPool 
getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 22, 2017 5:59:50 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6737 ms
Sep 22, 2017 5:59:50 PM org.apache.catalina.core.Sta