letsencrypt on ubuntu

2021-05-02 Thread dana whitelow

 
Please clarify.
I have the steps for deployment of letsencrypt for a www.example.com .
But I  have a dynamic dns domain say http://example.ddns.net. 
For step 3  when I do not use www in URL should it be   ?
certbot --Apache -d  example.ddns.net -d www.example.ddns.net

OR 

certbot --Apache -d example.ddns.net -d http://example.ddns.net 
OR 

certbot --Apache -d example.ddns.net -d  somethingelse.




1. add-apt-repository ppa:certbot/certbot
2. apt install python-certbot-Apache-y
3. certbot --Apache -d example.com -d www.example.com 
ll /etc/letsencrypt/live/example.com

 
danawhite...@aol.com


Emdbedded Tomcat Issues

2021-04-25 Thread dana whitelow
 
Embedded Tomcat 9.0.0.M6
  
  
  Issue 1
  //    ctx.setAltDDName( 
"/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml"); 
    ctx.getServletContext().setAttribute(Globals.ALT_DD_ATTR, 
"/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml");

    Neither of the above  programmatic settings seems to have any effect on 
the message INFO: No global web.xml found


INFO: Starting Servlet Engine: Apache Tomcat/9.0.0.M6
Apr 26, 2021 1:58:59 AM org.apache.catalina.startup.ContextConfig 
getDefaultWebXmlFragment    
INFO: No global web.xml found
Apr 26, 2021 1:58:59 AM org.omnifaces.ApplicationInitializer logOmniFacesVersion
INFO: Using OmniFaces version 3.6.1
Apr 26, 2021 1:58:59 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet Faces Servlet as unavailable
Apr 26, 2021 1:58:59 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet [Faces Servlet] in web application [] threw load() exception
java.util.MissingResourceException: Can't find javax.faces.LogStrings bundle 
from 

Issue 2

from error message I think tomcat is looking for the file 
WebMessages.properties and WebMessages_es.properties from the faces-config.xml
which I have in the src/main/resources/hacc/web/ and  in  directory 
src/main/resources/META-INF/resources/hacc/web ,
but still it is giving me the error 
SEVERE: Servlet [Faces Servlet] in web application [] threw load() exception
java.util.MissingResourceException: Can't find javax.faces.LogStrings bundle 
from 

at java.logging/java.util.logging.Logger.setupResourceInfo(Logger.java:2289)
    at java.logging/java.util.logging.Logger.(Logger.java:565)
    at 
java.logging/java.util.logging.LogManager.demandLogger(LogManager.java:522)
    

Re: version change failure

2021-04-11 Thread dana whitelow
Hi,I ran the migration tool against the sample.war 

./migrate.sh sample.war webapp.war
Performing migration from source 
[/home/dana/servers/jakartaee-migration-0.2.0/bin/sample.war] to destination 
[/home/dana/servers/jakartaee-migration-0.2.0/bin/webapp.war] with Jakarta EE 
specification profile [TOMCAT]
Migration starting for archive [sample.war] using streaming
Migration finished for archive [sample.war]
Migration completed successfully in [66] milliseconds

The migrated  webapp.war did work in tomcat  apache-tomcat-10.0.5

BUT the web.xml header  remained unchanged 
http://java.sun.com/xml/ns/j2ee;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
    version="2.4">

should be https://jakarta.ee/xml/ns/jakartaee;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee 
https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd;
  version="5.0">

Is it possible to get hold of sample application or archetype  showing  the 
handling of a non-static file like jsp or servlet  preferably .xhtml 
 welcome file in jakartee  even without the use of web.xml  for the welcome 
file because it is meant to be  optional  in jakartaee?
  
 
danawhite...@aol.com
 
 
-Original Message-
From: Усманов Азат Анварович 
To: Tomcat Users List ; dana whitelow 

Sent: Sat, 10 Apr 2021 20:59
Subject: RE: version change failure

Dana, Please see the migration -guide  
(https://tomcat.apache.org/migration-10.html)  here is a quote from it "


Apache Tomcat 10 supports the Jakarta Servlet 5.0, Jakarta Server Pages 3.0, 
Jakarta Expression Language 4.0, JakartaWebSocket 2.0 and Jakarta 
Authentication 2.0 
specifications<https://cwiki.apache.org/confluence/display/TOMCAT/Specifications>.

There is a significant breaking change between Tomcat 9.0.x and Tomcat 10.0.x. 
The Java package used by the specification APIs has changed from javax... to 
jakarta It will be necessary to recompile web applications against the new 
APIs. Alternatively, users can convert an existing WAR file from Java EE 8 to 
Jakarta EE 9 using the Apache Tomcat migration tool for Jakarta 
EE<https://tomcat.apache.org/download-migration.cgi>."

С уважением,
Азат Усманов
Отдел разработки программного обеспечения
Казанский инновационный университет имени В.Г.Тимирясова


От: dana whitelow 
Отправлено: 10 апреля 2021 г. 22:08
Кому: users@tomcat.apache.org 
Тема: version change failure

Hi ,
I changed tomcat version
from
8.5.38
to
10.0.5

The setup was running without web.xml and it was picking up index.jsp 
automatically
but with the new version there is a connection refused error.

what has changed  ?

Thanks

danawhite...@aol.com


Re: version change failure

2021-04-10 Thread dana whitelow
 
 Thanks. I used  the migration tool.  
The problem is still there. 
I believe this simple *.nix shell script can do a better job
 grep -RiIl 'javax' | xargs sed -i 's/javax/jakarta/g'

Quick grep explanation:

    -R - recursive search
    -i - case-insensitive
    -I - skip binary files (you want text, right?)
    -l - print a simple list as output. Needed for the other commands



danawhite...@aol.com
 
 
-Original Message-
From: Усманов Азат Анварович 
To: Tomcat Users List ; dana whitelow 

Sent: Sat, 10 Apr 2021 20:59
Subject: RE: version change failure

#yiv8603607814 P {margin-top:0;margin-bottom:0;}Dana, Please see the migration 
-guide  (https://tomcat.apache.org/migration-10.html)  here is a quote from it "
Apache Tomcat 10 supports the Jakarta Servlet 5.0, Jakarta Server Pages 3.0, 
Jakarta Expression Language 4.0, JakartaWebSocket 2.0 and Jakarta 
Authentication 2.0 specifications.There is a significant breaking change 
between Tomcat 9.0.x and Tomcat 10.0.x. The Java package used by the 
specification APIs has changed from javax... to jakarta It will be 
necessary to recompile web applications against the new APIs. Alternatively, 
users can convert an existing WAR file from Java EE 8 to Jakarta EE 9 using the 
Apache Tomcat migration tool for Jakarta EE."
С уважением,Азат Усманов 
Отдел разработки программного обеспечения
Казанский инновационный университет имени В.Г.Тимирясова 

От: dana whitelow 
Отправлено: 10 апреля 2021 г. 22:08
Кому: users@tomcat.apache.org 
Тема: version change failure Hi ,
I changed tomcat version
from
8.5.38
to
10.0.5
 
The setup was running without web.xml and it was picking up index.jsp 
automatically
but with the new version there is a connection refused error.
 
what has changed  ?
 
Thanks
 
danawhite...@aol.com


version change failure

2021-04-10 Thread dana whitelow
 Hi ,
I changed tomcat version
from
8.5.38
to
10.0.5
 
The setup was running without web.xml and it was picking up index.jsp 
automatically
but with the new version there is a connection refused error.
 
what has changed  ?
 
Thanks
 
danawhite...@aol.com