deploy with manager

2018-10-23 Thread Francesco Viscomi
Hi all,
I'm trying to deploy a war using the tomcat manager app; The war is not
very big, it is about 50 Mb;
But when i try to deploy on the browser apper:

* La pagina web
all'indirizzohttp://localhost:8080/manager/html/upload;jsessionid=20BC7D3BFF152FB581C5DFBDBDAB3DB6?org.apache.catalina.filters.CSRF_NONCE=3D101FAAB1809C15D3B77CFD4BECB6C8
potrebbe
essere temporaneamente non disponibile oppure è stata permanentemente
spostata a un nuovo indirizzo web. ERR_CONNECTION_ABORTED*



and on the manager log i read: the file exceed the maximum allowed;


In english  you can read that message in this way:
the page at the address
*http://localhost:8080/manager/html/upload;jsessionid=20BC7D3BFF152FB581C5DFBDBDAB3DB6?org.apache.catalina.filters.CSRF_NONCE=3D101FAAB1809C15D3B77CFD4BECB6C8
*


*can be not available it can be moved in other address.*

*thanks*

*really much*
-- 
Ing. Viscomi Francesco


Re: configuring jndi datasource

2018-08-01 Thread Francesco Viscomi
I do not understand unfortunately;
I have only one file under conf directory: contex.xml;
So every application installed on this instance of  tomcat can view the
resource; It is like I have configured the resource globally; I can
understand it, if every application has it's own context.xml file but
indeed I have just one context.xml file;

could you please explain to me maybe with an example why can be security
concerns?

thanks

2018-08-01 21:31 GMT+02:00 Mark Thomas :

> On 01/08/18 20:22, Francesco Viscomi wrote:
> > Hi all,
> > I'm using tomcat 8.5 and I need to configure a datasource in tomcat;
> >
> > If a configure it in the contex.xml file under conf directory using the
> tag
> >  everythings goes well.
> >
> > But if I configure it in the server.xml file under the conf directory,  a
> > message tell me that the resource that i have called jdbc/dataSource in
> not
> > bound in this context;
> >
> > Now I'm asking why, Tomcat cannot detect that the datasource is
> configured
> > in the server.xml file?
> > And why i should have to configure the resource in the context.xml under
> > the conf direcory?
>
> If you define a resource globally in server.xml you have to explicitly
> link it to the web application(s) you want to have access to it.
>
> Global resources are deliberately not visible to all web applications as
> in many installations that would create security concerns.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Ing. Viscomi Francesco


configuring jndi datasource

2018-08-01 Thread Francesco Viscomi
Hi all,
I'm using tomcat 8.5 and I need to configure a datasource in tomcat;

If a configure it in the contex.xml file under conf directory using the tag
 everythings goes well.

But if I configure it in the server.xml file under the conf directory,  a
message tell me that the resource that i have called jdbc/dataSource in not
bound in this context;

Now I'm asking why, Tomcat cannot detect that the datasource is configured
in the server.xml file?
And why i should have to configure the resource in the context.xml under
the conf direcory?

thanks really much




-- 
Ing. Viscomi Francesco


Re:

2018-08-01 Thread Francesco Viscomi
> I've configured tomcat with a host: MIosil-dd.net
>
>
> I can start the server, but when i try to reach it the server tell me:
>
> ERR_EMPTY_RESPONSE
>
>
> thanks really much
>
>
> foolowing the server.xml
>
>
> 
> 
>   
>SSLEngine="on" />
>   
> 
>   
>className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
>
>
> 
>
>
>   maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/servicesDatasource"
> password="oracle"
> type="javax.sql.DataSource"
> url="jdbc:oracle:thin:@sil-d.net:1521:SWIWEB" username="tikj"/>
>
>
>
>   
>
>
>
>   
>  enableLookups="false"
> protocol="AJP/1.3"
> minProcessors="5"
> maxProcessors="75"
> backlog="10"
> secure="false"
> scheme="http">
> 
>  enableLookups="false"
> secure="false"
> scheme="http">
> 
> 
>  deployXML="true"
> unpackWARs="true"
> xmlValidation="false"
> xmlNamespaceAware="false"
>     name="MIosil-dd.net">
>  reloadable="true"
>
> docBase="C:\Users\fviscomi\workspaceEsempi\svil\target\svilServices">
> 
>  className="org.apache.catalina.valves.AccessLogValve"
> prefix="Tomcat_RestFlexBen"
> directory="C:\pop"
> suffix=".access">
> 
> 
> 
>   
> 
>
>
>
>
>
>
> *Francesco Viscomi*
> Consoft Sistemi S.p.A.
> BU APPLICATIONS
> Via Candiani 73 - 20158 Milano
> cell. 3282863820
>
> Il messaggio (inclusi gli allegati) potrebbe contenere informazioni
> riservate rivolte ad uno specifico individuo e a determinate finalità, ed è
> protetto dalle vigenti normative. Nel caso in cui lo aveste ricevuto per
> errore, vogliate cortesemente avvertire il mittente e distruggerne il
> contenuto. Sono vietati la riproduzione, la distribuzione e l'attuazione
> anche parziale dei contenuti del presente messaggio in mancanza di espressa
> autorizzazione del mittente.
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law. If
> you are not the intended recipient, you should notify the sender and delete
> this message. You are hereby informed that any disclosure, copying, or
> distribution of this message, or the taking of any action based on it,
> without explicit consent of the sender is strictly.
>
>


Re: Need information

2018-07-24 Thread Francesco Viscomi
Ok thanks, i need to know for
Tomcat 7
And
Tomcat 8.5
Thanks

Il mar 24 lug 2018, 18:20 Christopher Schultz 
ha scritto:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Francesco,
>
> On 7/24/18 2:26 AM, Francesco Viscomi wrote:
> > Ok thanks, anyway is there a way to add a resource to the tomcat
> > classpath, i know that it is possibile because in my previous job i
> > 've used that :)
>
> Yes, this is possible, but the answer depends upon your Tomcat version.
>
> Please tell us your tomcat version.
>
> - -chris
>
> > Il mar 24 lug 2018, 00:00 M. Manna  ha
> > scritto:
> >
> >> This is not relevant to tomcat. you have to read how to configure
> >> spring application environment variables and classpath. Below are
> >> some examples, which you can read and configure yourself.
> >>
> >>
> >> https://docs.spring.io/spring-boot/docs/current/reference/html/boot-f
> eatures-external-config.html
> <https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html>
> >>
> >>
> >>
> https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#bo
> ot-features-external-config-application-property-files
> <https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-application-property-files>
> >>
> >> https://stackoverflow.com/questions/41461786/how-to-externalize-appli
> cation-properties-in-tomcat-webserver-for-spring
> <https://stackoverflow.com/questions/41461786/how-to-externalize-application-properties-in-tomcat-webserver-for-spring>
> >>
> >>
> >>
> Thanks,
> >>
> >> On Mon, 23 Jul 2018, 21:58 Francesco Viscomi,
> >>  wrote:
> >>
> >>> Because I need to add a folder (properties) under the tomcat
> >>> installation in order to read the properties in a file with the
> >>> following annotation (using spring)
> >>> @PropertySource("classpath:properties/application.properties");
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> 2018-07-23 22:21 GMT+02:00 M. Manna :
> >>>
> >>>> You should never modify them, unless you know precisely what
> >>>> you're
> >> doing
> >>>> it, and why.
> >>>>
> >>>> What ia your reason to modify them? What would you like to
> >>>> do?
> >>>>
> >>>> On Mon, 23 Jul 2018, 20:30 Francesco Viscomi,
> >>>> 
> >>> wrote:
> >>>>
> >>>>> Sir Manna you're right, but at the moment I cannot go
> >>>>> through debug; So if there is an explanation and why i
> >>>>> should modify them, it will
> >> be
> >>>> very
> >>>>> important to me.
> >>>>>
> >>>>> thanks
> >>>>>
> >>>>> 2018-07-23 18:06 GMT+02:00 M. Manna :
> >>>>>
> >>>>>> http://tomcat.apache.org/tomcat-8.5-doc/class-loader-
> >>>>>> howto.html#Class_Loader_Definitions
> >>>>>>
> >>>>>> Also, you should try and pay attention to Bootstrap.java
> >>>>>> file and
> >>> debug
> >>>>>> through the execution to understand how it's working.
> >>>>>>
> >>>>>>
> >>>>>> On 23 July 2018 at 17:03, Francesco Viscomi
> >>>>>> 
> >>>> wrote:
> >>>>>>
> >>>>>>> hi all In catalina.properties i find : common.loaders
> >>>>>>> serverr.loaders shared.loaders
> >>>>>>>
> >>>>>>> And i wasn t able to find out the meaning of that
> >>>>>>> variables, some
> >>> one
> >>>>> can
> >>>>>>> tell to me and if possibile also a link to the
> >>>>>>> documentation in
> >>> wich
> >>>>>> these
> >>>>>>> variable are treated
> >>>>>>>
> >>>>>>>
> >>>>>>> Thanks
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> -- Ing. Viscomi Francesco
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> -- Ing. Viscomi Francesco
> >>>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltXUcMACgkQHPApP6U8
> pFh7SQ//ermX00upIzMhYb/aeGGKBR2d115iKrr5PQj6xek6A3Z+CGWzBeuLhCCd
> Y3JgyDAQZ4Pdh0Ntxgs1qXDkYna+fMGHBu5cuZyXuJzBHrjk65HCYmMJ/LzRdGU+
> OVNZ4E42Jlecugbwbf5GBQ+JHnWRCZgdB0qvCOo07EXQFXerc0OaN2RtaCpbgcsB
> w7faSKxJwW5AiEWNGjTH460mR+AEqZDygCScV2dF2R8OVFtxmjtjM6vnbDrTAUL4
> 6SOz/X7yNva4zxxvIor9wLgSgoH3K/ZjEj4f4AmOw9fT6vHOvQoS/dxNS//FemF2
> qAK9S69ih1ZgNtYzri+aFTqr0C7yycvRmR82PgQ5NlYRSEXicSW6l9e9JnOjufYQ
> wcXz06aVeIaaJGLhn1TYhFukjkFqSohCRr5FTBhcjqgk8uuvKelp8oFdTLyWRwi1
> DsL5r7e8GhhJmN2pKuPqMSVJHpe9TrsL5JAa+kFSnqJkHKG45oVJrVtyiXMPfdnk
> ACAHO2a169GzHVIwlH3F+GEarnABZ8ptJiszFUSqEjz4I0sHSk1iHzPsyc55/Bad
> jKuUt6LJNFZEDBMZy7upo/Zp8DMX4qkXOh9Sr4KxgfndrRFn4oM63hz1NwOfqXgv
> p+b7vL7MNTF24fJHsm/oLRuCG8t8Ul4IKIHNfnOe7a4TiLPXt08=
> =VRnC
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Need information

2018-07-24 Thread Francesco Viscomi
Ok thanks, anyway is there a way to add a resource to the tomcat classpath,
i know that it is possibile because in my previous job i 've used that :)

Il mar 24 lug 2018, 00:00 M. Manna  ha scritto:

> This is not relevant to tomcat. you have to read how to configure spring
> application environment variables and classpath.
> Below are some examples, which you can read and configure yourself.
>
>
> https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
>
> https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-application-property-files
>
> https://stackoverflow.com/questions/41461786/how-to-externalize-application-properties-in-tomcat-webserver-for-spring
>
> Thanks,
>
> On Mon, 23 Jul 2018, 21:58 Francesco Viscomi,  wrote:
>
> > Because I need to add a folder (properties) under the tomcat installation
> > in order to read the properties in a file with the following annotation
> > (using spring)
> > @PropertySource("classpath:properties/application.properties");
> >
> >
> >
> >
> >
> > 2018-07-23 22:21 GMT+02:00 M. Manna :
> >
> > > You should never modify them, unless you know precisely what you're
> doing
> > > it, and why.
> > >
> > > What ia your reason to modify them? What would you like to do?
> > >
> > > On Mon, 23 Jul 2018, 20:30 Francesco Viscomi, 
> > wrote:
> > >
> > > > Sir Manna you're right, but at the moment I cannot go through debug;
> > > > So if there is an explanation and why i should modify them, it will
> be
> > > very
> > > > important to me.
> > > >
> > > > thanks
> > > >
> > > > 2018-07-23 18:06 GMT+02:00 M. Manna :
> > > >
> > > > > http://tomcat.apache.org/tomcat-8.5-doc/class-loader-
> > > > > howto.html#Class_Loader_Definitions
> > > > >
> > > > > Also, you should try and pay attention to Bootstrap.java file and
> > debug
> > > > > through the execution to understand how it's working.
> > > > >
> > > > >
> > > > > On 23 July 2018 at 17:03, Francesco Viscomi 
> > > wrote:
> > > > >
> > > > > > hi all
> > > > > > In catalina.properties i find :
> > > > > > common.loaders
> > > > > > serverr.loaders
> > > > > > shared.loaders
> > > > > >
> > > > > > And i wasn t able to find out the meaning of that variables, some
> > one
> > > > can
> > > > > > tell to me and if possibile also a link to the documentation in
> > wich
> > > > > these
> > > > > > variable are treated
> > > > > >
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Ing. Viscomi Francesco
> > > >
> > >
> >
> >
> >
> > --
> > Ing. Viscomi Francesco
> >
>


Re: Need information

2018-07-23 Thread Francesco Viscomi
Hi Christopher,
indeed i need to have that file externaly from the war; I will not forget
to modify catalina.properties, because this operation will be done only one
time. So i need to adding tha resource in the classpath of tomcat.

2018-07-23 23:33 GMT+02:00 Christopher Schultz :

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Francesco,
>
> On 7/23/18 4:58 PM, Francesco Viscomi wrote:
> > Because I need to add a folder (properties) under the tomcat
> > installation in order to read the properties in a file with the
> > following annotation (using spring)
> > @PropertySource("classpath:properties/application.properties");
>
> Why not put that file under your application's
> WEB-INF/classes/properties/application.properties?
>
> Or, even better, add a  element to your application's
> META-INF/context.xml
>
> Changing the classpath by using those properties is probably the worst
> way you could accomplish what you are trying to do.
>
> Why is it bad? Because it's not portable, even across two separate
> Tomcat installations. If you forget to modify catalina.properties in
> the target of a move, stuff stops working. But if you bundle that file
> with your application, it will work no matter where you deploy it.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltWSbkACgkQHPApP6U8
> pFgNaQ//Yy8qmKzuzSigPRREWDxbs8yA35SSy8z68wvtxltEj9dWOteq83khisI1
> np0rJIErx+5kt+h7LzvpHh17AnqFgOBzo8R5/2+tTR3hS4xo42jQ9DnW+jgAZ7KX
> 9Klx0E9e+Jgu1FMWdCMLb3PR3RXWh0LpFW+QyJZ9S7FvEYZXZrtVcF42cLVH0Hi7
> cBOd3MxxSsn/9Bmd3R58sszNzCN2fvPSpZN7YIgD0bSju2DsgG+hibDb1OVW6idl
> cUS7J1jurCmoot25h0m1Y0bIOgr383lIAhvtJYF32g9qsVi/ocQx7O4BOh6xiViC
> hzQycE4Nv9w7KUMOXkdh6Tbg6Ycz7kgpG9NaCe00ARDMAG0jm4S1xAbEN59FEK+o
> CVUP+Ry2dAczy3e0nAfHpZ415ohR2x1/tqtNMfQrvaXPFmQ5Hv2U11ZbEXfFBDbM
> nTHm4wVdKpq/Stea3cC3YvvO/fMhuKhQW53iovgvP8Dwr7NKGXxsz43CLJE14Svd
> ir8cJpSqUddFjAPYDiwbXwO4H+WER57m6+2vFD7vhXXTnCJ/F45bm6Zyeoo1OweH
> bAt4+OncGXr7GRyo78oWTRK7ee2oqFPenCSM4o5yTPuA4COXhb5rKnaNquuXcXMr
> J96NiVecTiF79ugUcZhtTl/iyLpX4j/OZW5RFe4pOyyBc8H/klQ=
> =OdyE
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Ing. Viscomi Francesco


Re: Need information

2018-07-23 Thread Francesco Viscomi
Because I need to add a folder (properties) under the tomcat installation
in order to read the properties in a file with the following annotation
(using spring)
@PropertySource("classpath:properties/application.properties");





2018-07-23 22:21 GMT+02:00 M. Manna :

> You should never modify them, unless you know precisely what you're doing
> it, and why.
>
> What ia your reason to modify them? What would you like to do?
>
> On Mon, 23 Jul 2018, 20:30 Francesco Viscomi,  wrote:
>
> > Sir Manna you're right, but at the moment I cannot go through debug;
> > So if there is an explanation and why i should modify them, it will be
> very
> > important to me.
> >
> > thanks
> >
> > 2018-07-23 18:06 GMT+02:00 M. Manna :
> >
> > > http://tomcat.apache.org/tomcat-8.5-doc/class-loader-
> > > howto.html#Class_Loader_Definitions
> > >
> > > Also, you should try and pay attention to Bootstrap.java file and debug
> > > through the execution to understand how it's working.
> > >
> > >
> > > On 23 July 2018 at 17:03, Francesco Viscomi 
> wrote:
> > >
> > > > hi all
> > > > In catalina.properties i find :
> > > > common.loaders
> > > > serverr.loaders
> > > > shared.loaders
> > > >
> > > > And i wasn t able to find out the meaning of that variables, some one
> > can
> > > > tell to me and if possibile also a link to the documentation in wich
> > > these
> > > > variable are treated
> > > >
> > > >
> > > > Thanks
> > > >
> > >
> >
> >
> >
> > --
> > Ing. Viscomi Francesco
> >
>



-- 
Ing. Viscomi Francesco


Re: Need information

2018-07-23 Thread Francesco Viscomi
Sir Manna you're right, but at the moment I cannot go through debug;
So if there is an explanation and why i should modify them, it will be very
important to me.

thanks

2018-07-23 18:06 GMT+02:00 M. Manna :

> http://tomcat.apache.org/tomcat-8.5-doc/class-loader-
> howto.html#Class_Loader_Definitions
>
> Also, you should try and pay attention to Bootstrap.java file and debug
> through the execution to understand how it's working.
>
>
> On 23 July 2018 at 17:03, Francesco Viscomi  wrote:
>
> > hi all
> > In catalina.properties i find :
> > common.loaders
> > serverr.loaders
> > shared.loaders
> >
> > And i wasn t able to find out the meaning of that variables, some one can
> > tell to me and if possibile also a link to the documentation in wich
> these
> > variable are treated
> >
> >
> > Thanks
> >
>



-- 
Ing. Viscomi Francesco


Need information

2018-07-23 Thread Francesco Viscomi
hi all
In catalina.properties i find :
common.loaders
serverr.loaders
shared.loaders

And i wasn t able to find out the meaning of that variables, some one can
tell to me and if possibile also a link to the documentation in wich these
variable are treated


Thanks


Re: using filter on web.xml

2016-05-15 Thread Francesco Viscomi
Thanks Andrè.
the login page indeed has nothing inside, i just want to activate the
filter, because inside the filter there is the logic to authenticate the
user;
Anyway i really appreciate your suggestion.

Francesco

2016-05-15 14:09 GMT+02:00 André Warnier (tomcat) <a...@ice-sa.com>:

> On 15.05.2016 13:58, Francesco Viscomi wrote:
>
>> Hi all,
>> I've declared a filter in web.xm as:
>>
>> 
>>  ShibbolethHeaderReaderFilter
>>  ShibbolethHeaderReaderFilter
>> IdPC
>>  
>>
>>
>> it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc
>>
>>  
>>  configurationFile
>>
>> resources/shibboleth-spp-config.xml
>>  
>>  
>>
>>  
>>  ShibbolethHeaderReaderFilter
>>  /protected/*
>>  
>>
>>
>>
>>
>> where it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc
>> is a jar file that i don't know the source;
>>
>>
>> Now i do i call as:
>> http://localhost:8080/srlo/protected/login.html
>>
>> and i get HTTP Status 404 the resource is not available.
>>
>>
>>
>>
>> My question is, why the filter do not activated: in the url the is the
>> word
>> protect and the mapping of the filter is
>> /protected/*
>>
>>
> I don't know the details of it, and not much at all about Shibollet, but
> usually in an authentication scenario which involves a login page to
> authenticate a user, one would not include the login page in question, in
> the area that is protected by the authentication.
> This would ususally result in an endless logic loop.
> Think about it.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Ing. Viscomi Francesco


using filter on web.xml

2016-05-15 Thread Francesco Viscomi
Hi all,
I've declared a filter in web.xm as:


ShibbolethHeaderReaderFilter
ShibbolethHeaderReaderFilter
IdPC


it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc


configurationFile

resources/shibboleth-spp-config.xml




ShibbolethHeaderReaderFilter
/protected/*





where it.loset.idpcp.ri.filters.ShibbolethHeaderReaderFilterIdpc
is a jar file that i don't know the source;


Now i do i call as:
http://localhost:8080/srlo/protected/login.html

and i get HTTP Status 404 the resource is not available.




My question is, why the filter do not activated: in the url the is the word
protect and the mapping of the filter is
/protected/*





-- 
Ing. Viscomi Francesco


A bug on tomcat

2015-04-06 Thread Francesco Viscomi
Hi all,
I'm developing an application on Eclipse. In development mode where i use
Jetti as application server it works right, while when build a war and
deploy it to Tomcat it do not work anymore.

I'm using sencha and in particular i use
com.sencha.gxt.data.shared.TreStore
https://www.sencha.com/forum/showthread.php?299823-com.sencha.gxt.data.shared.TreeStore-bugp=1095183#post1095183

While Tomcat is not able to understand in a right way what GXT produce??

thanks


-- 
Ing. Viscomi Francesco


start tomcat 7

2014-06-27 Thread Francesco Viscomi
hi all
I'm using windows 8;

java:
java version 1.7.0_60
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

and tomcat 7:
Apache Tomcat/7.0.35

As reported below

Server Information  Tomcat Version JVM Version JVM Vendor OS Name OS Version OS
Architecture Hostname IP Address  Apache Tomcat/7.0.35 1.7.0_60-b19 Oracle
Corporation Windows 8 6.2 amd64



I'm asking why i get the following error and how to solve it;

thanks a lot

This is the error:

java.lang.UnsatisfiedLinkError:
D:\swPCvale\lispa-tomcat-release-2.0.0\server\bin\tcnative-1.dll: Can't
load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.apache.tomcat.jni.Library.init(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:180)
at
org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:85)
at
org.apache.catalina.connector.Connector.setProtocol(Connector.java:595)
at org.apache.catalina.connector.Connector.init(Connector.java:69)
at
org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1342)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2770)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:610)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Jun 27, 2014 11:37:03 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Pro
.7.0_60\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program
Files\Java\jdk1.7.0_60/bin;C:\OracleHome2\product\11.2.0\client_1\BIN;C:\Orac
.0\client_1\bin;C:\Oracle_Home;C:\Oracle_Home\bin;C:\Users\francesco\ProgrammiInstallati\clientOracle\ODAC1120320Xcopy_32bit\instantclient_11_2;C:\Program
orporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wb
32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows
Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Int
nt Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\DAL;C:\Program Files 

Re: start tomcat 7

2014-06-27 Thread Francesco Viscomi
thanks


2014-06-27 14:27 GMT+02:00 P Manchanda manchan...@yahoo.com.invalid:

 Hi Francesco Viscomi,

 The following thread might help you to solve the issue:

 http://www.coderanch.com/t/506814/Tomcat/load-IA-bit-dll-AMD

 ___
 Thks  brgds
 P Manchanda



 
 On Fri, 27/6/14, Francesco Viscomi fvisc...@gmail.com wrote:

  Subject: start tomcat 7
  To: Tomcat Users List users@tomcat.apache.org
  Date: Friday, 27 June, 2014, 15:15

  hi all
  I'm using windows 8;

  java:
  java version 1.7.0_60
  Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
  Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed
  mode)

  and tomcat 7:
  Apache Tomcat/7.0.35

  As reported below

  Server Information  Tomcat Version JVM Version JVM
  Vendor OS Name OS Version OS
  Architecture Hostname IP Address  Apache Tomcat/7.0.35
  1.7.0_60-b19 Oracle
  Corporation Windows 8 6.2 amd64



  I'm asking why i get the following error and how to solve
  it;

  thanks a lot

  This is the error:

  java.lang.UnsatisfiedLinkError:
  D:\swPCvale\lispa-tomcat-release-2.0.0\server\bin\tcnative-1.dll:
  Can't
  load IA 32-bit .dll on a AMD 64-bit platform
  at
  java.lang.ClassLoader$NativeLibrary.load(Native Method)
  at
  java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
  at
  java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
  at
  java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
  at
  java.lang.Runtime.loadLibrary0(Runtime.java:849)
  at
  java.lang.System.loadLibrary(System.java:1088)
  at
  org.apache.tomcat.jni.Library.init(Library.java:42)
  at
  org.apache.tomcat.jni.Library.initialize(Library.java:174)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at

  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at
  java.lang.reflect.Method.invoke(Method.java:606)
  at

  
 org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:180)
  at

  
 org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:85)
  at
  org.apache.catalina.connector.Connector.setProtocol(Connector.java:595)
  at
  org.apache.catalina.connector.Connector.init(Connector.java:69)
  at

  
 org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)
  at
  org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
  at

  
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
  at

  
 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
  at

  
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1342)
  at

  
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2770)
  at

  
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
  at

  
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
  at

  
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
  at

  
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
  at

  
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
  at

  
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
  at

  
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
  at
  org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
  at
  org.apache.catalina.startup.Catalina.load(Catalina.java:610)
  at
  org.apache.catalina.startup.Catalina.load(Catalina.java:658)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at

  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at
  java.lang.reflect.Method.invoke(Method.java:606)
  at
  org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
  at
  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
  Jun 27, 2014 11:37:03 AM
  org.apache.catalina.core.AprLifecycleListener init
  INFO: The APR based Apache Tomcat Native library which
  allows optimal
  performance in production environments was not found

Re: starting tomcat

2014-06-12 Thread Francesco Viscomi
Hi,
in this other case tomcat has started without the .keystore file:

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start
failed: java.io.FileNotFoundException: C:\Users\francesco\.keystore (The
system cannot find the fil
e specified)
at
org.apache.catalina.connector.Connector.start(Connector.java:1097)
at
org.apache.catalina.core.StandardService.start(StandardService.java:457)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
INFO: Server startup in 10657 ms


2014-06-12 4:20 GMT+02:00 tomcat 1429868...@qq.com:


 Check this file C:\Users\francesco\.keystore exist or not ?

 在 2014年6月11日,下午9:30,Francesco Viscomi fvisc...@gmail.com 写道:

  C:\Users\francesco\.keystore




-- 
Ing. Viscomi Francesco


starting tomcat

2014-06-11 Thread Francesco Viscomi
I'm using tomcat 5.5.25 on a windows machine;

Start the script located in bin (startup.bat):
On the screen appear that the server is running as reported but when i try
to get the console at http://localhost:8081/
i just see a white page;

can some one telling me ho to solve this issue;




Listening for transport dt_socket at address: 8000
11-Jun-2014 15:20:31 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0_37\bi
n;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\OracleHome2\product\11.2.0\client_1\BIN;C:\OracleHome2\product\11.2.0\client_1\bin;C:\Oracle_Home;C:\Oracle_Home\bi
n;C:\Users\francesco\ProgrammiInstallati\clientOracle\ODAC1120320Xcopy_32bit\instantclient_11_2;C:\Program
Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\I
ntel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86
)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files (x86)\
Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\P
rogram Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Enterprise Backup 3.8.2;.
11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:120)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:284)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11-Jun-2014 15:20:31 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
cannot find the file specified)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11-Jun-2014 15:20:31 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 500 ms
11-Jun-2014 15:20:32 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-Jun-2014 15:20:32 

Re: 回复:starting tomcat

2014-06-11 Thread Francesco Viscomi
No it dosn't exist;
but other time i've ignored that message and I was able to reach the
console;



2014-06-11 15:39 GMT+02:00 naouguh_tomcat 1429868...@qq.com:

 Check the file C:\Users\francesco\.keystore  exist or not ?




 -- 原始邮件 --
 发件人: Francesco Viscomi;fvisc...@gmail.com;
 发送时间: 2014年6月11日(星期三) 晚上9:30
 收件人: Tomcat Users Listusers@tomcat.apache.org;

 主题: starting tomcat



 I'm using tomcat 5.5.25 on a windows machine;

 Start the script located in bin (startup.bat):
 On the screen appear that the server is running as reported but when i try
 to get the console at http://localhost:8081/
 i just see a white page;

 can some one telling me ho to solve this issue;




 Listening for transport dt_socket at address: 8000
 11-Jun-2014 15:20:31 org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance in
 production environments was not found on the java.library.path: C:\Program
 Files\Java\jdk1.6.0_37\bi

 n;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\OracleHome2\product\11.2.0\client_1\BIN;C:\OracleHome2\product\11.2.0\client_1\bin;C:\Oracle_Home;C:\Oracle_Home\bi

 n;C:\Users\francesco\ProgrammiInstallati\clientOracle\ODAC1120320Xcopy_32bit\instantclient_11_2;C:\Program
 Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\I
 ntel\iCLS Client\;C:\Program Files\Intel\iCLS

 Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86
 )\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine
 Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
 Components\IPT;C:\Program Files (x86)\
 Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
 (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
 (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\P
 rogram Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program
 Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Enterprise Backup
 3.8.2;.
 11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8081
 11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
 SEVERE: Error initializing endpoint
 java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
 cannot find the file specified)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
 at

 org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:284)
 at

 org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
 at

 org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
 at

 org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
 at

 org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
 at

 org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
 at

 org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
 at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
 at

 org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
 11-Jun-2014 15:20:31 org.apache.catalina.startup.Catalina load
 SEVERE: Catalina.start
 LifecycleException:  Protocol handler initialization failed:
 java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
 cannot find the file specified)
 at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
 at

 org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

Re: where find documentation

2014-05-21 Thread Francesco Viscomi
Thanks


2014-05-16 22:27 GMT+02:00 Christopher Schultz ch...@christopherschultz.net
:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Francesco,

 On 5/16/14, 10:01 AM, Арсений Зинченко wrote:
  I used this one:
 
  http://wiki.metawerx.net/wiki/Web.xml
 
 
  2014-05-15 16:05 GMT+03:00 Francesco Viscomi fvisc...@gmail.com:
 
  Hi all, i'm try to find a documentation that describe every tag
  inside the web.xml file, but i wasn't able to find anything about
  that on
  http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
 
 
  someone can help me? thanks in advance; Francesco Italy

 There's always the servlet specification itself. There is a reference
 at the end that covers most -- but not all - of the elements. There is
 also a significant amount of documentation in the XML schemas. You
 should check those out, too.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQIcBAEBCAAGBQJTdnSmAAoJEBzwKT+lPKRY0koP/142leN00V+960gu7HMIb0ke
 tX1hnY7WK0CGdjRi+YC9LvEqmyxn9EThb3MpTn/0eQOIMEOqBYSWJd3mXbEvdZ9P
 U9Zy/FlWsdUYoJ3oJ9VdrI5OyvYrvl0JwqcToTBXlhFk1ukLkBOjANmqr+/egNYA
 rjvuuWpoe10OvH1rGfWch7khGnLFCRYgiVy+eBvYojmglcla/2/Jfs8Nyy0At1jk
 pVOi7K4qwBm6FCZqCcyWJmcVj7p8+j1P6HFRLi7i8B5IM4Rd7aluEyoGISnmwLy4
 dGLWkoxlbw2ONAM9tLFPNBSmE3qXu613/rwlVlxadDJcWjUFBb2tERKQyrxN66VJ
 AEjle3BIjS4YY0Xs4QxVq+8ec/givdDHVwHyGUDrNbBMHH6oJIVSR9IXRTMtDroj
 I/Xk6ft1sIVYxOGIQpbmcsevYYvupdS1A9n4Q8WOm+tSonrj4YJPfD4JUXUo7S0Y
 nCShmCqfFCqBZF2bk7k4iMr+b31tdUDutEKI92Ol6r16nLuNFxNIhjMSLopvjXlj
 9S9RCkXMmpUxs7WhkmYitJqz3nQ4/cCKLQH5ofXXh3zu9vba0Cdjsd6EFrsdzMTF
 yuZbzExW0zcnLziWpRfl/tpaqC4Y+3wUljJ4vBqcRfz9O/fkd4YVObkYzFqO4045
 QssBF1LlFn9vTTcu+wEk
 =P0L2
 -END PGP SIGNATURE-

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




-- 
Ing. Viscomi Francesco


where find documentation

2014-05-16 Thread Francesco Viscomi
Hi all,
i'm try to find a documentation that describe every tag inside the web.xml
file, but i wasn't able to find anything about that on
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


someone can help me?
thanks in advance;
Francesco
Italy


configuring a combined realm

2014-04-01 Thread Francesco Viscomi
I'm unable to understand what's wrong with this configuration:

in the server.xml file I defined that as a resource i want to use
conf/tomcat-users.xml (this authentication is just for tomcat manager);
While to authenticated user on my application i define in the context.xml
file as a realm a database;
In other words I don't want to modify server.xml file to make
authentication on my app;


server.xml  file:

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN
Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
Listener className=org.apache.catalina.core.JasperListener /
Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
Listener
className=org.apache.catalina.core.ThreadLocalLeakPreventionListener /


GlobalNamingResources
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /

/GlobalNamingResources



Service name=Catalina
Connector port=8080 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
Engine name=Catalina defaultHost=localhost
Host name=localhost  appBase=webapps unpackWARs=true
autoDeploy=true

Realm
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

Valve
className=org.apache.catalina.valves.AccessLogValve directory=logs
prefix=localhost_access_log. suffix=.txt
pattern=%h %l %u %t quot;%rquot; %s %b /
/Host
/Engine
/Service
/Server



context.xml file
===
?xml version=1.0 encoding=UTF-8?
Context antiJARLocking=true path=/SitoAziendale


Resource name=jdbc/PoolConnessioni auth=Container
type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=utentedb password=utentedb
driverClassName=com.mysql.jdbc.Driver

url=jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull/



Realm className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/PoolConnessioni
userTable=Dipendente userNameCol=username userCredCol=password
userRoleTable=ruoliUtente roleNameCol=nomeRuolo/


/Context



thanks;


Re: configuring a combined realm

2014-04-01 Thread Francesco Viscomi
thanks Mark,
with localDataSource=true it works;

for Daniel, thanks to you too;
I'm using tomcat 7; I was able to log to tomcat manager, but i wasn't able
to log to my application (adding localDataSource=true) it works right;

thanks again



2014-04-01 18:01 GMT+02:00 Mark Thomas ma...@apache.org:

 On 01/04/2014 13:15, Francesco Viscomi wrote:
  I'm unable to understand what's wrong with this configuration:

 You need to read the Realm documentation more carefully.

  context.xml file
 
 ===
  ?xml version=1.0 encoding=UTF-8?
  Context antiJARLocking=true path=/SitoAziendale
 
 
  Resource name=jdbc/PoolConnessioni auth=Container
  type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=utentedb password=utentedb
  driverClassName=com.mysql.jdbc.Driver
 
 
 url=jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull/
 
 
 
  Realm className=org.apache.catalina.realm.DataSourceRealm
  dataSourceName=jdbc/PoolConnessioni
  userTable=Dipendente userNameCol=username
 userCredCol=password
  userRoleTable=ruoliUtente roleNameCol=nomeRuolo/
 
 
  /Context

 Take a look at the localDataSource attribute of the DataSourceRealm.

 Mark

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




-- 
Ing. Viscomi Francesco


configuring tomcat realm

2013-08-30 Thread Francesco Viscomi
Hi,

I've a tomcat-users.xml file in which user Francesco should can access to
http://localhost:8080/manager: 

I also have a server.xml that in the tag  GlobalNamingResources has
declared 2 resource, one is for accessing to http://localhost:8080/manager
and the other is for accessing via JDBC to a protected area in my
application.

Also I nested in the host tag the realm. 

I've attached both tomcat_user.xml and server.xml at the and of this mail.

 

 

When I try to start tomcat, with startup.bat I get the following error:

 




---

GRAVE: Failed to load keystore type JKS with path C:\Documents and
Settings\francesco/.keystore due to C:\Documents and
Settings\francesco\.keystore (Impossibile trovare il file specificato)

java.io.FileNotFoundException: C:\Documents and Settings\francesco\.keystore
(Impossibile trovare il file specificato)

at java.io.FileInputStream.open(Native Method)

 

but the server starts the same.

 

When I try to access http://localhost:8080/manager with user: francesco and
passwd: francesco

 

  I cannot access to the manager, I'm asking where I made a mistake.

 

 

Thanks really much

Francesco

Italy

 

 

 

 

 

Tomcat_user.xml

?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
tomcat-users
!--
  NOTE:  By default, no user is included in the manager-gui role required
  to operate the /manager/html web application.  If you wish to use this
app,
  you must define such a user - the username and password are arbitrary.
--
!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  !.. .. that surrounds them.
--

  role rolename=tomcat/
  role rolename=role1/
  role rolename=AdminRole/
  role rolename=UserRole/
  user username=admin password=adminpw1 role=AdminRole/
  user username=user password=userpw01 role=UserRole/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user password=francesco roles=manager-script,manager-gui,admin
username=francesco/
/tomcat-users



 

 

 

Server.xml:

 

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.core.ThreadLocalLeakPreventionListener /
  GlobalNamingResources
Resource name=jdbc/PoolConnessioni auth=Container
type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=utentedb password=utentedb
driverClassName=com.mysql.jdbc.Driver
 
url=jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNul
l/  

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /  
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
  maxThreads=150 scheme=https secure=true
  clientAuth=false sslProtocol=TLS /

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.LockOutRealm
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase/
  /Realm
  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
Realm 

RE: configuring tomcat realm

2013-08-30 Thread Francesco Viscomi
Thanks really much.

Francesco


-Original Message-
From: Daniel Mikusa [mailto:dmik...@gopivotal.com] 
Sent: venerdì 30 agosto 2013 20.20
To: Tomcat Users List
Subject: Re: configuring tomcat realm

On Aug 30, 2013, at 12:13 PM, Francesco Viscomi fvisc...@gmail.com wrote:

 Hi,
 
 I've a tomcat-users.xml file in which user Francesco should can access to
 http://localhost:8080/manager: 
 
 I also have a server.xml that in the tag  GlobalNamingResources has
 declared 2 resource, one is for accessing to http://localhost:8080/manager
 and the other is for accessing via JDBC to a protected area in my
 application.
 
 Also I nested in the host tag the realm. 
 
 I've attached both tomcat_user.xml and server.xml at the and of this mail.

 When I try to start tomcat, with startup.bat I get the following error:
 






 ---
 
 GRAVE: Failed to load keystore type JKS with path C:\Documents and
 Settings\francesco/.keystore due to C:\Documents and
 Settings\francesco\.keystore (Impossibile trovare il file specificato)
 
 java.io.FileNotFoundException: C:\Documents and
Settings\francesco\.keystore
 (Impossibile trovare il file specificato)
 
at java.io.FileInputStream.open(Native Method)

This is saying that the default keystore could not be loaded.  It's trying
to load the default keystore because you've not specified on in your HTTPS
connector.  You'll either want to create a default keystore or set
keystoreFile on the Connector / tag.

  https://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support

 
 but the server starts the same.
 
 When I try to access http://localhost:8080/manager with user: francesco
and
 passwd: francesco
 
  I cannot access to the manager, I'm asking where I made a mistake.

See below.

 
 Thanks really much
 
 Francesco
 
 Italy
 
 Tomcat_user.xml
 
 ?xml version='1.0' encoding='utf-8'?
 !--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
 
  http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 --
 tomcat-users
 !--
  NOTE:  By default, no user is included in the manager-gui role required
  to operate the /manager/html web application.  If you wish to use this
 app,
  you must define such a user - the username and password are arbitrary.
 --
 !--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  !.. .. that surrounds them.
 --
 
  role rolename=tomcat/
  role rolename=role1/
  role rolename=AdminRole/
  role rolename=UserRole/
  user username=admin password=adminpw1 role=AdminRole/
  user username=user password=userpw01 role=UserRole/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user password=francesco roles=manager-script,manager-gui,admin
 username=francesco/
 /tomcat-users
 
 Server.xml:
 
 ?xml version='1.0' encoding='utf-8'?
 Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
 className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
 className=org.apache.catalina.core.ThreadLocalLeakPreventionListener /
  GlobalNamingResources
Resource name=jdbc/PoolConnessioni auth=Container
 type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=utentedb password=utentedb
 driverClassName=com.mysql.jdbc.Driver
 

url=jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNul
 l/  
 
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080 protocol=HTTP/1.1

RE: FW: configuring realm UserDatabase do not works

2013-08-13 Thread Francesco Viscomi
Thanks really much.
Francesco

-Original Message-
From: Ognjen Blagojevic [mailto:ognjen.d.blagoje...@gmail.com] 
Sent: martedì 13 agosto 2013 9.30
To: Tomcat Users List
Subject: Re: FW: configuring realm UserDatabase do not works

Francesco,

On 13.8.2013 1:01, Francesco Viscomi wrote:
 When I try to access the protect resource I get:
(...)
 HTTP Status 403 - Access to the requested resource has been denied

Error 403 means that user is authenticatied but not authorized (e.g. 
username and password are correct, but something is wrong with 
configuration of roles).


 1)  Adding the following statement to the the tomcat-user.xml:
 role rolename=UserRole/
 user username=user password=uuu role=UserRole/

Here is your problem. Name of the attribute for user tag is roles, 
not role. You should change that to:

   role rolename=UserRole/
   user username=user password=uuu roles=UserRole/


BTW, this is tricky to notice, since Tomcat will not validate file 
tomcat-users.xml against a schema.

-Ognjen


-
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: configuring realm UserDatabase do not works

2013-08-12 Thread Francesco Viscomi
Some one can help me please!

Thanks anyway

Francesco

Italy

 

 

From: Francesco Viscomi [mailto:fvisc...@gmail.com] 
Sent: martedì 13 agosto 2013 0.54
To: 'users-ow...@tomcat.apache.org'
Subject: configuring realm UserDatabase do not works

 

Hi all,

I’ve spent a lot of time to configure tomcat on using realm UserDatabase
(that is tomcat-users.xml) without success.

When I try to access the protect resource I get:

 

HTTP Status 403 - Access to the requested resource has been denied

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

 

Apache Tomcat/7.0.27

 

 

I’m using netbeans 7.3 with this characteristic:

 

Product Version: NetBeans IDE 7.3 (Build 201306052037) 

Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11 

Runtime: Java(TM) SE Runtime Environment 1.6.0_25-b06 

System: Windows XP version 5.1 running on x86; Cp1252; it_IT (nb) 

User directory: C:\Documents and Settings\francesco\Dati
applicazioni\NetBeans\7.3 

Cache directory: C:\Documents and Settings\francesco\Impostazioni
locali\Dati applicazioni\NetBeans\Cache\7.3 

 

 

I also tried on both tomcat 7.0.27.0 and tomcat 7.0.34.0.

 

These are the step I did:

1)  Adding the following statement to the the tomcat-user.xml:



role rolename=UserRole/

user username=user password=uuu role=UserRole/



 

2) take sure that on the server.xml the following statement are present:

 



GlobalNamingResources

Resource name=UserDatabase auth=Container

  type=org.apache.catalina.UserDatabase

  description=User database that can be updated and saved

  factory=org.apache.catalina.users.MemoryUserDatabaseFactory

  pathname=conf/tomcat-users.xml /

/GlobalNamingResources



 



Realm className=org.apache.catalina.realm.LockOutRealm

Realm className=org.apache.catalina.realm.UserDatabaseRealm

  resourceName=UserDatabase/

/Realm



 

3)Configuring web.xml (inside the WEB-INF directory) as following:

 



?xml version=1.0 encoding=UTF-8?

web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

session-config

session-timeout

30

/session-timeout

/session-config

welcome-file-list

welcome-fileindex.jsp/welcome-file

/welcome-file-list

security-constraint

display-nameVincoloUtente/display-name

web-resource-collection

web-resource-namearea protetta/web-resource-name

description/

url-pattern/CartellaProtetta/*/url-pattern

/web-resource-collection

auth-constraint

description/

role-nameUserRole/role-name

/auth-constraint

/security-constraint

login-config

auth-methodFORM/auth-method

form-login-config

form-login-page/login.jsp/form-login-page

form-error-page/error.jsp/form-error-page

/form-login-config

/login-config

security-role

descriptionUtenti che hanno questo ruolo (user) possono accedere all'area
protetta/description

role-nameUserRole/role-name

/security-role

/web-app



 

 

4) creating the file index.jsp,login.jsp and error.jsp.

 

5)creating the path and file at “web
pages/CartellaProtetta/fileProtetto.html”

 

 

Is this a bug on tomcat or I’m making some mistake?

 

Thanks really much

Francesco

Italy