Included files in JSPC
Using WL5.1, JSPC can't seem to find files included in a JSP, such as:
<%@ include file="include/include_file.inc" %>
The docroot is set to the directory containing the JSP files, and the
include directory (which contains all included files) is directly under the
docroot directory.
In the generated java file we get:
// cannot include file 'include/include_file.inc' //[ /BrandEdit.jsp; Line:
33]
//[ /BrandEdit.jsp; Line: 34]
out.println("<!-- cannot include file 'include/include_file.inc', resource
not found -->"); //[ /BrandEdit.jsp; Line: 33]
//[ /BrandEdit.jsp; Line: 34]
Any ideas on why the included files aren't being found by JSPC?
Thanks,
Steve
Fixed in SP9 - available very soon.
ISSUE 38661
Compiling a JSP that contains an include directive with a relative URI was
not resulting in the file's path being parsed correctly.
Mike
"Steve Crook" <[email protected]> wrote in message
news:3ac97e4d$[email protected]..
> Using WL5.1, JSPC can't seem to find files included in a JSP, such as:
> <%@ include file="include/include_file.inc" %>
>
> The docroot is set to the directory containing the JSP files, and the
> include directory (which contains all included files) is directly under
the
> docroot directory.
>
> In the generated java file we get:
> // cannot include file 'include/include_file.inc'
ile://[ /BrandEdit.jsp; Line:
> 33]
> file://[ /BrandEdit.jsp; Line: 34]
> out.println("<!-- cannot include file 'include/include_file.inc', resource
> not found -->"); file://[ /BrandEdit.jsp; Line: 33]
> file://[ /BrandEdit.jsp; Line: 34]
>
> Any ideas on why the included files aren't being found by JSPC?
>
> Thanks,
> Steve
>
>
Similar Messages
-
Dreamweaver 8 - Include File issue
Can anyone help.
I have managed to fix this on previous versions of
Dreamweaver however its not working on Dreamweaver 8.
The problem is I'm trying to view Include files (.inc) in
Design view, but Dreamweaver 8 will only allow me to view this in
code view.
The link I used to solve this on previous versions is as
follows:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
The main problem is I cannot find my MMDocumentTypes.xml file
so I think this could have something to do with it not working.
Any help would be greatWhy not rename your *.inc files to *.htm(l)?
> The main problem is I cannot find my MMDocumentTypes.xml
file so I think
> this
> could have something to do with it not working.
It's in the -
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration\
folder.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"mattbuk1984" <[email protected]> wrote in
message
news:endmm0$7u9$[email protected]..
> Can anyone help.
>
> I have managed to fix this on previous versions of
Dreamweaver however its
> not
> working on Dreamweaver 8.
>
> The problem is I'm trying to view Include files (.inc)
in Design view, but
> Dreamweaver 8 will only allow me to view this in code
view.
>
> The link I used to solve this on previous versions is as
follows:
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
>
> The main problem is I cannot find my MMDocumentTypes.xml
file so I think
> this
> could have something to do with it not working.
>
> Any help would be great
> -
Code hints don't work - include files using a variable
In Dreamweaver CS 5.5 code hints didn't work properly.
DW would not look at my code and find the include files and look at the functions inside them when using a variable to make an absolute path, which is the best way to include files in PHP (its faster and more reliable on your web server)
Here is an example:
======================================
public_html/util/util_index.php
$DIR_MAIN =dirname(dirname(__FILE__).'../');
require_once "$DIR_MAIN/init.php";
my_function(#CODE COMPLETE DOES NOT WORK HERE
public_html/init.php
$DIR_INCLUDE= "$DIR_MAIN/inc";
require "$DIR_INCLUDE/common_functions.php";
#set up environment variables
#connect to the database
#etc
public_html/inc/common_functions.php
function my_function(param1, param2, param3) {
=======================================
Has this been fixed in Dreamweaver CS6 or should I wait until CS7?
Until this works, I prefer Notepad++I made a full SQL Developer installation with Java included, so I suppose that the included version is used.
After a problem with the German Version I tried to switch to English Version by using the hint:
link: 1.5.4 export insert statements
I changed the content of sqldeveloper.conf and now again the code templates (strg-shift-t) don't work!!!
(I already rebooted and set the accelerators to default, but it didn't help now.)
This is the content of my sqldeveloper.conf now:
"IncludeConfFile ../../ide/bin/ide.conf
AddVMOption -Dapple.laf.useScreenMenuBar=true
AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
AddVMOption -Dcom.apple.macos.smallTabs=true
AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
AddVMOption -Dsun.java2d.ddoffscreen=false
AddVMOption -Dwindows.shell.font.languages=
AddVMOption -XX:MaxPermSize=128M
IncludeConfFile sqldeveloper-nondebug.conf
AddVMOption -Duser.country=US
AddVMOption -Duser.territory=US
AddVMOption -Duser.language=en
" -
Jsp taglibs in include files not detected, throws errors, no code insight
I have a jsp which is included in all the other jsp. it looks something like this
taglibs.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
test.jsp
<%@ include file="/jsp/menu/taglibs.jsp"%>
<html>
<head>
<title>Tours</title>
</head>
<body>
<form:form commandName="testCommand">
<form:hidden path="tour.firstname" id="tour.firstname" />
and so on.
I am having 2 problems
1. the jsp editor show errors all over the place saying
element path not expected
element commandName not expected etc.
2. no code insights.
but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.am not sure, try with this
<jsp:include .../> -
Failure in Precompilation of JSPs due to include file in WL6.1 SP2
Hi
We are getting the following error when we try to do precompilation of JSPs using
precompile param to true in weblogic.xml
We are deploying our application as war files.
eagerly waiting for your help
sincerely
Ramesh
Issue description and StackTrace:
Issue:
Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
xception: Could not include index.jsp" exception.
OS: Windows 2000
Jdk: Sun Jdk1.3.1
Weblogic: 6.1 SP2
***Stacktrace*************
<Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
eb,/AdvWeb)] failure pre-compiling JSP's
weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
xception: Could not include index.jsp
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
Ramesh,
We experienced this sympton as well. In our JSPs, we converted
<%@ include file="xyz.jsp"%> (static include, source time) to
<jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
and the problem went away.
We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
-Charlie
"Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
> Hi
> We are getting the following error when we try to do precompilation of JSPs using
> precompile param to true in weblogic.xml
> We are deploying our application as war files.
> eagerly waiting for your help
> sincerely
> Ramesh
>
> Issue description and StackTrace:
> Issue:
>
> Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
> weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
> xception: Could not include index.jsp" exception.
>
> OS: Windows 2000
> Jdk: Sun Jdk1.3.1
> Weblogic: 6.1 SP2
>
> ***Stacktrace*************
>
> <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
> eb,/AdvWeb)] failure pre-compiling JSP's
> weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
> xception: Could not include index.jsp
> at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
> at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
> at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
> at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
> at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
> )
-
How to force a jsp page to reload an "include" file?
Hi there,
I'm using WebSphere 4.0.2 with the Java 1.3.1 API.
Some of my JSP files includes another JSP file as follows:
<%@include file="constants.jsp"%>The above line came from one of the files entitled "main.jsp".
Other jsp files on our system can rewrite and update the values in constants.jsp.
However, when they do so, main.jsp (and the other files that "include" constants.jsp) doesn't take on the new settings unless I either a) reboot the server or b) force a recompile of main.jsp
Is there any way to have main.jsp pick up when constants.jsp is updated and use the new values without manual intervention?
Thanks!You might want to use 'touch' task of ANT. it modifies the jsp page modification time thus forcing the pages to reload.
-
How to change the filename in @include file?
I want to do a checking before deciding to include which file,
for example,
<%
if(isValid){
%>
<%@ include file="abc.jsp" %>
<%
else{ %>
<%@ include file="def.jsp" %>
<% } %>but the code above doesnt work in my JSPs
any idea how to solve this?
thanks
DesmondAm i clear?? pls correct me if i am wrong..You are wrong.
The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
So if you had the following:
abc.jsp:
Hello from ABC!
<% String myVar = "ABC"; %>def.jsp:
Hello from DEF!
<% String myVar = "DEF"; %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
if (isValid){
out.println("Hello from ABC!");
String myVar = "ABC";
else{
out.println("Hello from DEF!");
String myVar = "DEF";
}This example would compile because of the presence of the braces.
However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
The %Include directive is like a copy/paste into a JSP before you compile it.
The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
The difference is quite subtle, but very important.
Cheers,
evnafets -
How to include a file as variable in %@ include file tag.
Hi,
I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
<@ include file="<%=headerLogic_template %>">
where headeLogic_template is a variable which contains the actual path of the include file.
Thanx,
Ramana.
email:[email protected]Please note that you can not write anything else between the quotes nor for page specification or parameters.
BAD EXAMPLE!!
<% for (int i = 0; i < 20; i++) { %>
<jsp:include page="included.jsp" flush="false">
<jsp:param name="apa" value="prestring_<%=i%>"/>
</jsp:include>
<% }BAD EXAMPLE!! -
"Include" files in Dreamweaver
I used "Include" files in my pre-Dreamweaver sites. When I switched to Dreamweaver and opened those sites, Dreamweaver converted Include file content into content on every page and does not reference the Include file anymore. Is there a way to reestablish Include file functionality in Dreamweaver, so that each page keeps only the reference to the Include file? (If so I can just search/replace content now on the page with a new Include file reference.)
I don't have a php site but I tried <?php include("menu.txt"); ?> anyway, but it didn't work.
Here is what I had used in the past:
I typed this Include file "call" into the html on the page where I want the left-nav TOC text to display:
<!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
Here is the TOC text contents of "nav-left.htm" which then auto-populates into the live html page on the site when displayed:
<a href="http://www.example.com/index.php">Home</a> -
<a href="http://www.example.com/about.php">About Us</a> -
<a href="http://www.example.com/links.php">Links</a> -
<a href="http://www.example.com/contact.php">Contact Us</a>
frontpage would auto-insert this at the end of the above TOC text in the live page:
<!--webbot bot="Include" i-checksum="20326" endspan -->
But that TOC text never displayed in the nonpublished local version of the ms-frontpage web pages. It only filled in the TOC text on the page from the Include file after published out to the live site.
Whenever I changed the contents in the one file i/nav-left.htm, it updated the left nav TOC text on all the pages on my site where I had inserted the include statement:
<!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
But after I brought this website into Dreamweaver, it automatically replaced all the TOC text contents into my nonpublished local version of the web pages. Now when I change the include file, it does not update the pages in the site. The Include statement fails and never calls the Include file and the Include file TOC text no longer populates the web pages. If I have an update to the TOC text, I have to update it on every individual web page, instead of just once in the Include file like I used to.
Is there a way to create a new Dreamweaver-friendly Include filed that's not php, or a different way of entering the statement, that will work in Dreamweaver? -
%@ include file= in a JSP
Please e-mail responses to [email protected] as well as this newsgroup:
I have the following in a JSP that was originally designed for iPlanet:
<%@ include file="../edeploy_global/GlobalVars.jsp" %>
The JSP that contains this file is in a project called "edeploy28", that is in the same directory as "edeploy_global".
However, I get the following error in WebLogic when trying to execute this:
javax.servlet.ServletException: compilation of /DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException: Could not include ../edeploy_global/GlobalVars.jsp
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:517)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:940)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:928)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:913)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
83)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:116)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:283)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:109)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
r.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:559)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:545)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
at $Proxy28.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
ployment(WebServerMBean_CachingStub.java:985)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:269)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:194)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:158)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:559)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:545)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
at $Proxy27.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:239)
at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:121)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:559)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:545)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
at $Proxy26.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:959)
at weblogic.management.Admin.finish(Admin.java:459)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
[att1.html]
I didn't look at your problem very closely. WLS 5.1 has had some problems with including
JSPs. Get service pack 8 and the patch for CR036881 (from websupport.bea.com/custsupp
or 1-888-228-4232)
mike
"Matt Raible" <[email protected]> wrote:
>
>
>Please e-mail responses to [email protected] as well as this =
>newsgroup:
>
>-------------------------------------------------------------------------=
>-------
>
>I have the following in a JSP that was originally designed for iPlanet:
>
><%@ include file=3D"../edeploy_global/GlobalVars.jsp" %>
>
>The JSP that contains this file is in a project called "edeploy28", that
>=
>is in the same directory as "edeploy_global". =20
>
>However, I get the following error in WebLogic when trying to execute =
>this:
>
>javax.servlet.ServletException: compilation of /DefectCodeSite.jsp =
>failed: weblogic.utils.ParsingException: nested TokenStreamException: =
>antlr.TokenStreamException: Could not include =
>.../edeploy_global/GlobalVars.jsp
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
> at =
>weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
>mpl.java:517)
> at =
>weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
>ervletContext.java:940)
> at =
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
>ServletContext.java:928)
> at =
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
>ServletContext.java:913)
> at =
>weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
>83)
> at =
>weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
> at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> at weblogic.j2ee.Application.addComponent(Application.java:116)
> at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
>oymentTarget.java:283)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
>oymentTarget.java:109)
> at =
>weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
>r.java:76)
> at java.lang.reflect.Method.invoke(Native Method)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
>eanImpl.java:559)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
>..java:545)
> at =
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
>ionMBeanImpl.java:285)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>55)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>23)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
> at $Proxy28.addWebDeployment(Unknown Source)
> at =
>weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
>ployment(WebServerMBean_CachingStub.java:985)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
>oymentTarget.java:269)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
>loymentTarget.java:233)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
>ments(DeploymentTarget.java:194)
> at =
>weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
>DeploymentTarget.java:158)
> at java.lang.reflect.Method.invoke(Native Method)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
>eanImpl.java:559)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
>..java:545)
> at =
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
>ionMBeanImpl.java:285)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>55)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>23)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
> at $Proxy27.updateDeployments(Unknown Source)
> at =
>weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
>yments(ServerMBean_CachingStub.java:2299)
> at =
>weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
>er(ApplicationManager.java:239)
> at =
>weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
>nManager.java:121)
> at java.lang.reflect.Method.invoke(Native Method)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
>eanImpl.java:559)
> at =
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
>..java:545)
> at =
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
>ionMBeanImpl.java:285)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>55)
> at =
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
>23)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
> at =
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
> at $Proxy26.start(Unknown Source)
> at =
>weblogic.management.configuration.ApplicationManagerMBean_CachingStub
>..start(ApplicationManagerMBean_CachingStub.java:435)
> at =
>weblogic.management.Admin.startApplicationManager(Admin.java:959)
> at weblogic.management.Admin.finish(Admin.java:459)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
>
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY>
><DIV><FONT face=3DArial size=3D2>Please e-mail responses to <A=20
>href=3D"mailto:[email protected]">[email protected]</A> as well as =
>this=20
>newsgroup:</FONT></DIV>
><DIV>
><HR>
></DIV>
><DIV><FONT face=3DArial size=3D2>I have the following in a JSP that was
>=
>originally=20
>designed for iPlanet:</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
><DIV><FONT face=3DArial color=3D#008000 size=3D2><STRONG><%@ include=20
>file=3D"../edeploy_global/GlobalVars.jsp" %></STRONG></FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
><DIV><FONT face=3DArial size=3D2>The JSP that contains this file is in a
>=
>project=20
>called "edeploy28", that is in the same directory as =
>"edeploy_global". =20
></FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
><DIV><FONT face=3DArial size=3D2>However, I get the following error in =
>WebLogic when=20
>trying to execute this:</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
><DIV><FONT face=3DArial size=3D2>javax.servlet.ServletException: =
>compilation of=20
>/DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested=20
>TokenStreamException: antlr.TokenStreamException: </FONT><FONT =
>size=3D2><FONT=20
>face=3DArial><STRONG><FONT color=3D#ff0000>Could not include=20
>.../edeploy_global/GlobalVars.jsp</FONT><BR></STRONG> &nb=
>sp; =20
>at=20
>weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)<BR> &n=
>bsp; =20
>at=20
>weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI<BR>=
>mpl.java:517)<BR> =20
>at=20
>weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS<BR>=
>ervletContext.java:940)<BR> =20
>at=20
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
>ServletContext.java:928)<BR> =20
>at=20
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
>ServletContext.java:913)<BR> =20
>at=20
>weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4<BR>=
>83)<BR> =20
>at=20
>weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)<BR>&=
>nbsp; =20
>at=20
>weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)<BR> &n=
>bsp; =20
>at=20
>weblogic.j2ee.Application.addComponent(Application.java:116)<BR> &nb=
>sp; =20
>at=20
>weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)<BR> &n=
>bsp; =20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
>oymentTarget.java:283)<BR> =20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
>oymentTarget.java:109)<BR> =20
>at=20
>weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe<BR>=
>r.java:76)<BR> =20
>at java.lang.reflect.Method.invoke(Native=20
>Method)<BR> at=20
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
>eanImpl.java:559)<BR> =20
>at=20
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
>..java:545)<BR> =20
>at=20
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
>ionMBeanImpl.java:285)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>55)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>23)<BR> =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
>bsp; =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
>bsp; =20
>at $Proxy28.addWebDeployment(Unknown=20
>Source)<BR> at=20
>weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe<BR>=
>ployment(WebServerMBean_CachingStub.java:985)<BR> =
> =20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
>oymentTarget.java:269)<BR> =20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep<BR>=
>loymentTarget.java:233)<BR> =20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy<BR>=
>ments(DeploymentTarget.java:194)<BR> &=
>nbsp;=20
>at=20
>weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(<BR>=
>DeploymentTarget.java:158)<BR>
>=
>
>at java.lang.reflect.Method.invoke(Native=20
>Method)<BR> at=20
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
>eanImpl.java:559)<BR> =20
>at=20
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
>..java:545)<BR> =20
>at=20
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
>ionMBeanImpl.java:285)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>55)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>23)<BR> =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
>bsp; =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
>bsp; =20
>at $Proxy27.updateDeployments(Unknown=20
>Source)<BR> at=20
>weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo<BR>=
>yments(ServerMBean_CachingStub.java:2299)<BR> &nbs=
>p; =20
>at=20
>weblogic.management.mbeans.custom.ApplicationManager.startConfigManag<BR>=
>er(ApplicationManager.java:239)<BR> &n=
>bsp;=20
>at=20
>weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio<BR>=
>nManager.java:121)<BR> =20
>at java.lang.reflect.Method.invoke(Native=20
>Method)<BR> at=20
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
>eanImpl.java:559)<BR> =20
>at=20
>weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
>..java:545)<BR> =20
>at=20
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
>ionMBeanImpl.java:285)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>55)<BR> =20
>at=20
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
>23)<BR> =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
>bsp; =20
>at=20
>weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
>bsp; =20
>at $Proxy26.start(Unknown =
>Source)<BR> =20
>at=20
>weblogic.management.configuration.ApplicationManagerMBean_CachingStub<BR>=
>..start(ApplicationManagerMBean_CachingStub.java:435)<BR> =
>; =20
>at=20
>weblogic.management.Admin.startApplicationManager(Admin.java:959)<BR>&nbs=
>p; =20
>at=20
>weblogic.management.Admin.finish(Admin.java:459)<BR> &nb=
>sp; =20
>at=20
>weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)<BR> =
>; =20
>at=20
>weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)</FONT></FONT></DIV></BODY></=
>HTML>
>
>
-
Suse 9.2: can't open include file stdio.h
Hi there,
I'm just starting with studio express in linux and have strange error, I don't know how to solve. Is easy to see:
hello.c:
#include <stdio.h>
int main(int argc, char **argv)
printf("start with studio express for linux\n"); fflush(stdout);
return 0;
CC -o hello.bin hello.c"/opt/sunstudiomars/prod/include/cc/stdio.h", line 5: Error: Could not open include file<stdio.h>.
"hello.c", line 6: Error: The function "printf" must have a prototype.
"hello.c", line 6: Error: stdout is not defined.
3 Error(s) detected.
Then I retry with an adequate include path (there is only one containing the required header):
CC -I/opt/sunstudiomars/prod/include/CC/stlport4 -o hello.bin hello.c"/opt/sunstudiomars/prod/include/cc/features.h", line 10: Error: Could not openinclude file<features.h>.
"/opt/sunstudiomars/prod/include/cc/stdio.h", line 5: Error: Could not open include file<stdio.h>.
"hello.c", line 6: Error: The function "printf" must have a prototype.
"hello.c", line 6: Error: stdout is not defined.
4 Error(s) detected.
Also if file is .cpp extended it's no change. I'm using suse9.2 with all patches and studio express: Sun C++ 5.9 Linux_i386 Build35_2 2006/12/04. Any ideas? Thanks in advance.
rgaaAlso if file is .cpp extended it's no change. I'm
using suse9.2 with all patches and studio express:
Sun C++ 5.9 Linux_i386 Build35_2 2006/12/04. Any
ideas? Thanks in advance.It seems to me that libc-devel is not installed on your system. Please
let us know the output of the following command:
$ rpm -qi glibc-devel
Thanks,
Roman. -
Unable To Include Files In iOS Package
Hi,
I an using the latest release version of Flash Builder, trying to package an app for the iPad. I have an AIR application that I created to run on a desktop, and have modified it to run on the iPad. It works fine, however I cannot package the need resource files it uses, such as jpg, xml, swf, and flv files within the ipa file using Flash Builder. It seems that if I select more than 30-40 of these types of files to include, Flash Builder will not compile the ipa file without some sort of error, the most common one talks about:
"Cannot run program "java.exe" (in directory "C\Users\lee\AppData\Local\Temp\AOT1308010984915"): CreateProcess error=206, The filename or extension is too long"
Now I am guessing that Flash Builder is appending all of my selected files to a command line string or something somewhere, and so it can't handle that long of string on the command line. If I stick to less than 30 files, it works fine, but if I try and the 1000 or so files that I need to, it will not work.
This app would never be in the app store, but rather on internal company iPads. The reason for so many files is the number of products the app covers, and the number of languages it supports. So yes the ipa file would be about 500Mb, but that should not be an issue, since an ipa file is basically a zipped archive. I think this is a bug though in Flash Builder; the program also becomes unresponsive when trying to access the include file list located in Project Properties -> ActionScript Build Packaging -> Apple iOS settings dialog. It make take several minutes before FB becomes responsive again when working with this number of files.
Does anyone have any suggestions?
thanksHello,
Since I first encountered this bug, I have always had my asset files in
subfolders. See the attached screen shot. This is my project folder, and
every subfolder is included except for the com folder, which for some
reason FB copied into the bin directory on it's own.
So I do not think this fixed. In this report, they are not using the same
number of files as I am, so it is possible that this only works with a low
number of files.
thx
Anirudh Sasikumar <[email protected]>
06/23/2011 01:26 AM
Please respond to
[email protected]
To
Keith Lee <[email protected]>
cc
Subject
Unable To Include Files In iOS Package
Caterpillar: Confidential Green Retain Until: 07/23/2011
Here is the bug: https://bugs.adobe.com/jira/browse/FB-31616
The comments seem to indicate that if you put your files in a subfolder
rather than directly in src, it should work.
Let us know how it goes.
-Anirudh -
UIX: Problem with the include file
Hello,
I am totally lost here. I am trying to follow the example of including a code snippet in an uix file from the user guide at: http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/includes.html
The parent file that I have is as follows ( test.uix )
<?xml version = '1.0' encoding = 'windows-1252'?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="test"/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="test">
<corporateBranding>
<image source="" destination="http://oracle.com"/>
</corporateBranding>
<productBranding>
<image source="" destination="http://oracle.com"/>
</productBranding>
<tabs>
<tabBar>
<contents>
<link text="tab1" destination=""/>
</contents>
</tabBar>
</tabs>
<pageHeader>
<globalHeader>
<contents>
<link text="page header" destination=""/>
</contents>
</globalHeader>
</pageHeader>
<globalButtons>
<include ctrl:node="testinclude"/>
</globalButtons>
<copyright>
<styledText text="Copyright Oracle 2006"
styleClass="OraCopyright"/>
</copyright>
<privacy>
<link text="Privacy Statement" destination=""/>
</privacy>
<contents/>
<pageButtons/>
<start/>
<end/>
<about/>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
The include file that I have is as follows ( testinclude.uix )
<?xml version="1.0" encoding="windows-1252"?>
<globalButtonBar xmlns="http://xmlns.oracle.com/uix/ui">
<contents>
<globalButton text="first button"/>
<globalButton text="second button"/>
</contents>
</globalButtonBar>
When I try to compile the test.uix ( which is my parent file ) I get the following error message:
Warning(45,59): test.uix: Parsing error, line 45, column 59: attributes in the namespace:http://xmlns.oracle.com/uix/ui are only allowed with the "data" expressionLanguage
How can I resolve this ?
This is what I am trying to do - and maybe there is a better way:
I have an application with two tabs, each tab has two (or more) subTabs/PageHeaders. Each pageHeader has a sideNav with atleast three elements. Each of the element goes to a differnt page. So far I have managed to create a template for the tabs and the pageHeaders. I do the switch for the pageheaders using the switcher element with the tabSelectedIndex as my "case". However I could not figure out a way to do the switcher based on the tab and the page header selected ( two conditions ), hence I thought of writing an include file with the sideNav and including it in the code corresponding to the page headers ( the code that I have posted is a very simple globalButton include - this is the most simplest thing that I could think of to experiment )
Thanks !Perhaps if you try like this
<sideBar rendered="${uix.rootAttr.indiceTopo != -1}" width="220">
<contents>
<include rendered="${uix.rootAttr.indiceTopo == 0}"
node="${ctrl:parsePage(uix,'/MeuAmbiente/menuMeuAmbiente')}"/>
<include rendered="${uix.rootAttr.indiceTopo == 1}"
node="${ctrl:parsePage(uix,'/Declaracao/menuDeclaracao')}"/>
note , this include tag is inside one mainTemplate.uit and see the rendered atribute is passed by parameter to this template.
As a metter of fact menuMeuAmbiente.uix is only the stiledlist tag and it's styledItens, i have one menu<Module>.uix for each superior tab
I hope this helps; -
How do I get a link to work in an "include" file?
I have link to a picture in a php web page. <a href="../images/testpic.jpg">
index.php
--include/maincontent.inc.php
--images/testpic.jpg
I call this file "maincontent.inc.php" from another file "index.php" in the root directory using a php include statement. <?php include("include/maincontent.inc.php"); ?>
I have tried absolute links also but nothing seems to work.
I have had this problem before and just put the include file in the root directory. That works.
Have had this same problem with a sample from a php book. Figured if the author can do it why can't I :-(.Have you tried opening the links in a different browser to verify it's an issue withing FF locally, and not the website/page itself rather than browser specific?
-
Development environment for 'include' files?
My photo album program only has a single page. Each time you
ask for a new page
it calls itself, with a new set of parameters. Some of the
more complicated
pages are generated by setting up a framework (which
specifies the styles to be
used, among other things) and then loading an include file
into it.
Initially I envisaged these as being simple text files, but
inevitably some of
them became quite complex. Developing these in Dreamweaver is
quite a pain,
because it doesn't know about the CSS styles. I did try
making an HTML shell
file and pasting the include file into it, then cutting and
pasting it again to
save the revised version, but this proved to be cumbersome
and very error-prone.
Is there any way of telling Dreamweaver to load an
environment before loading
the include file?
Clancy> This seems to be about 90% of what I was thinking of,
but I gather that
> when you
> upload the file the hidden stylesheet remains attached
to the file, but is
> effectively commented out.
No. It's only "applied" during Design-time viewing.
> It is a pity that Dreamweaver doesn't include a
'compile' option which
> stripped
> out template and other Dreamweaver specific commands
(end_editable and the
> like)
> from the development file, leaving clean HTML. If this
were done it
> would mean
> that they could use Dreamweaver specific operations much
more flexibly,
> without
> having to worry about using botched up comment commands
to hide them from
> the
> browser.
I guess I don't understand what you are referring to here
with "botched up
comment commands". A comment is a comment, and really does
nothing to the
page at all.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Clancy" <[email protected]> wrote in message
news:[email protected]...
> "Murray *ACE*" <[email protected]>
wrote:
>
>>Use Design-time stylesheets.
>
> Thanks Murray,
>
> This seems to be about 90% of what I was thinking of,
but I gather that
> when you
> upload the file the hidden stylesheet remains attached
to the file, but is
> effectively commented out. However I guess that all that
has to be in the
> file
> is an 'include' statement (or perhaps this is what
actually happens), so
> it
> shouldn't lengthen the file noticeably.
>
> It is a pity that Dreamweaver doesn't include a
'compile' option which
> stripped
> out template and other Dreamweaver specific commands
(end_editable and the
> like)
> from the development file, leaving clean HTML. If this
were done it
> would mean
> that they could use Dreamweaver specific operations much
more flexibly,
> without
> having to worry about using botched up comment commands
to hide them from
> the
> browser.
>
> Clancy
Maybe you are looking for
-
How can I transfer apps from my iphone to my computer?
Our laptop died the other day, so we needed to reload everything from scratch. I've successfully synched up my mail, calendar and contacts, but can't figure out how to get all of my purchased apps to show up on my computer. The only option I can see
-
I am not sure wether this is the right place to be asking this question so if it is not can someone please redirect me. Certain onlime streaming videos take a very long time to load, where on my friends PCs they take only seconds. What can I/do I do
-
Running into issue with undo/redo(ctrl-z,ctrl-y) generating 'Save Changes to filename' pop up after 3 or 4 clicks. Is there a way to turn this off?
-
Syncing an Mac Mini with a Macbook Pro Over Wifi
I'm setting up my new office and I've got a Mac Mini I've had for several years and a Macbook Pro that I use at home. I travel quite a bit and it would be really nice to have my Mac Mini and my Macbook synced. I'd like to work all day on my Mac Mini
-
"Could not find a match" error when passing parameter prefixed with "std::"
We're moving from Solaris 8 to Solaris 10, and I'm compiling our C/C++ applications using the Sun Studio 8 C++ compiler to verify that they'll still run correctly under Solaris 10. All is well except for an error I'm getting on my Solaris 10 system b