RE: [EXTERNAL] Re: WAR file not deploying correctly

2019-07-22 Thread Victor Willart (NOVOTEK Benelux)


> -Original Message-
> From: André Warnier (tomcat) 
> Sent: Monday, July 22, 2019 12:26
> To: users@tomcat.apache.org
> Subject: [EXTERNAL] Re: WAR file not deploying correctly
> 
> On 22.07.2019 10:27, Victor WILLART wrote:
> > Hi,
> >
> >
> > Thanks for your answers. I am sorry I can't use the prefix indentation for
> replies yet. Next time I am going to use it with my other mail addresses with
> which I just subscribed !
> >
> >
> > @André
> >
> > I am not sure for the platform I am using, maybe you mean Polymer ?
> 
> I mean Windows, Linux, ..  (OS)
> 

Windows 64 bits

> >
> >
> > @Konstantin
> >
> > My back up files are not in any folders from Tomcat.
> >
> >
> > @Christopher
> >
> > This command is really handy, I didn't know about it. But It' returning the
> entire structure of my app folder so I think my WAR file is good, at least it
> isn't empty.
> >
> >
> > Below are the logs I found in Catalina.2019-07-22.log
> >
> > I am not sure if everything is related to my problem, but the first lines 
> > seem
> to be struggling with this config folder ...
> >
> >
> > ---
> >
> > 22-Jul-2019 09:36:31.598 SEVERE
> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> > org.apache.catalina.startup.ExpandWar.deleteDir [C:\Program
> > Files\Apache Software Foundation\Tomcat
> > 8.0\webapps\ProductionMetricsApp-0.3.0\config] could not be completely
> > deleted. The presence of the remaining files may cause problems
> > 22-Jul-2019 09:36:31.598 SEVERE
> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> > org.apache.catalina.startup.ExpandWar.deleteDir [C:\Program
> > Files\Apache Software Foundation\Tomcat
> > 8.0\webapps\ProductionMetricsApp-0.3.0] could not be completely
> > deleted. The presence of the remaining files may cause problems
> > 22-Jul-2019 09:36:31.599 SEVERE
> > [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> > org.apache.catalina.startup.ExpandWar.delete [C:\Program Files\Apache
> > Software Foundation\Tomcat 8.0\webapps\ProductionMetricsApp-0.3.0]
> > could not be completely deleted. The presence of the remaining files
> > may cause problems
> > 22-Jul-2019 09:36:31.623 SEVERE [localhost-startStop-2]
> org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial
> connections of pool.
> >   java.sql.SQLException: Unable to load class:
> com.microsoft.sqlserver.jdbc.SQLServerDriver from
> ClassLoader:java.net.URLClassLoader@72ea2f77;ClassLoader:WebappClassLo
> ader
> >context: ProductionMetricsApp-0.3.0
> >delegate: false
> > --> Parent Classloader:
> > java.net.URLClassLoader@72ea2f77
> >   at
> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(Pooled
> Connection.java:280)
> >   at
> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.
> java:200)
> >   at
> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(Connection
> Pool.java:708)
> >   at
> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(Connectio
> nPool.java:642)
> >   at
> org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:464)
> >   at
> org.apache.tomcat.jdbc.pool.ConnectionPool.(ConnectionPool.java:14
> 1)
> >   at
> org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProx
> y.java:115)
> >   at
> org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.
> java:102)
> >   at
> com.GEDIGAPP.EncryptedDataSourceFactory.createDataSource(EncryptedD
> ataSourceFactory.java:50)
> >   at
> org.apache.tomcat.jdbc.pool.DataSourceFactory.getObjectInstance(DataSou
> rceFactory.java:241)
> >   at
> org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java
> :94)
> >   at javax.naming.spi.NamingManager.getObjectInstance(Unknown
> Source)
> >   at org.apache.naming.NamingContext.lookup(NamingContext.java:841)
> >   at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
> >   at org.apache.naming.NamingContext.lookup(NamingContext.java:829)
> >   at org.apache.naming.NamingContext.lookup(NamingContext.java:166)
> >   at
> org.apache.catalina.core.NamingContextListener.addResource(NamingCont
> extListener.java:1084)
> >   at
> org.apache.catalina.core.NamingContextListener.createNamingContext(Na
> mingContextListener.java:663)
> >   at
> org.apache.catalina.core.NamingContextListener.lifecycleEvent(Nami

RE: WAR file not deploying correctly

2019-07-22 Thread Victor WILLART
dLocal with key 
of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@33a9a4ab]) and a 
value of type 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall] (value 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall@25ad9fb7]) 
but failed to remove it when the web application was stopped. Threads are going 
to be renewed over time to try and avoid a probable memory leak.
22-Jul-2019 09:36:56.453 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [activities-service-0.3.0] created a ThreadLocal with key 
of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value 
[com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@5b509737]) and a value of 
type [com.microsoft.sqlserver.jdbc.ActivityId] (value 
[8a71be2c-331a-4398-9656-135062efacc7-426]) but failed to remove it when the 
web application was stopped. Threads are going to be renewed over time to try 
and avoid a probable memory leak.
22-Jul-2019 09:36:56.453 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [activities-service-0.3.0] created a ThreadLocal with key 
of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value 
[com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@5b509737]) and a value of 
type [com.microsoft.sqlserver.jdbc.ActivityId] (value 
[570e9eb9-a01e-436c-bd4d-e110899e34e3-390]) but failed to remove it when the 
web application was stopped. Threads are going to be renewed over time to try 
and avoid a probable memory leak.
22-Jul-2019 09:36:56.455 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [activities-service-0.3.0] created a ThreadLocal with key 
of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@33a9a4ab]) and a 
value of type 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall] (value 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall@138292c3]) 
but failed to remove it when the web application was stopped. Threads are going 
to be renewed over time to try and avoid a probable memory leak.
22-Jul-2019 09:36:59.723 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [mymachines-service-impl-0.6.2] created a ThreadLocal with 
key of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value 
[com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@6cd81413]) and a value of 
type [com.microsoft.sqlserver.jdbc.ActivityId] (value 
[22156d6f-8148-49f3-b49a-0be520e6d273-1]) but failed to remove it when the web 
application was stopped. Threads are going to be renewed over time to try and 
avoid a probable memory leak.
22-Jul-2019 09:36:59.723 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [mymachines-service-impl-0.6.2] created a ThreadLocal with 
key of type [com.microsoft.sqlserver.jdbc.ActivityCorrelator$1] (value 
[com.microsoft.sqlserver.jdbc.ActivityCorrelator$1@6cd81413]) and a value of 
type [com.microsoft.sqlserver.jdbc.ActivityId] (value 
[df50226a-fe6e-416e-8a55-e66e14c294b3-4]) but failed to remove it when the web 
application was stopped. Threads are going to be renewed over time to try and 
avoid a probable memory leak.
22-Jul-2019 09:36:59.724 SEVERE [localhost-startStop-3] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [mymachines-service-impl-0.6.2] created a ThreadLocal with 
key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2ff469ad]) 
and a value of type 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall] (value 
[com.ge.bm.springExtensions.jdbcSupport.ResultSetExtractingJdbcCall@1be866b9]) 
but failed to remove it when the web application was stopped. Threads are going 
to be renewed over time to try and avoid a probable memory leak.


Victor



De : Konstantin Kolinko 
Envoyé : samedi 20 juillet 2019 21:10:12
À : Tomcat Users List 
Objet : Re: WAR file not deploying correctly

пт, 19 июл. 2019 г. в 12:47, Victor WILLART :
>
> Hi everybody,
>
>
> I am using Tomcat 8.0, and I am struggling to replace and deploy a WAR file.
>

Tomcat 8.0 has reached End of Life and should not be used anymore. The
replacements are Tomcat 8.5 and 9.0.

>
> I made a new WAR file, named it like the old one, and replaced it in my 
> webapps folder. But the new generated folder for my application is just 
> containing a single folder "config" which is empty. All the other folders and 
> files are missing … I tried also to deploy it through the Tomcat Manager and 
> it happened the same.
>
>
> I don't think my war file is wron

WAR file not deploying correctly

2019-07-19 Thread Victor WILLART
Hi everybody,


I am using Tomcat 8.0, and I am struggling to replace and deploy a WAR file.


I made a new WAR file, named it like the old one, and replaced it in my webapps 
folder. But the new generated folder for my application is just containing a 
single folder "config" which is empty. All the other folders and files are 
missing … I tried also to deploy it through the Tomcat Manager and it happened 
the same.


I don't think my war file is wrong since I have a back up folder of my app that 
was working perfectly before trying this, and the back up WAR file isn't 
working neither.  Only replacing the deployed folder by the deployed folder 
from back up makes my app work again correctly.


If you have any hints or guesses about this, I would gladly try them.


Regards,


Victor


RE: Login failing on Manager

2019-07-01 Thread Victor WILLART
Hi,


Once I was stuck at the login pop up from Tomcat Manager too, and the problem 
was the credentials being encrypted by the server. I have no clue if you have 
this too but you can check in your server.xml file if there is a "digest" 
attribute inside your "realm" element. Then you can delete this attribute and 
try again to login.


Cheers,


Victor


De : Jerry Malcolm 
Envoyé : dimanche 30 juin 2019 16:19:18
À : users@tomcat.apache.org
Objet : Re: Login failing on Manager

Bumping this one back up in the queue.  Anybody have any idea what might
be going on here?

Thanks.

Jerry

On 6/24/2019 1:50 PM, Jerry Malcolm wrote:
> I have several vHosts with 8-10 custom webapps per vHost (Tomcat
> 9.0).  I'm using SingleSignOn on all of the hosts with
> container-managed security.  Logging on using any of my own webapps is
> rock-solid on all of the vHosts and has worked for years.  But if I go
> to the Tomcat manager app on any of the vHosts without being logged
> in, manager presents its own login popup as I would expect.  But it
> will not accept my id/pw.  If I go back to my main webapp on that
> vHost and login there, THEN go to manager, it works fine.
>
> Yesterday I upgraded to the latest JSPWiki on all of the sites. After
> the upgrade, now JSPWiki is doing the same thing.  It accepts
> credentials and works fine if I'm already logged in using my main site
> webapp.  But if I go to JSPWiki without logging in and try to login
> using the JSPWiki login form, it refuses to log me on.
>
> What could cause manager and JSPWiki to not accept my login on their
> own login screens, but still be completely happy to accept my
> credentials if I login on another SingleSignOn webapp on the same
> vHost?  This one is baffling me
>
> Thx.
>
> Jerry
>
>
> -
> 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: Web app not starting after removing/installing service.bat

2019-06-04 Thread Victor WILLART




De : Christopher Schultz 
Envoyé : mardi 4 juin 2019 16:25
À : users@tomcat.apache.org
Objet : Re: Web app not starting after removing/installing service.bat

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 6/4/19 09:21, Victor WILLART wrote:
> Hi, me again.
>
> By trying to fix a problem I made it worse. I removed the
> service.bat in ...\Apache Software Foundation\Tomcat 8.0\bin and
> installed it again following the commands. My service seems to work
> well after a reboot (can stop and start it at least) but my web app
> is not launching anymore.
Did you remove bin\service.bat or did you run it to remove the service?

What commands did you follow to "install it again"?

--
I used in the command window:

cd C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin
service.bat remove

Here I changed my JAVA_HOME environnement from a JRE path to a JDK path in the 
environnement variables from the System

service.bat install
--


> I didn't change any other file between the moment my app was
> working and the moment it  wasn't anymore.
>
>
> Did I miss something in the process ? All the links/IP to the
> server must have remained the same right ?

Umm... probably?

Where is your web application on the disk?

- -chris

--
C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps
--






Web app not starting after removing/installing service.bat

2019-06-04 Thread Victor WILLART
Hi, me again.

By trying to fix a problem I made it worse.
I removed the service.bat in ...\Apache Software Foundation\Tomcat 8.0\bin and 
installed it again following the commands. My service seems to work well after 
a reboot (can stop and start it at least) but my web app is not launching 
anymore.


I didn't change any other file between the moment my app was working and the 
moment it  wasn't anymore.


Did I miss something in the process ? All the links/IP to the server must have 
remained the same right ?


Regards

VW

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



RE: Language Settings Location

2019-05-29 Thread Victor WILLART
I see, first time trying to understand how a web app  works …


Thanks anyway and have a nice day !


De : André Warnier (tomcat) 
Envoyé : mercredi 29 mai 2019 11:50:20
À : users@tomcat.apache.org
Objet : Re: Language Settings Location

Hi. See at end.

On 29.05.2019 11:04, Victor WILLART wrote:
> Apache Tomcat 8.0 - Windows 64x
>
>   Hi, I just wanted to know if there is a way to figure out where is the 
> settings file which define the language of a web application using Apache 
> Tomcat 8.0>
>
>   Here is a part of a code that makes me think there is a way to change 
> language settings:
>
>
>
>   (function () {
>   var locale = (window.navigator.languages) ? 
> window.navigator.languages[0] :
>   (window.navigator.userLanguage || window.navigator.language); 
> //gets user's preffered language as dictated in settings
>   var supportedLocales = ['en-US', 'ko', 'zh-CN', 'it', 'fr', 'es', 'de', 
> 'ja', 'nl', 'pl', 'pt-BR', 'ru', 'sv', 'ar', 'da', 'fi', 'he', 'sl', 'tr'];
>   var scriptName = 
> document.getElementById("locale").getAttribute("rel-path");
>   var defaultScript = scriptName + 'default.properties';
>
>   And in the same folder I have access to properties files with the 
> translation of the app for these same languages.
>   Location of the folder: "C:\Program Files\Apache Software Foundation\Tomcat 
> 8.0\webapps\paDowntimeUapp-0.2.2\external-resources\i18n"
>
>   So I was wondering where this settings file could be, is it a JSON file ?
>
>   If you have any hints that could be pretty handy ! If you need more 
> information or think it is not clear enough please tell me.
>

I believe that this is a question for the supplier of that application (webapp)
"paDowntimeUapp" (?)

There is nothing in the Tomcat code or setup that influences the language in 
which an
application (a webapp) responds to the browser; that is done inside the 
application itself.

Said another way : the code which you show above is javascript code, probably 
found inside
the directory where your webapp "paDowntimeUapp" is installed under 
tomcat/webapps.
The same for those properties files.
These code/properties files have nothing to do with tomcat itself, and there is 
not much
that we can do to help, because we do not know this application and do not have 
its code.
(It is not that we do not want to help, it is just that we can't).



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



Language Settings Location

2019-05-29 Thread Victor WILLART
Apache Tomcat 8.0 - Windows 64x
 
 Hi, I just wanted to know if there is a way to figure out where is the 
settings file which define the language of a web application using Apache 
Tomcat 8.0>
 
 Here is a part of a code that makes me think there is a way to change language 
settings:
 
 
 
 (function () {
     var locale = (window.navigator.languages) ? window.navigator.languages[0] :
     (window.navigator.userLanguage || window.navigator.language); //gets 
user's preffered language as dictated in settings
     var supportedLocales = ['en-US', 'ko', 'zh-CN', 'it', 'fr', 'es', 'de', 
'ja', 'nl', 'pl', 'pt-BR', 'ru', 'sv', 'ar', 'da', 'fi', 'he', 'sl', 'tr'];
     var scriptName = 
document.getElementById("locale").getAttribute("rel-path");
     var defaultScript = scriptName + 'default.properties';
 
 And in the same folder I have access to properties files with the translation 
of the app for these same languages.
 Location of the folder: "C:\Program Files\Apache Software Foundation\Tomcat 
8.0\webapps\paDowntimeUapp-0.2.2\external-resources\i18n"
 
 So I was wondering where this settings file could be, is it a JSON file ?
 
 If you have any hints that could be pretty handy ! If you need more 
information or think it is not clear enough please tell me.
 
 Regards
 
 Victor

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