AutoDeploy | automated deployment system which is similar to AWS | Continuous Deployment library
kandi X-RAY | AutoDeploy Summary
kandi X-RAY | AutoDeploy Summary
An automated deployment system which is similar to AWS CodeDeploy but is hostable inside an enterprise. The target is to minimize the manual prone errors of code deployment.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AutoDeploy
AutoDeploy Key Features
AutoDeploy Examples and Code Snippets
Community Discussions
Trending Discussions on AutoDeploy
QUESTION
I'm using Tomcat 10 and eclipse to develop a J2E (or Jakarta EE) web application. I followed this tutorial (http://objis.com/tutoriel-securite-declarative-jee-avec-jaas/#partie2) which seems old (it's a french document, because i'm french, sorry if my english isn't perfect), but I also read the Tomcat 10 documentation.
The dataSource works, I followed instructions on this page (https://tomcat.apache.org/tomcat-10.0-doc/jndi-datasource-examples-howto.html#Oracle_8i,_9i_&_10g) and tested it, but it seems that the realm doesn't work, because I can't login successfully. I always have an authentification error, even if I use the right login and password.
I tried a lot of "solutions" to correct this, but no one works. And I still don't know if I have to put the realm tag inside context.xml, server.xml or both. I tried context.xml and both, but i don't see any difference.
My web.xml :
ANSWER
Answered 2021-Jun-10 at 13:44As Piotr P. Karwasz said it, I misspelled dataSourceName in context.xml and server.xml file. I feel bad that I didn't notice it.
But I still have one question : In which document should I put the realm tag ?
QUESTION
I'm trying to setup a Tomcat server.
The following is my VirtualHost config
...ANSWER
Answered 2021-Jun-05 at 05:42The issue was stemming from a misconfigured POM file where the index.html file was being placed somewhere else in the war file. I simply changed the destination directory pathing to fix this issue. Apologies for the stupid error.
QUESTION
I have a single instance of tomcat server that has 2 services, each one is running on a different port:
...ANSWER
Answered 2021-May-29 at 09:39I just changed connector for both services like so:
QUESTION
I have a very specific Tomcat configuration that I don't want to change and I am looking for a solution for this specific configuration.
I have declared multiple contexts () for deployment inside the conf/server.xml file in Tomcat, something I know is not recommended. My problem is that if one of those deployments fail, the whole Tomcat process stops which terminates the rest of the applications that have successfully started. Is this behavior expected? Is there an attribute or a way to prevent this and emulate the behavior of distinct context declarations akin to the usage of
context.xml
file?
The error I'm getting is the following:
ConfigServletWebServerApplicationContext : Exception encountered during context initialization
with this stacktrace (for Tomcat version 8.5.24):
...ANSWER
Answered 2021-May-28 at 17:27Basically:
- an exception during the
start
phase (cf. LifeCycle) of any component configured inserver.xml
causes the server to exit. However some exceptions (like a failedServletContextListener
) don't propagate. - an error of a component added during runtime, does not cause the server to exit.
If you don't want the whole server to stop, when a context fails to start up, use auto-deployment: for each context defined in server.xml
create a file $CATALINA_BASE/conf///.xml
with content:
QUESTION
There is a similar question but it does not use AWS::ApiGatewayV2::Stage
, and I need the AutoDeploy
that only the V2 seems to provide.
How do I enable CloudWatch logs and log full message data (as per the image) using CloudFormation in an AWS API Gateway?
I can't find anything at the documentation for the Stage https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html#cfn-apigatewayv2-stage-deploymentid
I am using an autodeployed stage. I am able to create the log groups, the IAM role to write logs in CloudWatch, but I can't enable the logging itself.
...ANSWER
Answered 2021-May-24 at 10:54How do I enable CloudWatch logs and log full message data (as per the image) using CloudFormation in an AWS API Gateway?
You can't. Execution logs are not supported by HTTP API (i.e. ApiGatewayV2) as explained by AWS here:
HTTP APIs currently support access logging only, and logging setup is different for these APIs. For more information, see Configuring logging for an HTTP API.
QUESTION
I have a problem with my HTTP integration for an AWS API Gateway that uses WEBSOCKET
These are the main characteristics of my configuration (it can be viewed in detail in the cloud formation template at the end of the post):
- Api Gateway Websocket
- Route selection expression
$request.body.action
- Disabled execute api endpoint because I'm using a custom domain, although it does not seem to make any difference if I use the Api Gateway direct url instead
- Routes
$connect
, asend
and a$disconnect
- Integration type is
HTTP_PROXY
- The integration Uri (and here is the interesting part) is a URL that points to my custom domain, and the DNS resolves as ANOTHER Api Gateway in my AWS account (an
HTTP
one) that integrates with a private ALB through a VPC_LINK and reaches a web service in an ECS cluster (I guess this is irrelevant now). - Bot Api Gateway, the http one and the websocket one, use a custom domain
api.mycompany.io
andws.mycompany.io
with a TLS certificate*.mycompany.io
- The HTTP services run in a private subnet, but they're perfectly reachable from internet. I can send http requests and get back responses.
When I do
...ANSWER
Answered 2021-May-24 at 09:18I solved it.
The reason it failed with the "real" http integration pointing to my service is due to some http headers.
I reproduced the issue by accessing the cloud watch logs and viewing all the http headers that were being used in the actual http integration call, and, in PostMan, making a request to my service with exactly those headers. As expected, I got 400 Bad Request.
QUESTION
I have gone through some post related to my question but unfortunately I have not managed to get the correct answer.
I have uploaded and rename a war file to ea-tomcat85/webapps/ROOT.war
in my server. But whenever I restart the tomcat server it only generate an empty ROOT folder without any files inside it. I have try to set inside tomcat conf directory file
server.xml
as suggested in other links with no success. Also I have try to delete and rename the generated empty ROOT folder as suggested with no success. I don't know exactly what I am doing wrong or missing. This is my first time deploy a war file into a live server. Thanks in Advance.
Update
I have set the $CATALINA_BASE/bin/setenv.sh:
ANSWER
Answered 2021-May-18 at 06:59The only environment variable used by startup.sh
that cannot be set in setenv.sh
is CATALINA_BASE
(if it is unset it defaults to CATALINA_HOME
, which defaults to the parent folder of the startup.sh
script).
Therefore you need to start you Tomcat as:
QUESTION
I have tomcat 9 installed on Ubuntu VPS. I have two web applications deployed. Say -
- $CATALINA_BASE/webapps/app1
- $CATALINA_BASE/webapps/app2
Both of them are deployed as war files generated from spring boot application
Now, I want only app1 to be accessible to outside network. app2 should be accessible only from localhost i.e. app1.
I am looking for more global solution where I can modify server.xml or something like that which stays even after deployment.
What I already tried
Added context.xml inside webapp/app2 and add a valve to restrict outside traffic. But, this context.xml is getting overwritten after every deployment .
Created $CATALINA_BASE/conf/context.xml and added valve to restrict remote traffic. This blocked remote access to all apps.
Then, I created $CATALINA_BASE/conf/Catalina/localhost/app1.xml and overrided context through
...ANSWER
Answered 2021-May-11 at 22:21Tomcat is not reading your deployment descriptor c.xml
. As you can see in the logs you have:
Unable to create directory for deployment: [/opt/tomcat/conf/Catalina/localhost]
Once you create the required directory /opt/tomcat/conf/Catalina/localhost
and put your c.xml
file in it, the starting logs will contain:
Deploying deployment descriptor [/opt/tomcat/conf/Catalina/localhost/c.xml]
instead of:
Deploying web application archive [/opt/tomcat/webapps/c.war]
and your valves should work.
Note - After creating xml file, change owner of both file and directory to tomcat user so that tomcat can deploy xml files
sudo chown tomcat:tomcat ${CATALINA_HOME}/conf/Catalina/localhost/ sudo chown tomcat:tomcat ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml
QUESTION
According to https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-private.html it is possible to integrate API Gateway with an internal Application Load Balancer using a private VPC link.
However I cannot make it work.
I have a service accessible internally through the ALB. The ALB has no public IP, it balances requests in a AWS Fargate cluster (all within private subnets).
...ANSWER
Answered 2021-May-06 at 07:51I got it working. It is definitely possible to use API Gateway http integrated with a private (i.e: internal facing) ALB that balances traffic in private subnets.
The problem I had is that when I created the API in API Gateway through the console, there is an option to add integration, but that integration at that point only allows HTTP or Lambda, and I don't want that, I want a private integration using a VPC link I create in advance.
So here are the steps:
- Create (if non existing already) a security group that allows HTTP traffic on 80. This group will be associated later on to VPC link
- Create VPC link associated to the VPC and, explicitly, to the private subnets where the EC2services or fargate cluster are. Make sure you select the security group that allows HTTP traffic
- Create HTTP API in Apu Gateway. On the first step give it a name but DO NOT create an integration just yet. Skip that. Skip the route creation also. Choose a stage name or leave the
$default
(I use$default
and auto-deploy). - Create a route. If you want to accept anything, do so by choosing
ANY
and the path/{proxy+}
. - Finally, on that route, attach an integration. This time you'll see that there is an option to choose a private resource where you can explicitly select the private ALB with its http listener AND the VPC link created previously.
That's it. Http requests to Api Gateway will be directed to the private internal facing ALB.
QUESTION
I would like to run two tomcat services on two ports (8080,8181) with different codeBases, but sharing the same database resource. When I do this, I get "javax.naming.NameNotFoundException: Name [comp/env/jdbc/mydb] is not bound in this Context. Unable to find [comp]." when it tries to initialize the second Service.
My Services look like this in the server.xml:
...ANSWER
Answered 2021-May-03 at 18:47You should change the name of your in the second service: there can be only one naming context for each combination of engine name, host name and context name.
In your case the combination (Catalina
, localhost
, your application name) probably appears twice, hence you should be able to find an entry like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AutoDeploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page