I'm trying to get a local Tomcat deployment under control in IntelliJ (version 12) and so looking to configure a local connection to Tomcat.
I try to add a server specifying 'Local or mounted folder'. All seems okay but asks me to specify 'web server root URL'.
As its a local server I'd like something like '/opt/tomcat/tomcat7-dev' which points to the root of my tomcat install, however IntelliJ logically says this 'URL is not valid'.
Any advice on correct way to specify local server for IntelliJ deployment?
Local Tomcat configuration doesn't require any Deployment settings or mappings, you just configure a server, artifact and a run configuration to start the server and deploy the artifact, more details can be found in the tutorial.
Related
I cloned my Symfony app to my server and when I want to open the website I get the error:
Forbidden
You don't have permission to access this resource.
Apache Server at mywebsite.com Port 80
What does that mean?
I would check the owner of the files in terminal.
I would check vhost file, on my local Ubuntu the location is /etc/apache2/sites-available/
You could check if you didn't miss any important step from the webserver configuration documentation
Configuring a Web Server
like installing the apache Symfony pack or manually set an .htaccess
I had to link my domain to the public folder instead of the root folder
I'm gonna need more information about the system. Which symfony version do you have? Have you seen the loggers? Have you deployed the system on a docker container? Which version of PHP are you using? Maybe you are missing some dependencies.
I am using keycloak to authenticate users in my application. The users are imported in Keycloak through a external mysql user store. I am placing the user-provider jar inside /standalone/deployments folder.
I need to remotely debug this jar file through intellij.
I tried to uncomment the JPDA settings for remote socket debugging in standalone.conf file but it didn't work.
Try to set the following environment variables
DEBUG_PORT="*:8787"
DEBUG_MODE=true
and then start the server with --debug flag. You should then be able to attach a remote debugger to port 8787
I have an Apache server proxying all traffic from mainhost.com/subdirectory to someec2instance/subdirectory. When I start Apache and hit someec2instance.com, I get the ROOT war page. That works fine. If I deploy my app as ROOT.war, everything works fine form someec2instance.com.
However, when I access mainhost.com/subdirectory, all the asset urls and link_to urls are wrong and point to mainhost.com instead of mainhost.com/subdirectory.
I've set grails.app.context and confirmed via application.properties that the correct grails.env is being set.
Why isn't grails.app.context being respected when I deploy as ROOT.war? I would expect the site to be accessible on someec2instance.com/context, but it's like it ignore grails.app.context entirely.
The reason is doesn't work is that those settings are for running locally, not when deployed as a WAR file. When you use the tomcat or jetty plugin in run-app we configure the container to make it look like it's running an "exploded" war (similar to when a WAR gets unpacked to the file system by various servers). Since the container is running in embedded mode, it's easy to configure it programmatically as needed.
But when you deploy a WAR file there's nowhere near as much configurability. In run-app the build logic of Grails starts the server, configures it, and deploys the app, but a WAR file deployed to a "real" server is managed by the server and not the other way around.
I am currently automating a process of moving Weblogic applications from old servers to new servers. I was unable to find a way to list the local application path for a deployed Weblogic application using WLST. The closest I found was:
appInfo=cmo.getAppDeployments()
for app in appInfo:
app_path = getPath(app)
print app_path
which will return something like:
InternalAppDeployments/test.war
This is not the directory I am looking for. I was wondering if someone had some input on how to retrieve the local directory for deployed Weblogic applications.
One easy way to do it with WLST:
ls('/AppDeployments') # this will list all of the deployments
cd('/AppDeployments/<app name>')
cmo.getAbsoluteSourcePath() # this will list the full path
Some things you could try instead of WLST:
Navigate to the /config/ folder and do a:
grep source-path config.xml
This will list the full path to the deployment IF that deployment was deployed with nostage staging-mode. Those paths will be relative if the deployment was deployed with stage for the staging-mode, it will be copied to each managed server that was targeted for the deployment and you will get relative paths like you mentioned above...
Those ear/war files likely live under:
<domain>/servers/<server name>/stage/<deployment name>
Or under
<domain>/sbgen
I developed a web application using java and mongodb. I used glassfish server.
I tried to deploy it on jelastic cloud service
I uploaded my war file. But when I run it after deploying the war file it shows a 404 error. Why? The project works fine on my machine.
There are at least few potential causes:
your app needs some resources which are not started by default (such as DerbyDB). In this case you can check GlassFish log file - server_instance.log for more details.
you are trying to get resources from wrong context, make sure you are trying to get it via correct context name