migrate from weblogic to tomcat: directory mapping--reference
2014-08-12 14:59
253 查看
Question:
I am trying to migrate from weblogic to tomcat. in weblogic I have
For example I have mysite project. It means that localhost:8080/mysite/ = E:/internal and I can get a file from E:/internal through localhost:8080/mysite/
I whole project is used:
src="<%=request.getContextPath()%>/file.jsp"
In this article there is an examle how to map local folder to tomcat.
doesnt work for me. I changed it to
It works. But I have a problem. For example I have localhost:8080/mysite/about page.
When I use (1) mapping
src="<%=request.getContextPath()%>/file.jsp" doesnt work because it returns mysite/file.jsp
when I try to map mysite by creating mysite.xml the project is not starting because mysite is a site url.
How can I resolve this problem?
Answer:
The best thing is probably to map each item in
It would be better if you could use a particular URL space for
If you really want to "merge" the two directories (that is, resources from both
(See http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Virtual_webapp andhttp://tomcat.apache.org/tomcat-7.0-doc/config/resources.html#VirtualDirContext_implementation).
原文地址:http://stackoverflow.com/questions/20400465/migrate-from-weblogic-to-tomcat-directory-mapping
I am trying to migrate from weblogic to tomcat. in weblogic I have
<virtual-directory-mapping> <local-path>E:/internal</local-path>
For example I have mysite project. It means that localhost:8080/mysite/ = E:/internal and I can get a file from E:/internal through localhost:8080/mysite/
localhost:8080/mysite/file.jsp
I whole project is used:
src="<%=request.getContextPath()%>/file.jsp"
In this article there is an examle how to map local folder to tomcat.
This 6. Now inside the above xml file put the following line: <context docbase="d:/images"></context>
doesnt work for me. I changed it to
(1) <Context docBase="E:/internal"></Context>
It works. But I have a problem. For example I have localhost:8080/mysite/about page.
When I use (1) mapping
src="<%=request.getContextPath()%>/file.jsp" doesnt work because it returns mysite/file.jsp
when I try to map mysite by creating mysite.xml the project is not starting because mysite is a site url.
How can I resolve this problem?
Answer:
The best thing is probably to map each item in
E:\Internalindividually using the
aliasesattribute of your
<Context>(see http://tomcat.apache.org/tomcat-7.0-doc/config/context.html). Note that using
/as an "alias path" is not allowed, which is why you'd have to map each item in
E:\Internalindividually.
It would be better if you could use a particular URL space for
E:\Internallike
/internal/[something]and map the whole directory as an
alias, but that might not be feasible for your project.
If you really want to "merge" the two directories (that is, resources from both
E:\Internaland
CATALINA_BASE/webapps/mysiteare available via URLs like
/mysite/foo, then you will have to use the VirtualDirContext like this:
<Context> <Resources className="org.apache.naming.resources.VirtualDirContext" extraResourcePaths="/=E:\Internal" /> </Context>
(See http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Virtual_webapp andhttp://tomcat.apache.org/tomcat-7.0-doc/config/resources.html#VirtualDirContext_implementation).
原文地址:http://stackoverflow.com/questions/20400465/migrate-from-weblogic-to-tomcat-directory-mapping
相关文章推荐
- http to https automatic--weblogic/jboss/tomcat--reference
- Could not load project* from super dev mode server when deployed to weblogic/jboss/tomcat?
- Forward: Migrate apps from Internet Explorer to Mozilla
- Migrating from VS 2005 to VS 2008 with Microsoft.VisualStudio.Shell references (译)
- Steps To Migrate-Move a Database From Non-ASM to ASM And Vice-Versa
- Hot Deploy maven project from eclipse to tomcat
- Steps To Migrate-Move a Database From Non-ASM to ASM And Vice-Versa
- EJB 从WL6.1向WL8.1移植(MAPS EJB Migrate from WLS6.1 to WLS8.1 Guideline)
- Steps To Migrate-Move a Database From Non-ASM to ASM And Vice-Versa
- Steps To Migrate-Move a Database From Non-ASM to ASM And Vice-Versa
- From C to C++: A quick reference for aging programmers
- How to migrate DTS package from Server A to Server B
- Migrating Resource Adapters from OC4J to WebLogic, Part 2 Inbound
- How to migrate from code-centric to model-centric development using Rational Software Architect
- Steps To Migrate-Move a Database From Non-ASM to ASM And Vice-Versa
- Migrate from Classic OPC to OPC Xi (.NET 3.0)
- Myeclipse中启动Tomcat或weblogic服务出现Transport dt_socket failed to initialize,rc=509错误的解决办法
- reference to .init.data:monspecs from .text
- WEBLOGIC cannot change charset from 'GB2312' to 'GBK'
- How to Migrate from WCF Web API to ASP.NET Web API