Getting context path in a jspx
Greetings
i have in a JSP this code
<div id="footerpartners"><img src="<%=request.getContextPath()%>/images/aval.png" width="68" height="26" /><img src="<%=request.getContextPath()%>/images/ath.png" width="79" height="26" /><img src="<%=request.getContextPath()%>/images/ciudad_empresarial.png" width="133" height="26" /><img src="<%=request.getContextPath()%>/images/corficolombiana.png" width="140" height="26" /><img src="<%=request.getContextPath()%>/images/superfinanciera.png" width="181" height="26" /><img src="<%=request.getContextPath()%>/images/verisign.png" width="72" height="26" /></div>
and this JSP is being include in a JSPX, when loading the JSPX in my browser i am getting this error
Error de OracleJSP: oracle.jsp.parse.JavaCodeException:Line 3, oracle.jsp.parse.JspParseTagExpression@190fd9b
Error: Java code in jsp source files is not allowed in ojsp.next mod
i believe it is because of the contextPath request....................how can i get it in a jspx
Try using EL instead of the java.
${pageContext.servletContext.contextPath}might work.
Timo
Similar Messages
-
Getting the context path in a jspx
Greetings
i have in a JSP this code
<div id="footerpartners"><img src="<%=request.getContextPath()%>/images/aval.png" width="68" height="26" /><img src="<%=request.getContextPath()%>/images/ath.png" width="79" height="26" /><img src="<%=request.getContextPath()%>/images/ciudad_empresarial.png" width="133" height="26" /><img src="<%=request.getContextPath()%>/images/corficolombiana.png" width="140" height="26" /><img src="<%=request.getContextPath()%>/images/superfinanciera.png" width="181" height="26" /><img src="<%=request.getContextPath()%>/images/verisign.png" width="72" height="26" /></div>
and this JSP is being include in a JSPX, when loading the JSPX in my browser i am getting this error
Error de OracleJSP: oracle.jsp.parse.JavaCodeException:Line 3, oracle.jsp.parse.JspParseTagExpression@190fd9b
Error: Java code in jsp source files is not allowed in ojsp.next mod
i believe it is because of the contextPath request....................how can i get it in a jspxresolved at Getting context path in a jspx
-
Get context path in a jsp without using a scriptlet
Hi Guys
I am using Scriptlet to get a application context path in a JSP. I want to get the context path with out using an scriptlet in a JSP, is there way to achieve this..?
<%=request.getContextPath() %>/listofvalues.do?method=viewListOfValues thanks in advance.
Regards
Praveen
Edited by: praveen_kumarvr on Jul 3, 2008 8:30 AM${pageContext.request.contextPath}A common practice is to put this value in the <base href> in the HTML head and then use this as the root for all of the relative URL's in the page.
-
How do I get context path in javascript?
Hi,
I code the following code but the contextPath will return a string = <%=request.getContextPath()%> instead of returning the context path. The codes works on a normal jsp form. Please help. Thanks.
<script>
<contents>
var contextPath = "<![CDATA[<%=request.getContextPath()%>]]>";
function doAction( action ){
if( action == "clear" ){
document.GnCodeSetupForm.action= "clearGnCodeSetupAction.do";
document.GnCodeSetupForm.submit();
</contents>
</script>var contextPath = "<![CDATA["+<%=request.getContextPath()%>+"]]>";
will return following code
var contextPath = ""+<%=request.getContextPath()%>+"";
which is syntax error. -
Get the context path with jspx
How can I get the context path using jspx?
with jsp I get using scriptlet
<%=request.getContextPath()%>but it didn't validate with xhtml
thanksI'm really unfamiliar with JSP Documents and I don't know if nesting the tags would be valid. Why don't you use EL in that case?
${pageContext.request.contextPath} will print out the value you need.
P.S. In case it just prints out as is without being evaluated, take a look at these:
http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected
http://faq.javaranch.com/java/JstlTagLibDefinitions
http://faq.javaranch.com/java/SetupJstlForJsp2
http://faq.javaranch.com/java/ServletsWebXml
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
---------------------------------------------------------------- -
How-to get the JSF application context path?
I want to do a redirect from within a JSF backing bean. How do I get the application context path?
I plan to do this in the constructor of the backing beans in order to validate the user has previously logged in.
public BackingBeanName()
FacesContext facesContext = FacesContext.getCurrentInstance();
HttpSession session = HttpSession)facesContext.getExternalContext().getSession(false);
HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
userid = (String)session.getAttribute("userid");
if (userid == null) {
logger.info("userid attribute is not in session");
ExternalContext ec = facesContext.getExternalContext();
appContextPath = ???????????????????????;
String redirectTo = appContextPath + "/logon.jsp";
try {
ec.redirect(redirectTo);
catch (IOException e) {
String msg = "redirect to " + redirectTo + " failed";
logger.severe(msg);
return; // throw an exception instead of return;
Regards,
Al MalinFrank, your suggestion of using JSF global navigation to the logon page looks like what I need but I need some advice implementing it.
My backing bean constructor looks like this:
public Search()
FacesContext facesContext = FacesContext.getCurrentInstance();
String userid = GpaUtil.getSessionUserid(facesContext);
if (userid == null)
logger.info("session userid not found, going to logon page");
??????? What goes here ????????
??????? I think I need to fire an event but I'm not sure how to do it, ????????
??????? let alone if this is what needs to be done ????????
??????? or even if this is the right spot in the code ????????
gpas = ProductApproval.retrieveList("1=1","1");
FWIW, the navigation rule looks like this:
<navigation-rule>
<navigation-case>
<from-outcome>goLogon</from-outcome>
<to-view-id>/logon.jsp</to-view-id>
</navigation-case>
</navigation-rule>
Your help is greatly appreciated.
Regards,
Al Malin -
How can I get my application Context Path?
How can I get my application Context Path via webdynpro code?
Let say I'm accesing my application with URL
https://myapp:8443/webdynpro/dispatcher/local/MyApp/App, how can I get
the value 'https://myapp:8443' from webdynpro code? In J2EE, this is
equivalent of HttpServletRequest.getContextPath() method. Do we have
this method call in webdynpro object?Hi John,
Yes you can achieve that in Web Dynpro.
Try the following -
// USE THIS FOR GETTING THE SERVER NAME AND IMPORT WEBLOGIC.JAR FILE IN THE JAVA BUILD PATH PROPERTIES
HttpServletRequest request = (( com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
//GETS THE HOST NAME OF THE SERVER
String strHostName = request.getServerName();
Thanks,
Sam -
Getting the path of a resource file inside the context
I am trying to migrate some of our applications running on OracleApplicaiton Server. We have data resource xml file needs to use in the applicaiton. In Oracle Application server we used to give the actual path of the xml file to load the xml file to the parsers since we know the path of the directories after deploying the application as an ear file. How can I get the path of the files in weblogic after deployment. If this is not supported what is the alternative to get the relative path of that xml file to load in ? The xml file is in the root folder of the context.
THanks
SuneeshHi Suneesh,
Please try enabling the <show-archived-real-path-enabled> Tag to TRUE ...And then everything will work fine with the following code:
context.getRealPath()
At domain level in config.xml. For example:
<web-app-container>
<show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</web-app-container>
*****OR *****
At the web app level in weblogic.xml. For example:
<container-descriptor>
<show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</container-descriptor>
For Archived Applications , It is always a best practice to use the getResourceAsStream() rather than using getResource().......Below code snippet should workout in 99% cases
InputStream stream=this.getClass().getClassLoader().getResourceAsStream("someXMLorPropfile.properties");
Thanks
Jay SenSharma
http://middlewaremagic.com/weblogic/?p=408 (Middleware Magic is Here) -
Context path of external jsf page
I have a jsf (.jspx) page which contains a java portlet. The jsf page and portlet are located in different context root of the server.
In the portlet jsp, how can I get the context path of the jsf page ?Hi,
could you pass this in as a parameter (session or request)?
Frak -
Table error - Context Path Cannot Be Resolved (Last Node Is Empty)
Hi All,
I am dynamically building up a context node called PoList which is used to hold the contents of a table.
My BAPI is called and a routine transfers the contents of the BAPI context node across into the POList context node. This is rendered correctly on the screen. There is a routine which filters the results based on a vendor. The code works fine when some records are found but when no records are found, I get the error "Context Path POLIST.EBELN Cannot Be Resolved (Last Node Is Empty) ".
The cardinality of the PoList node is 0..N. This should mean that 0 records is valid.
The ABAP which fills the context is pasted below :
data:
Node_Z_Bapi_Po_Combined type ref to If_Wd_Context_Node,
Node_Changing_Po type ref to If_Wd_Context_Node,
Node_T_Header type ref to If_Wd_Context_Node,
Elem_T_Header type ref to If_Wd_Context_Element,
itab_C_T_Header type If_Componentcontroller=>Elements_Polist,
stru_C_T_Header like line of itab_C_T_Header,
Stru_T_Header type If_Componentcontroller=>Element_T_Header .
data:
Node_Polist type ref to If_Wd_Context_Node,
Elem_Polist type ref to If_Wd_Context_Element,
Stru_Polist type If_Componentcontroller=>Element_Polist.
data:
lri_Element type ref to if_Wd_Context_Element,
loa_Elements type Wdr_Context_Element_Set.
navigate from <CONTEXT> to <Z_BAPI_PO_COMBINED> via lead selection
Node_Z_Bapi_Po_Combined = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Z_Bapi_Po_Combined ).
navigate from <Z_BAPI_PO_COMBINED> to <CHANGING_PO> via lead selection
Node_Changing_Po = Node_Z_Bapi_Po_Combined->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Changing_Po ).
navigate from <CHANGING_PO> to <T_HEADER> via lead selection
Node_T_Header = Node_Changing_Po->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_T_Header ).
navigate from <CONTEXT> to <POLIST> via lead selection
Node_Polist = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Polist ).
loa_Elements = node_T_Header->get_Elements( ).
loop at loa_Elements[] into lri_Element.
lri_Element->get_Static_Attributes(
importing Static_Attributes = stru_C_T_Header ).
Get the vendor number
if i_lifnr is initial.
insert stru_C_T_Header into table itab_C_T_Header[].
elseif i_lifnr = stru_c_t_header-lifnr.
insert stru_C_T_Header into table itab_C_T_Header[].
endif.
endloop.
data : W_LINES TYPE I.
describe table itab_c_t_header lines w_lines.
if w_lines eq 0.
node_Polist->set_lead_selection_index( 0 ).
CALL METHOD NODE_POLIST->INVALIDATE.
else.
node_Polist->bind_Table( itab_C_T_Header ).
clear itab_C_T_Header[].
endif.
I would have though that invalidating the node would blank the context node and mean that the table is empty but instead I get an error.
Please help.
RichardHi Richard,
The problem here is that some UI element tries to bind against a node where the parent node is empty. You have to make sure that the last but one node has at least 1 element, otherwise you should hide the UI element (visibility = NONE).
If the lead selection were empty, the corresponding error message would tell you this, but it explicitely says: "Last Node is Empty", and you can trust it.
One possibility to have at least one element in the node is to change the cardinality to 1..n. If you have a supply function for this node, you have to make sure that there is at least 1 element (bind empty structure to the node), otherwise the framework creates the first element for you.
Ciao, Regina -
Finding the context path or docBase in a backing bean - Howto
How should I go about finding the context path or docBase in a backing bean?
Is there anyway to get this from glassfish or jsf? GlassFish proudly displayed it on the Application Server > Applications > Web Applications > page. It puts it there with an EL for example:
${com.sun.aas.instanceRoot}/applications/j2ee-modules/jsf-witaCan and/or should I try to use it in a backing bean? i.e. can I rely on it to stay defined?
Or should I make a property which I can set for my backing work?Is this what you want?
FacesContext.getCurrentInstance().getExternalContext().getContext() -
JSF - Why getting wrong path Handling URLs in Facelets Templates
Hi, I am trying to do a web application using JSF, Facelets in Netbeans 6.7. but I am having a problem:
Why I am getting wrong path ?
It is very simple, straight forward web application.
When run, it shows the template-client.xhtml perfectly . The navigation menu is shows ok, but they don't work. However, if I enter in the browser address http://localhost:8080/test3/portal/products.jsf it goes perfect to the right page and the navigation between About, Products and Home works perfect. But once I click on Home, the menu start to give me errors. Looks like the path is wrong again.
folders structure:
test3My code:
faces-config.xml:
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<application>
<view-handler>
com.sun.facelets.FaceletViewHandler
</view-handler>
</application>
</faces-config>web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>forward.jsp</welcome-file>
</welcome-file-list>
</web-app>forward.jsp:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:forward page="template-client.jsf"/>template-client.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<body>
This text above will not be displayed.
<ui:composition template="/template.xhtml">
This text will not be displayed.
<ui:define name="title">
Facelets
</ui:define>
This text will also not be displayed.
<ui:define name="body">
Hello from the Facelets client template!
</ui:define>
This text will not be displayed.
</ui:composition>
This text below will also not be displayed.
</body>
</html>template.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Facelets - Template Example</title>
<link href="#{facesContext.externalContext.requestContextPath}/css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="menu">
<ui:insert name="linemenu">
<ul>
<li><a href="../forward.jsp">Home</a></li>
<li><a href="about.jsf">About Us</a></li>
<li><a href="products.jsf">Products</a></li>
</ul>
</ui:insert>
</div>
<div>
<h1>
<ui:insert name="title">Default Title</ui:insert>
</h1>
<p>
<ui:insert name="body">Default Body</ui:insert>
</p>
</div>
</body>
</html>about.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<ui:composition template="./../template.xhtml">
<ui:define name="title">
title ABOUT
</ui:define>
<ui:define name="body">
body ABOUT
</ui:define>
</ui:composition>
</body>
</html>products.xhtml:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<ui:composition template="./../template.xhtml">
<ui:define name="title">
title PRODUCTS
</ui:define>
<ui:define name="body">
body PRODUCTS
</ui:define>
</ui:composition>
</body>
</html>My folders:
Test3
Web Pages
/WEB-INF
/css
-default.css
/layouts
/portal
-about.xhtml
-products.xhtml
-forward.jsp
-template.xhtml
-template-client.xhtmlPlease, I need help with this. It may is very easy to find out, I maybe skiping something
Thank for your help anyone!!! -
Request context path for portlet has wrong port number
I have a JSF application deployed as a portlet on the WLS_Portlet domain with port 8889. The portlet is being consumed in WebCenter Spaces, which lives in the WLS_Spaces domain with port 8888.
In my code, I am trying to get the request context path:
FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
I expect this to return http://host:8889/contextroot (where I am able to access my app resources). Instead, it is returning http://host:8888/contextroot.
Any ideas why this is happening?
Edited by: user9171296 on Jun 16, 2010 10:32 AMHi,
if you expeience Web Center problems, then best is to get an answer on the Web Center forum: WebCenter Portal
Frank -
Hi everyone,
I have the following issue. After changing the context path, via felix console, I can not checkout the content via vlt. Before that, I could checkout without any problems.
I am using CQ5.5, CRX2.3, context path: /Test
That is what I am trying:
vlt -v --credentials admin:admin co http://localhost:23310/Test/server/crx.default
Connecting via JCR remoting to http://localhost:23310/Test/server
[WARN ] Authentication required to access repository descriptors
[ERROR] checkout: com.day.jcr.vault.vlt.VltException: Unable to mount filesystem
caused by: javax.jcr.ItemNotFoundException: Not Found
caused by: org.apache.jackrabbit.webdav.DavException: Not Found
Other versions I tried:
vlt -v --credentials admin:admin co http://localhost:23310/crx
vlt --credentials admin:admin co http://localhost:23310/Test/server
vlt --credentials admin:admin co http://localhost:23310/Test
vlt --credentials admin:admin co http://localhost:23310/Test/crx
To verify if I could connect to the instance properly I started CRXDE
and try to connect to "http://localhost:23310/Test"
After click the ok button I got that error:
No file system is defined for scheme: jcr
Part of the .log file (.crxde):
eclipse.buildId=unknown
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
Framework arguments: -keyring /Users/peterwimsey/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/peterwimsey/.eclipse_keyr
ing -showlocation
!ENTRY org.eclipse.core.resources 2 10035 2012-11-25 19:01:19.268
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to
recover changes.
!ENTRY org.eclipse.osgi 4 0 2012-11-25 19:04:14.363
!MESSAGE Application error
!STACK 1
java.lang.reflect.InvocationTargetException
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau
ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav
a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)
at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)
at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)
Any tips or hints are welcome.
In the case you need more information, just leave a note.
Thanks in advance for your help.
Best regards,
PeterThe VLT works fine with the above URL change but How to fix "CRXDE" Initialization error if a context path is defined?
I have a context path defined /Test and when I am trying to login to CRXDE with URL as http://localhost:4502/Test, I am getting below Initialization Error.
Any workaround as Which URL should work while logging to repository (with context path) using CRXDE 1.0.1
eclipse.buildId=unknown java.version=1.6.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.osgi 4 0 2013-04-25 17:50:23.802 !MESSAGE Application error !STACK 1 java.lang.reflect.InvocationTargetException at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121) at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55) at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65) at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107) at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350) at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100) at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6) at com.day.cq.ide.init.SetupWorkspaceOperation.execute(SetupWorkspaceOperation.java:119) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) ... 13 more Root exception:
Thanks. -
Multiple Context Paths Per Web Application
Hi,
We have a Web Application which has a Context Path of "titanadmin". We have some
HTML pages which refer to this within the URLs they contain. We need to move the
functionality in this Web Application to another Web Application with a Context
Path of "gp3admin". We cannot change the URLs in the generated HTML.
So, is it possible for a Web Application to have multiple Context Paths, so that
URLs starting with "/titanadmin/" and "/gp3admin/" both go to the same Web Application.
Thanks,
DaveThere is no hard limit to the number of Web Applications (I managed a WSSv3 farm that had 60+, for example). The issue is memory-related and primarily stems from 32bit systems where it was much easier to get Out Of Memory errors on the IIS Application Pools
when performing a large operation across a 32bit Application Pool (e.g. crawling). However, if you limit each IIS Application Pool to about 10 Web Applications (again, in 32bit land that no longer applies), everything generally works OK given the Web Applications
do not have a very large amount of content.
But, if HNSC is in use, a single Web Application should be sufficient, barring any Web Application-specific settings you might need to make.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
Maybe you are looking for
-
Hello, I have installed Oracle Developer Suite 10gR2 (Forms/Reports) on my desktop, they were both working fine for a long time. I installed Discoverer 10gR2 (Administrator and Desktop) on the same machine recently. The Oracle Forms is still good, I
-
Junit in ATG class not found exception - SerialInitContextFactory
Hi I am running a JUNIT test case in ATG and while running that, I am facing an issue which says, java.lang.ClassNotFoundException: atg.j2ee.jndi.SerialInitContextFactory Can you please tell me in which ATG jar can i find this class. Regards Naresh
-
Splitting the date based on the selection screen input
Hi all, In the Selection screen of my report i had maintained two fields SELECT-OPTIONS : S_DATE FOR TPCDATE-FROM_DATE. PARAMETERS : P_NUMBER TYPE ZMMAREA-NUMBER. I need to code such that S_DATE should be splitted into P_NUMBER times for ex
-
Exception text in error segment of the header
Hello All, It is well documented in SDN on how to add trace messages and then raise an runtime exception error that will stop message mapping process. References: /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-m
-
Changing iCloud a/c to new ipad email ID
Had my Apple ID changed to new email account then tried to change iCloud account to same. iCloud won't let me change email account & keep getting an error window wanting p/w for the old a/c which was a cable email address. I don't have that cable co.