J2ee tutorial problem with build.xml
When I am trying to compile the first exapmle "converter" I get following response: Property doesn�t support the "environment" attribute.
Does anyone have a clue what�s the problem???
Maybe you are using an old version of Ant. Download Ant version 1.3 here:
http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin/
regards
Jesper
Similar Messages
-
Problem with build.xml (not compiling)
Hi
I am not sure if this is an ANT specific question or a general XML question. DO forgive me for being naive
I wrote this ant build.xml file for my web applications and I find that it simply refuses to compile any classes. I am sure I am doing something wrong
<project basedir="." default="PortalMar23">
<target name="PortalMar23"/>
<property name="src.dir" value="src"></property>
<property name="build.dir" value="${basedir}/build"></property>
<property name="build.lib" value="${build.dir}/lib"></property>
<property name="dist.dir" value="dist"></property>
<property name="classes.dir" value="${build.dir}/classes"></property>
<property name="build.etc" value="${src.dir}/etc"></property>
<property name="build.resources" value="${src.dir}/resources"></property>
<property name="lib.dir" value="lib"></property>
<property name="web-inf.dir" value="WEB-INF"></property>
<property name="war.name" value="concepts"></property>
<property file="../common.properties"></property>
<!-- Main Target -->
<target name="init">
<mkdir dir="${build.dir}"></mkdir>
<mkdir dir="${classes.dir}"></mkdir>
<mkdir dir="${dist.dir}"></mkdir>
</target>
<target name="compile" depends="init">
<javac classpath="${libs}" compiler="${compiler}" debug="off" deprecation="on" destdir="${classes.dir}" optimize="on" srcdir="${src.dir}">
<include name="org/apache/commons/fileupload/**/*.java"></include>
<include name="com/portalbook/portlets/**/*.java"></include>
<include name="com/portalbook/portlets/content/**/*.java"></include>
</javac>
</target>
<!--
<target depends="init" name="compile">
<javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
<src>
<pathelement location="${src.dir}"></pathelement>
</src>
<classpath>
<fileset dir="${lib.dir}">
<include name="*.jar">
</include>
</fileset>
</classpath>
</javac>
</target>
-->
<target name="buildwar" depends="compile, init">
<war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
<classes dir="${classes.dir}"></classes>
<lib dir="${lib.dir}"></lib>
<webinf dir="${web-inf.dir}"></webinf>
</war>
</target>
<!-- create concepts-lib.jar -->
<jar jarfile="${build.lib}/concepts-lib.jar">
<fileset dir="${classes.dir}"></fileset>
</jar>
<!-- create concepts.war -->
<jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
<fileset dir="${build.resources}/concepts-war"></fileset>
</jar>
<!-- concepts.ear -->
<copy todir="${build.resources}/concepts-ear">
<fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar">
</fileset>
</copy>
<copy todir="${build.resources}/concepts-ear/META-INF">
<fileset dir="${build.resources}/etc" includes="application.xml">
</fileset>
</copy>
<jar jarfile="${build.lib}/concepts.ear">
<fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
</fileset>
</jar>
<target depends="init, compile, buildwar" name="explode">
<taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
<explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
</target>
<target name="clean">
<delete dir="${build.dir}">
</delete>
<delete dir="${dist.dir}">
</delete>
</target>
</project>------------------
Could anybody help me out on this?
thanks a lotWell, it could be because the compile target is a comment..
Remove the <!-- before the compile step and the "-->" after it.
Then, Ant will see the step, and either compile your programs, or give you errors about them.
Dave Patterson -
Problems with reading XML files with ISO-8859-1 encoding
Hi!
I try to read a RSS file. The script below works with XML files with UTF-8 encoding but not ISO-8859-1. How to fix so it work with booth?
Here's the code:
import java.io.File;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import java.net.*;
* @author gustav
public class RSSDocument {
/** Creates a new instance of RSSDocument */
public RSSDocument(String inurl) {
String url = new String(inurl);
try{
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(url);
NodeList nodes = doc.getElementsByTagName("item");
for (int i = 0; i < nodes.getLength(); i++) {
Element element = (Element) nodes.item(i);
NodeList title = element.getElementsByTagName("title");
Element line = (Element) title.item(0);
System.out.println("Title: " + getCharacterDataFromElement(line));
NodeList des = element.getElementsByTagName("description");
line = (Element) des.item(0);
System.out.println("Des: " + getCharacterDataFromElement(line));
} catch (Exception e) {
e.printStackTrace();
public String getCharacterDataFromElement(Element e) {
Node child = e.getFirstChild();
if (child instanceof CharacterData) {
CharacterData cd = (CharacterData) child;
return cd.getData();
return "?";
}And here's the error message:
org.xml.sax.SAXParseException: Teckenkonverteringsfel: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (radnumret kan vara f�r l�gt).
at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
at org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(InputEntity.java:914)
at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1183)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:653)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
at getrss.RSSDocument.<init>(RSSDocument.java:25)
at getrss.Main.main(Main.java:25)I read files from the web, but there is a XML tag
with the encoding attribute in the RSS file.If you are quite sure that you have an encoding attribute set to ISO-8859-1 then I expect that your RSS file has non-ISO-8859-1 character though I thought all bytes -128 to 127 were valid ISO-8859-1 characters!
Many years ago I had a problem with an XML file with invalid characters. I wrote a simple filter (using FilterInputStream) that made sure that all the byes it processed were ASCII. My problem turned out to be characters with value zero which the Microsoft XML parser failed to process. It put the parser in an infinite loop!
In the filter, as each byte is read you could write out the Hex value. That way you should be able to find the offending character(s). -
Problem with generating xml and nested cursor (ora-600)
I have a problem with generating xml (with dbms_xmlquery or xmlgen) and nested cursors.
When I execute the following command, I get a ORA-600 error:
select dbms_xmlquery.getxml('select mst_id
, mst_source
, cursor(select per.*
, cursor(select ftm_fdf_number
, ftm_value
from t_feature_master
where ftm_mstr_id = pers_master_id ) as features
from t_person per
where pers_master_id = mst_id ) as persons
from f_master
where mst_id = 3059435')
from dual;
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-00600: internal error code, arguments: [kokbnp2], [1731], [], [], [], [], [], []
</ERROR>
The problem is the second cursor (t_feature_master).
I want to generate this:
<master>
<..>
<persons>
<..>
<features>
<..>
</features>
</persons>
<persons>
<..>
<features>
<..>
</features>
</persons>
</master>
If i execute the select-statement in sql-plus, then I get the next result.
MST_ID MST_SOURCE PERSONS
3059435 GG CURSOR STATEMENT : 3
CURSOR STATEMENT : 3
PERS_MASTER_ID PERS_TITLE PERS_INITI PERS_FIRSTNAME PERS_MIDDL PERS_LASTNAME
3059435 W. Name
CURSOR STATEMENT : 15
FTM_FDF_NUMBER FTM_VALUE
1 [email protected]
10 ....
I use Oracle 8.1.7.4 with Oracle XDK v9.2.0.5.0.
Is this a bug and do somebody know a workaround?Very simple...Drop all type objects and nested tables and create them again. You will get no error. I'll explain the reason later.
-
Problem with the XML in Word 2007 (Word Template)
Hi Experts,
i am new on CRM 2007 and i have a problem with the XML Structure of the Word Template.
First i built a Web Service Design Tool. Then i saw on the Testpage, that it works.
So i started the Document Templates and created a new Template. Object Type was BUS2000126 - CRM Business Activity. Web Service was my created and tested Web Service Tool.
As i opened the Word 2007 with the XML-Structure, i recognized, that there was something wrong.
The Responce on my Testpage from the Web Service Tool had the following structure:
response (test.types.p1.CrmostZlaWord5ReadResponse)
Output (test.types.p1.CrmostZla010RoszlaWord5001)
ZlaWord5 (test.types.p1.CrmostZla010Rosbtorder)
Administrativeheaderoforder (test.types.p1.CrmostZla010Rosbtorderhea001)
Partiesinvolvedofheader (test.types.p1.CrmostZla010Rosbtheaderpa001)
Allpartiesinvolved (test.types.p1.CrmostZla010Rosbtpartnera002[]) Displaying 3 elements of 3
element1 (test.types.p1.CrmostZla010Rosbtpartnera002)
Btpartneraddress (test.types.p1.CrmostZla010Rosbtpartnera001)
My Problem is now, that the XML-Structure got not that point "element1".
Instead of "element1" there is the point "item" in my XML-Structure in Word 2007.
I guess that is the Problem why i am not getting the fields of the Btpartneraddress filled in my Word.
Can anyone help me? Or put me in the right direction that i can change the XML?
Thanks for your help
AndréHi andré, I guess the issue is coming from the fact that you selected "AllPartiesInvolved" and that may contain any numbers of entries. So when you test your webservice, you put a key and then get a result for that key, and in that case you might get "element1" until "element3" for example if there was 3 partners involved in you activity.
But, when you design your template, you don't have a key at that moment, so in the Web Service structure, you have "items" which stands for all the possible entries you might retrieve at runtime. I guess you could use an index in your template to specify which item you need, but this is quite hasardeous, so i would be you, I would not design my web service to use "AllPartiesInvolved" but rather a specific Partner type like contact person for instance.
Regards,
Xavier -
Problem with castor xml mapping
Hi,
we have following problem with castor xml mapping.
How to use references in the collections(Hashmap or vector)?
WE have a method called getAttribute map which will return a hashmap consist different type of objects. We want to keep only the
references of objects if that object occurs more than once,instead of keeping the whole object
Following is the the xml mapping file.
<mapping>
<class name="com.opvista.ndtool.core.mos.ManagedObject" identity="Id" auto-complete="false" verify-constructable="false">
<map-to xml="ManagedObject"/>
<field name="Id" get-method="getId" set-method="setId" type="string">
<bind-xml name="Id" node="attribute"/>
</field>
<field name="AttributeMap" type="org.exolab.castor.mapping.MapItem" collection="map" get-method="getAttributeMap">
<bind-xml name="AttributeMap" node="element">
<class name="org.exolab.castor.mapping.MapItem">
<field name="key" type="java.lang.Object">
<bind-xml name="key" node="attribute"/>
</field>
<field name="value" type="java.lang.Object">
<bind-xml name="value" node="element" reference="true"/>
</field>
</class>
</bind-xml>
</field>
</class>
</mapping>
we are using reference=true for the values. But it will throw below exception.
Unable to resolve ID for instance of class 'java.lang.String' due to the following error: Unable to resolve ClassDescriptor.
at org.exolab.castor.xml.Marshaller.getObjectID(Marshaller.java:1988)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1628)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1831)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1814)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1825)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:821)
Please help us to overcome from this problem?
Thanks,
Dileepfor your ref here is what i think the basic mapping file would look like
<class name="Person">
<map-to xml="person"/>
<field name="name" type="string">
<bind-xml name="name" node="attribute" />
</field>
<field name="age" type="string">
<bind-xml name="age" node="attribute" />
</field>
</class>
<class name="MetaPerson">
<map-to xml="person"/>
<field name="dependents" type="string">
<bind-xml name="dependents" node="attribute" />
</field>
<field name="presentAdd" type="string">
<bind-xml name="present_add " node="attribute" />
</field>
<field name="permanentAdd" type="string">
<bind-xml name="permanent_add " node="attribute" />
</field>
</class>
however i am still not clear as to how i can use the metaperson object in the person class as well as in the mapping file.
hope this gives a better idea abt my problem statement.
Please help me out -
Hello,
I have a big problem with web.xml.
i can run the servlet demos with the default web.xml, but when i try to user a costum web.xml files, i receive a 404 page not found on a link.
i have some dificulty to post here. but can somebody help my with my web.xml files?
thanks for your help.
have a nice day!Be careful with the place of your files and folders. It's possible that you've just mentioned the cause of your problem.
My web.xml is
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>gco</display-name>
<description>gco webapplicaties</description>
<servlet>
<servlet-name>MopoController</servlet-name>
<servlet-class>org.gertcuppens.controller.MopoController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MopoController</servlet-name>
<url-pattern>/MOPO</url-pattern>
</servlet-mapping>
</web-app>
When I want to call my web application locally, I use the URL http://localhost:8080/gco/MOPO.
The http://localhost:8080 calls Tomcat. With /gco, Tomcat knows it should look for a folder gco inside the webapps folder. This one should contain a WEB-INF/web.xml folder for further instructions.
With /MOPO Tomcat knows, having read the web.xml files of all webapps folders at start, it should look for a servlet with the name MopoController. And this MopoController points to the class org.gertcuppens.controller.MopoController. So, Tomcat knows where to find everything.
Try to see whether your Tomcat can find everything inside the folders using your web.xml file. -
J2EE 1.4 Tutorial - problems with deploying web services
Hi folks,
I have a problem with the deployment of the example "MyHelloService" (chapter 8: Building Web Services With JAX-RPC).
I've installed the application server properly and executed all the necessary steps written down in the tutorial (Packaging the Service and Specifying the Endpoint Address).
While deploying the service I get the following error message:
Deploy action running...
com.sun.enterprise.admin.common.exception.DeploymentException: com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: MyHelloService
cause: Premature end of file.
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.deployWarModuleArchiveOrDirectory(ManagedServerInstance.java:1099)
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.deployWarModule(ManagedServerInstance.java:1003)
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:324)
at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:663)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:212)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:218)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:808)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:781)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:223)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.callInvoke(AdminAPIEntryServlet.java:203)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.callMBean(AdminAPIEntryServlet.java:162)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.doGet(AdminAPIEntryServlet.java:103)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.doPost(AdminAPIEntryServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)
!!! Operation Failed !!!
[Completed (time=4.1sec, status=13)]
I verified the deployment descriptor and unpacked the WAR, but there seems to be no mistake. I don't know what to do...I can't imagine that this is a bug, so maybe I've done something wrong.
Any help would be appreciated.Thank you for your answer, but I encountered the problem with the defect WAR file already in chapter 3 (Getting Started with Web Applications). I searched the forum and found the thread you recommended, made the adjustments in the deploytool.bat file and so fixed the problem.
Thus your recommendation is unfortunately not the right solution for my problem.
For verification purposes, here is an extract from my deploytool.bat file:
set _USER_COUNTRY=US
set _USER_LANG=en
set _USER_REGION=US
set _MAIN=com.sun.enterprise.tools.deployment.ui.Main
set _CPATH=%LIB%\appserv-assemblytool.jar;%AS_IMQ_LIB%\activation.jar; %AS_JHELP%\jhall.jar;%LIB%\appserv-admin.jar;%LIB%\appserv-cmp.jar; %LIB%\appserv-rt.jar;%LIB%\j2ee.jar; %AS_INSTALL%\share\lib\jaxrpc-impl.jar;%LIB%\appserv-ext.jar; %LIB%\deployhelp.jar
echo %_JAVACMD% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.endorsed.dirs=%AS_INSTALL%\share\lib\endorsed -Dcom.sun.aas.defaultUserName="%AS_ADMIN_USER%" -Dcom.sun.aas.defaultPassword="%AS_ADMIN_PASSWORD%" -Duser.country="%_USER_COUNTRY%" -Duser.language="%_USER_LANG%" -Duser.region="%_USER_REGION%" -cp %_CPATH% %_MAIN% %1 %2
%_JAVACMD% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.endorsed.dirs=%AS_INSTALL%\share\lib\endorsed -Dcom.sun.aas.defaultUserName="%AS_ADMIN_USER%" -Dcom.sun.aas.defaultPassword="%AS_ADMIN_PASSWORD%" -Duser.country="%_USER_COUNTRY%" -Duser.language="%_USER_LANG%" -Duser.region="%_USER_REGION%" -cp %_CPATH% %_MAIN% %1 %2In addition, I used the verification option from the deploytool and checked the deployment descriptor with the following results (only passed tests):
Test Name : tests.web.ServletLargeIcon
There are no large-icon elements within the servlet [ helloservice.HelloImpl ].
Test Name : tests.web.ServletClass
Servlet class [ helloservice.HelloImpl ] resides in the WEB-INF/classes directory.
Test Name : tests.web.SessionTimeout
Servlet session-timeout [ 30 ] element defines the default session timeout interval expressed in whole minutes.
Test Name : tests.web.ServletInterface
Not Applicable since, Servlet [ helloservice.HelloImpl ] is a JAXRPC Endpoint.
Test Name : tests.web.ParamValue
Test Name : tests.web.ServletSmallIcon
There are no small-icon elements in the servlet [ helloservice.HelloImpl ].
Test Name : tests.web.WebName
Web-App display name is : [ MyHelloService.war ]
Test Name : tests.web.ServletParamName
ServletParam name exists in the web application.
Test Name : tests.web.ResourceAuth
Test Name : tests.web.ServletParamValue
Test Name : tests.web.JarContainsXMLFile
Found deployment descriptor xml file [ WEB-INF/web.xml ]All the other tests were notapplicable (no errors).
Moreover, I unpacked the WAR file (MyHelloService.war): all necessary XML files were included and well-formed. -
J2EE Tutorial: Exception when building with ant
I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:
<property environment="myenv" />
The output of the "ant converter" command is:
Buildfile: build.xml
init:
BUILD FAILED
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:248)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 1 second
My best guess is that the "myenv" line in the build.xml requires some additional attribute. I'm using ant version 1.3. My OS is Solaris (noted for possible environment-related issues).
Thanks in advance!
Eric SmithOn Windows XP Pro, the line
<property environment="myenv" />
in the init target of build.xml for the j2ee tutorial examples triggers a windows error message:
16 bit MS-DOS Subsystem
=======================
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to terminate the application.
<<Close>> <<Ignore>>
So it looks as if ant is trying and failing to access the winnt system environment here.
According to Ant Developers Handbook (Sams, October 2002, chapter 4, p. 151), the ant environment property "specifies a prefix, giving access to OS-specific environment variables. This is not supported on all platforms." Until this problem is fixed, it appears that on XP systems anyway, any ant settings in build.xml files that rely on direct access to the system environment will fail. Here is some debug output from the j2ee tutorial examples init target which demonstrates this:
C:\apps\j2sdkee1.3.1\j2eetutorial\examples>ant init
Buildfile: build.xml
init:
[echo] starting init target
[echo] reached marker 1
[echo] reached marker 2
[echo] value of J2EE_HOME is ${myenv.J2EE_HOME}
[echo] finished init target
BUILD SUCCESSFUL
where the task:
<property environment="myenv" />
(which generates the OS error popup noted above) occurs between marker 1 and marker 2. Clearly the value of J2EE_HOME is NOT being successfully read from the system environment here. -
ADF Tutorial: problem with chapter 10 (Deploying the Application)
Hi!
I'm learning from ADF Tutorial (http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/index.htm) and I have problem with chapter 10. After deploying finished application on the server (OracleAS10g) I try to test it but I get this error everytime:
500 Internal Server Error
Servlet error: An exception occured. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
I get this error after typing login credentials. I didn't consult the log, because I don't know where to look for it (could you tell me please?). I did everything as described in the Tutorial, but I know there are mistakes (in Tutorial), so I don't know what to do.
Thanks for any advices.Hi,
I'm running Windows XP, JDeveloper version 10.1.3.4.0, Oracle AS 10g version 10.1.3.4.0 with patch. When I tried to deploy same application on Windows Vista and OC4J, it work perfectly, which really confuses me. I think I found log file so I will post it here. It's long, I'm sorry about that:
09/01/23 16:07:07.62 SRTutorial: Servlet error
JBO-30003: Fond aplikace (oracle.srtutorial.datamodel.SRPublicServiceLocal) selhal při odhlášení modulu aplikace z důvodu následující výjimky:
oracle.jbo.JboException: JBO-29000: JBO-29000: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1517)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1381)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
at oracle.adf.model.BindingContext.get(BindingContext.java:483)
at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:268)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1517)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1381)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
at oracle.adf.model.BindingContext.get(BindingContext.java:483)
at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:268)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
oracle.classloader.util.AnnotatedClassFormatError: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java:1462) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:167) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1674) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName (JDK2ClassLoader.java:38) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.JBOClass.forName (JBOClass.java:164) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.JBOClass.findCustomClass (JBOClass.java:177) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML (ApplicationModuleDefImpl.java:836) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML (ApplicationModuleDefImpl.java:770) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.MetaObjectManager.loadFromXML (MetaObjectManager.java:534) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject (DefinitionManager.java:579) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:441) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:374) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:356) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.MetaObjectManager.findMetaObject (MetaObjectManager.java:700) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject (ApplicationModuleDefImpl.java:232) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule (ApplicationModuleImpl.java:401) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleHomeImpl.create (ApplicationModuleHomeImpl.java:91) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule (DefaultConnectionStrategy.java:139) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule (DefaultConnectionStrategy.java:80) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource (ApplicationPoolImpl.java:2468) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.pool.ResourcePool.createResource (ResourcePool.java:536) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule (ApplicationPoolImpl.java:2094) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout (ApplicationPoolImpl.java:1961) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule (ApplicationPoolImpl.java:2793) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:453) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule (HttpSessionCookieImpl.java:233) [C:/OracleAS/BC4J/lib/adfmweb.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:424) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:419) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule (DCJboDataControl.java:1517) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest (DCJboDataControl.java:1381) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCDataControlReference.getDataControl (DCDataControlReference.java:99) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.get (BindingContext.java:457) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findSpelObject (DCUtil.java:280) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findSpelObject (DCUtil.java:248) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findContextObject (DCUtil.java:383) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCIteratorBinding.<init> (DCIteratorBinding.java:127) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorBinding.<init> (JUIteratorBinding.java:60) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding (JUIteratorDef.java:87) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding (JUIteratorDef.java:51) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding (DCIteratorBindingDef.java:277) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables (DCBindingContainerDef.java:296) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer (DCBindingContainerDef.java:425) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer (DCBindingContainerReference.java:54) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer (DCBindingContainerReference.java:44) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.get (BindingContext.java:483) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.findBindingContainer (BindingContext.java:313) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.findBindingContainerByPath (BindingContext.java:633) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingRequestHandler.isPageViewable (BindingRequestHandler.java:268) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingRequestHandler.beginRequest (BindingRequestHandler.java:169) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.servlet.ADFBindingFilter.doFilter (ADFBindingFilter.java:161) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:621) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:370) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:871) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:453) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:221) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:122) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:111) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06] -
Compilation problem in build.xml
Hi,
This is my build.xml
<?xml version="1.0"?>
<project name="TestApp" default="compile">
<description>TestApp</description>
<property name="J2EE_HOME_13" value="/usr/testapp/bea921/jdk150_06"/>
<property name="J2EE_HOME" value="${J2EE_HOME_13}"/>
<property name="WL_HOME" value="/usr/testapp/bea921/weblogic92"/>
<property name="WLLIB" value="${WL_HOME}/server/lib"/>
<property name="CPATH1" value="${J2EE_HOME}/lib/tools.jar:${J2EE_HOME}/lib/j2ee.jar"/>
<property name="CPATH2" value="${WL_HOME}/server:${WLLIB}/weblogic_sp.jar:${WLLIB}/weblogic.jar"/>
<property name="CPATH" value="${CPATH1}:${CPATH2}"/>
<property name="src.dir" location="/home/mashan/WEB-INF/classes/com/data" />
<property name="classes.dir" location="/home/mashan/WEB-INF/classes/com/data" />
<property name="javac.debug" value="on" />
<target name="compile" description="Compile TestApp">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${CPATH}" debug="${javac.debug}">
</javac>
</target>
</project>
Here both source and dest. dir are same.My build.xml is in WEB-INF/classes , when i run the build.xml it is generating a folder at /home/mashan/WEB-INF/classes/com/data/com/data/*.class files.
Where i want to generate the class files at /home/mashan/WEB-INF/classes/com/data/*.class.
So that the server can pick up the file from the root directory. Please do rectify this problem.
Where i am going wrong with this build.xml. Im using weblogic server.Please do update the build.xml.
ThanksI also have this problem. When I build the build.xml file, errors happen:
Buildfile: D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml
createDatabase:
refreshSchema:
BUILD FAILED
D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml:20: The following error occurred while executing this line:
D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:89: The following error occurred while executing this line:
D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:54: The following error occurred while executing this line:
D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:26: D:\softjdevstudio1111TP2\jdbc\lib not found.
Total time: 0 seconds
My build.properties is set as following (meanwhile, I can connect database 10gR2):
# Master Ant properties file for Fusion Order Demo
# All build files refer to this master list of properties
# $Id: build.properties 812 2007-02-20 07:14:33Z lmunsing $
# Base Directory for library lookup
jdeveloper.home=D:\soft\jdevstudio1111TP2
src.home=..//..
# JDBC info used to create Schema
jdbc.driver=oracle.jdbc.OracleDriver
jdbc.urlBase=jdbc:oracle:thin:@localhost
jdbc.port=1521
jdbc.sid=orcl
# Information about the default setup for the demo user
db.adminUser=system
db.adminUser.password=welcome1
db.demoUser=FOD
db.demoUser.password=welcome1
db.demoUser.tablespace=USERS
db.demoUser.tempTablespace=TEMP
-------------------------------------------------------------------------------------- -
Java EE tutorial, problem with ANT populating database
Hi!
I have followed the instructions in the Java EE tutorial to set up the enviroment but when I execute the command "ant create tables" I get this output:
C:\javaeetutorial5\examples\web\bookstore1>ant create-tables
Buildfile: build.xml
-pre-init:
init:
check:
tools:
start-db:
BUILD FAILED
C:\javaeetutorial5\examples\bp-project\app-server-ant.xml:140: The directory you specified does not existI have changed in the build.properties file to this:
# The SDK's default installation on Windows is c:/Sun/SDK
# The Application Server's default installation on Windows is
# c:/Sun/AppServer
javaee.home=C:\Sun\SDK
javaee.tutorial.home=C:\javaeetutorial5
# machine name (or the IP address) where the applications will be deployed.
javaee.server.name=localhost
# port number where the app-server is accessed by the users
javaee.server.port=8080
# port number where the admin server of the app-server is available
javaee.adminserver.port=4848
# Uncomment the property j2ee.server.username,
# and replace the administrator username of the app-server
javaee.server.username=admin
# Uncomment the property j2ee.server.passwordfile,
# and replace the following line to point to a file that
# contains the admin password for your app-server.
# The file should contain the password in the following line:
# AS_ADMIN_PASSWORD=adminadmin
# Notice that the password is adminadmin since this is
# the default password used by the glassfish app-server installation.
javaee.server.passwordfile=${javaee.tutorial.home}\examples\common\admin-passwo rd.txt
appserver.instance=server
# Uncomment and set this property to the location of the browser you
# choose to launch when an application is deployed.
# On Windows and Mac OS X the default browser is used.
#default.browser=\Applications\Firefox.app\Contents\MacOS\firefox-bin
# Database vendor property for db tasks
db.vendor=javadb
# Digital certificate properties for mutual authentication
keystore=${javaee.tutorial.home}\examples\jaxws\simpleclient-cert\support\clien t_keystore.jks
truststore=${javaee.home}\domains\domain1\config\cacerts.jks
keystore.password=changeit
truststore.password=changeitAny idea which directory the error refers to?
I�m using Netbeans 5.5 and have a connection to my local mysql database.Ok, this is the build.xml from bookstore1:
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="bookstore1" default="default" basedir=".">
<description>Builds, tests, and runs the project bookstore1.</description>
<property name="is.war.module" value="true" />
<property name="uses.db.sql.file" value="true"/>
<path id="common.jars">
<filelist dir="../bookstore" files="build.xml"/>
</path>
<macrodef name="iterate">
<attribute name="target"/>
<sequential>
<subant target="@{target}" failonerror="false">
<buildpath refid="common.jars"/>
</subant>
</sequential>
</macrodef>
<import file="../../bp-project/main.xml" />
<target name="-pre-deploy" unless="netbeans.home">
<antcall target="create-tables"/>
</target>
<target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
<target name="build-common" unless="netbeans.home" depends="init">
<iterate target="default"/>
</target>
<target name="copy-common-jars" unless="netbeans.home" depends="init">
<mkdir dir="${build.web.dir}/WEB-INF/lib"/>
<copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
</project>And the build.xml in bookstore looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="bookstore1" default="default" basedir=".">
<description>Builds, tests, and runs the project bookstore1.</description>
<property name="is.war.module" value="true" />
<property name="uses.db.sql.file" value="true"/>
<path id="common.jars">
<filelist dir="../bookstore" files="build.xml"/>
</path>
<macrodef name="iterate">
<attribute name="target"/>
<sequential>
<subant target="@{target}" failonerror="false">
<buildpath refid="common.jars"/>
</subant>
</sequential>
</macrodef>
<import file="../../bp-project/main.xml" />
<target name="-pre-deploy" unless="netbeans.home">
<antcall target="create-tables"/>
</target>
<target name="-pre-compile" unless="netbeans.home" depends="init,build-common,copy-common-jars"/>
<target name="build-common" unless="netbeans.home" depends="init">
<iterate target="default"/>
</target>
<target name="copy-common-jars" unless="netbeans.home" depends="init">
<mkdir dir="${build.web.dir}/WEB-INF/lib"/>
<copy file="${reference.bookstore.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
</project>And the main.xml in \bp-projects looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at:
http://developer.sun.com/berkeley_license.html
$Id: main.xml,v 1.2 2006/04/12 17:20:13 ie139813 Exp $ -->
<!-- main.xml: this is the file that should be included by the project
build files. It will figure out whether it is running from inside Netbeans
or command line and include appropriate tasks.
@Author: Inderjeet Singh -->
<project name="main" default="dummy-default">
<property file="build.properties"/>
<property value="1.5" name="default.javac.source"/>
<property value="1.5" name="default.javac.target"/>
<condition property="common-ant-tasks-file"
value="${ant.file}/../nbproject/build-impl.xml"
else="${ant.file.main}/../command-line-ant-tasks.xml">
<and>
<isset property="netbeans.home"/>
<available file="${ant.file}/../nbproject/build-impl.xml"/>
</and>
</condition>
<import file="${common-ant-tasks-file}"/>
<target name="dummy-default"/>
</project> -
[JS CS3] Problem with iterating xml tags
Hello,
Below is a script that is supposed to find text in a document and then tag it with an xml tag. I have run into a problem, which if I solve in the way I know how, causes another problem.
When I iterate in a positive direction--i++--the first instance of the text (in this example "abc") is correctly tagged. But the second instance the tag recedes by two characters, that is, tags the three characters prior to the "c." A third instance will recede two more characters, ad nauseam, if my Latin is correct.
The solution is to iterate backwards, i.e., i--. But this causes another problem. If there is more than one story, then the xml structure reverses the order of the stories. The elements within a story are ordered correctly however.
So why is this happening and how can I solve it?
Thanks,
Tom
var myDoc = app.activeDocument;
var findABC = theTextFinder(myDoc,"abc");
xmlTagIt(myDoc,"abc",UIColors.RED,findABC);
//*****functions*******
function xmlTagIt(docRef, tagName,colorOfTag, arrToTag){
var tagName, colorOfTag, arrToTag;
myDoc.xmlViewPreferences.showStructure = true;
myDoc.xmlViewPreferences.showTaggedFrames =true;
myDoc.xmlViewPreferences.showTagMarkers = true;
myDoc.xmlViewPreferences.showTextSnippets =false;
myDoc.xmlPreferences.defaultStoryTagColor = UIColors.WHITE;
var rootElement = myDoc.xmlElements.item(0);
if (myDoc.xmlTags.item(tagName) == null) {
var tagRef = myDoc.xmlTags.add(tagName, colorOfTag);
} else {//if tag already exists then stop the script. Avoid double tagging
myDoc.xmlViewPreferences.showStructure = true;
alert("You have already run this script.");
exit();
}//end else
//for (var i = arrToTag.length-1; 0 <= i; i--){
for (var i = 0; i <= arrToTag.length-1; i++){
var elementRef = rootElement.xmlElements.add (tagRef,arrToTag[i]);
}//end for i
}//end function xmlTagIt
function theTextFinder(docRef,textFindIt){//last argument is the string of text to find
app.findTextPreferences = NothingEnum.NOTHING;
app.changeTextPreferences = NothingEnum.NOTHING;
app.findTextPreferences.findWhat = textFindIt;
var arrTextFindIt = myDoc.findText();
return arrTextFindIt;
}//end theTextFinderDave,
Thanks for the reply.
I'm not sure what you mean by "convert the references on the fly." You mean find a way to advance two characters forward and tag that? In the script I submitted here I am only searching for "abc," which of course I would not search or at all in real life. The script uses grep to search for about twenty different typographical errors that typically appear and tags them all.
Reiterating backwards seems, at first sight the way to go. But I haven't a clue as to how to reverse the order of the stories. I can get an array of stories, and array.reverse() them, but am not sure how to then make the script put this reversed order into the xml structure. Any hints?
There, of course is bigger problem with the stories. If the document is written with one story created after another then the order of them is top to botom. But if say a text frame edited into the middle of all this, that story is still the last one in the xml structure. At least in one test, that was so. Maybe the way to solve this is to build an array of stories that have as one xml attribute the page it first appears on. Then order the array according to that attribute.
Any advice you give will be appreciated.
Thanks,
Tom -
Problems with building blueprints catalog
Hi,
I've got some problems building bp-catalog v 0.8 on a windows 7 machine, GlassFish 3.0.1.
I've properly changed build.properties file and executed "ant setup" but when I issues the "ant run" command, the compiler can't find packages (JSF packages mainly).
Why it cannot find jars? The ant script should include glassfish jee jars into classpath...right?
I've got the same problem with Petstore but since it's a netbeans ready project, I easily imported it and configured the runtime to GlassFish, and this solved the problem.
With the bp catalog, it could be pretty handy to build and deploy all the projects, without to import one by one in netbeans and manually solve the missing references problems.
Many thanks in advance:
E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8>ant run
Buildfile: E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\build.xml
default:
default:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling bp-ui-5
[javac] Compiling 61 source files to E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\build\classes
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:14: package javax.faces.component.html does not exist
[javac] import javax.faces.component.html.HtmlInputText;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:15: package javax.faces.context does not exist
[javac] import javax.faces.context.FacesContext;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:16: package javax.el does not exist
[javac] import javax.el.MethodExpression;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:45: cannot find symbol
[javac] symbol: class HtmlInputText
[javac] public class AutoCompleteComponent extends HtmlInputText {
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:47: cannot find symbol
[javac] symbol : class MethodExpression
[javac] location: class com.sun.javaee.blueprints.components.ui.autocomplete.AutoCompleteComponent
[javac] private MethodExpression completionMethod;
[javac] ^Hi,
I've got some problems building bp-catalog v 0.8 on a windows 7 machine, GlassFish 3.0.1.
I've properly changed build.properties file and executed "ant setup" but when I issues the "ant run" command, the compiler can't find packages (JSF packages mainly).
Why it cannot find jars? The ant script should include glassfish jee jars into classpath...right?
I've got the same problem with Petstore but since it's a netbeans ready project, I easily imported it and configured the runtime to GlassFish, and this solved the problem.
With the bp catalog, it could be pretty handy to build and deploy all the projects, without to import one by one in netbeans and manually solve the missing references problems.
Many thanks in advance:
E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8>ant run
Buildfile: E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\build.xml
default:
default:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling bp-ui-5
[javac] Compiling 61 source files to E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\build\classes
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:14: package javax.faces.component.html does not exist
[javac] import javax.faces.component.html.HtmlInputText;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:15: package javax.faces.context does not exist
[javac] import javax.faces.context.FacesContext;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:16: package javax.el does not exist
[javac] import javax.el.MethodExpression;
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:45: cannot find symbol
[javac] symbol: class HtmlInputText
[javac] public class AutoCompleteComponent extends HtmlInputText {
[javac] ^
[javac] E:\user\My Documents\Learning\SoftwareEngineering\JavaProjects\bpcatalog-ee5-ea-0.8\components\ui\src\java\com\sun\javaee\blueprints\components\ui\autocompl
ompleteComponent.java:47: cannot find symbol
[javac] symbol : class MethodExpression
[javac] location: class com.sun.javaee.blueprints.components.ui.autocomplete.AutoCompleteComponent
[javac] private MethodExpression completionMethod;
[javac] ^ -
Hi All,
I have an unique problem.
I have a build file which is runnin successfully on a local but not on the server.The error is class not found, so definitely problem with classpath.
but acc. to my knowledge the build file is setting up the classpath in the file only, so its independent of my classpath settings in the system.
Please help
the snippet fo build file
<project
name = "SqlcSamples"
default = "bundle"
basedir = ".">
<property file = "build-sqlc-eu.properties"/>
<taskdef name = "sqlc" classname = "com.pavelvlasov.sqlc.StatementCompilerTask">
<classpath>
<fileset dir = "${project.components.lib}" includes = "**/*.jar"/>
<fileset dir = "${sqlc.home}/jars" includes = "**/*.jar"/>
</classpath>
</taskdef>
[/code]
its saying 'com.pavelvlasov.sqlc.StatementCompilerTask' class not able to foundBest is to use the ant documentation; I often need it.
ant without options will use build.xml, as "makefile".
In the build.xml you define your default target.
project basedir="." default="all"
property name="src.dir" value="."/
property name="classes.dir" value="../build/classes"/
target depends="compile" description="Build everything." name="all"
mkdir dir="${classes.dir}"/
javac debug="${debug}" deprecation="${deprecation}" destdir="${classes.dir}" srcdir="${src.dir}"
classpath
pathelement location="${libs.dir}/jdom.jar"/
/classpath
/javac
Maybe you are looking for
-
Error while changing the Display Attribute into Navigational Attribute
Hi all.. Gud Mrng. I was changed the attribute (product) from display attribute into navigational attribute and while save and activating the info object it is not getting activated and it is throwing the below error message. Error Message: u201CThe
-
Consuming dataservice as a stand alone java client, givng an exception com
when i am trying to access data service from a stand alone java application ,it giving an exception . The dataservice is in remote machine. Exception: com.bea.dsp.dsmediator.client.exception.SDOMediatorException: weblogic.rjvm.PeerGoneException: ; ne
-
I need to crop image in TIFF format. what product i need to buy
i need to crop image in TIFF format. what product i need to buy
-
Message driven beans practical use
Hi, I wanted to know,where Message driven beans are used in actual commercial projects??? Thanks in advance.
-
MW support 12.1.3
Hi, is there a date foreseen for a new release which supports 12.1.1 to 12.1.3 FYI: busy on first test upgrade from 11.5.10.2 to 12.1.3 krgds Patrik