I have this servlet-mapping below. But whenever I access the url, it's always 404 Not Found.
<servlet-mapping>
<servlet-name>equinoxbridgeservlet</servlet-name>
<url-pattern>/console/*</url-pattern>
</servlet-mapping>
To give you an idea, I'm deploying an ear file with multiple war files. This also requires a security. After entering the correct credentials, I'm encountering 404 Not Found.
I'm not able to find anything from the log file as well. It's also working in jboss 5 but not in wildfly 9 or 10.
Yes that is a known "issue" or feature depends how you look at it.
To fix your problem, open standalone.xml locate undertow subsystem.
and add disable-console-redirect="true"
to <host name="default-host" ...
or in CLI execute:
/subsystem=undertow/server=default-server/host=default-host:write-attribute(name=disable-console-redirect, value=true)
or similar if you what to do that for different host/server
Related
When I start my spring boot app as a systemd service I receive this error:
start-stop-daemon: warning: this system is not able to track process names longer than 15 characters, please use --exec instead of --name.
Spring boot seems to build the process name from the jar name and the directory the jar is contained in. Is there any way to fix this aside from renaming the jar, and the directory it's contained in, to be shorter than 15 characters?
If I try to edit spring boots startup script to use --exec instead of --name then I get another error:
'start-stop-daemon: unable to stat /opt/program/programname_optprogramname (No such file or directory)
It appears that this issue is fixed in Spring boot 2.0.2. So if you run into this issue upgrading might fix it (not to imply that upgrading is always a simple effort)
When I try to save a file in sublime from a mapped network drive I get an error:
Unable to save Y:\MySite\index.html
Error: The requested operation cannot be performed on a file with a user-mapped section
This error does not happen in Notepad, and is coming from Sublime Text rather than windows, which makes me think Sublime is trying to do something funky during the save process.
What I've tried:
The file is open somewhere else. No, I can save the file in Notepad.
There may be an issue with user permissions Maybe, however I'm not sure how to fix it.
The linked post is not specific. I shared the folder by
Right-Click > Properties > Sharing > Share, added "Everyone", and gave them "Read/Write" permission.
Could it be that "Everyone" doesn't cover the Sublime user? (Note: I have tried to run sublime as admin, to no avail)
More Details:
Environment:
My local computer ("The Host") hosts a Windows 7 Virtual Machine ("The Guest"), which is running Jetty
Jetty serves folders from webapps as web servers
I set up webapps to be shared with Everyone
On the host I mapped webapps so I can edit files locally.
Here's a pic of my Network Folder setup:
The Issue:
When I locally edit a webapps file in Sublime, and Jetty is running in the guest, I get this error when I try to save it:
However, if I edit the same file in Notepad it works fine.
This seems like a Sublime error rather than a windows error, meaning it's perhaps trying to do something funky with the file rather than saving it. Has anyone else experienced this?
Thanks to Joakim Erdfelt's answer to my other question I got this figured out!
This is an issue with windows' memory buffering, but you can fix it in a Jetty config file. See the docs for more info. Here's what I did:
Find your webdefault.xml file.
Mine was in C:\Place_where_Jetty_was_installed\Jetty\etc\
Open it and search for UseFileMappedBuffer. Look for this:
<init-param>
<param-name>useFileMappedBuffer</param-name>
<param-value>true</param-value>
</init-param>
Set param-value to false
<param-value>false</param-value>
In Hippo, There are two web applications packaged as war files inside a directory called webapps, a number of libraries in a directory called shared/lib, another set in a directory called common/lib, and some configuration files such as a log4j descriptor and a Tomcat context descriptor in the conf directory.
But in Heroku, I can not find the directory of tomcat to deploy these directory like the structure of Hippo (shared/lib, common/lib, conf)
Thank you
Hippo requires access to the entire Tomcat instance for setup at least. I've read through the Heroku documentation (most of it just skimmed), but I can't see that they provide that access.
However, there is possibly a second option which you may be willing to try; build Hippo in a docker image, and deploy that into Heroku:
Creating a docker container for hippo
Deploying docker container to Heroku
I haven't tried or tested any of this, so I can't guarantee it's success. But if you're limited to using Heroku, then it's at least worth a try.
Also, if you manage to get it running using docker, I would be extremely interested to know more details.
I modified the file conf/server.xml like this below
<Context path="AA" docBase="BB" reloadable="true" />
when I start tomcat from a shell file publish.sh:
#!/bin/bash
#defined
TOMCAT_HOME="/root/software/apache-tomcat-7.0.29"
#start tomcat
cd "$TOMCAT_HOME"/bin
sh startup.sh
echo "tomcat is starting,please try to access $PROJECT console url"
tomcat publish two projects under path "webapps/",AA and BB。And I tracked that BB was published after AA.
If you logged on the terminal , and start tomcat directly in the directory "$TOMCAT_HOME"/bin with command:
>./startup.sh
Only one project "BB" under path "webapps/"。
Who can tell me Why? Thanks!
You have double-deployed your web application.
How? Well, you put BB.war into webapps/ (which will be auto-deployed to /BB) and then you put <Context path="AA" docbase="BB"> into server.xml which deployed BB.war to /AA. What did you expect?
If you just want your application to be deployed to /AA, then just re-name the WAR file to AA.war and be done with it: take-out the <Context> in server.xml because it's just making your job harder. This is why it's explicitly recommended not to do that.
I already read a number of related questions, but i did not get to a solution for my situation.
I have a webapp in a war-file that includes the version number. E.g.,sourceWarName.war. I cannot use remote deployment, the war file will be deployed manually over the tomcat manager web-interface. I would like the webapp to be accessible over a static path (decoupled from the version), e.g, http://someserver:8080/targetPath
As specified in tomcat docs and stack overflow question, it is possible to create a context.xml in my application's META-INF folder like this:
<Context path="targetPath" debug="0" reloadable="true">
...
</Context>
The file is then supposed to be copied to /tomcat7/conf/Cataline/localhost/sourceWarName-1.0.0.xml. This does not work, however. No xml file is copied. I configured the host-entry in the server.xml to make sure we do not run into double-deployment like this:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false" deployOnStartUp="false" copyXml="true">
The app, however, is still reachable under /sourceWarName-1.0.0.
What did i miss?
I tried the answer to this question, but this did not work out for me. Only difference seems to be the docBase.
Tomcat doc says about docBase:
The value of this field must not be set unless the Context element is
defined in server.xml or the docBase is not located under the Host's
appBase.
I do not have a context element in server.xml and the appBase is the same.
Running Apache Tomcat/7.0.52 (Ubuntu).