J2ee tutorial. "ant create-tables" problem
I am following Java ee 5 tutorial. In one of its sections it asks me to populate the db by following the below instructions:
1. In a terminal window, go to the books directory or any one of the bookstore1 through
bookstore6 example directories.
2. Start the JavaDB database server. For instructions, see ?Starting and Stopping the JavaDB
Database Server? on page 69. You don?t have to do this if you are usingNetBeans IDE. It
starts the database server automatically.
3. Type ant create-tables. This task runs a command to read the file tutorial.sql and
execute the SQL commands contained in the file.
4. At the end of the processing, you should see the following output:
[sql] 181 of 181 SQL statements executed successfully
when i reach step 3 and type ant create-tables, i get the following error:
C:\netbeans-javatutorials\JavaEE5Tutorial\J2EEe-tutorial_5\examples\web\books>ant create-tables
Buildfile:build.xml
-pre-init:
check:
BUILD FAILED
C:\netbeans-javatutorials\JavaEE5Tutorial\J2EEe-tutorial_5\examples\bp-project\app-server-ant.xml:419: Property javaee.server.passwordfile not specified. Please specify the javaee.server.passwordfile property in 'bp-project/build.properties'. You will also need to ensure that the passwordfile is present and contains AS_ADMIN_PASSWORD.
Total time :0 seconds
I have configure the build.properties file as follows:
# Set the property javaee.home, using the path to your
# GlassFish installation.
# C:/Program Files/glassfish-v3 is the GlassFish v3 default installation
# path on Windows.
javaee.home=C:/Sun/AppServer
# Set the property javaee.tutorial.home to the location where you
# installed the Java EE Tutorial bundle.
javaee.tutorial.home=C:/netbeans-javatutorials/JavaEE5Tutorial/J2EEe-tutorial_5
# machine name (or the IP address) where the applications will be deployed.
javaee.server.name=localhost
# port number where GlassFish applications are accessed by users
javaee.server.port=8080
# port number where the Admin Console of GlassFish is available
javaee.adminserver.port=4848
# Uncomment the property javaee.server.username,
# and replace the administrator username of the app-server
javaee.server.username=admin
# Uncomment the property javaee.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 GlassFish.
javaee.server.passwordfile=C:/netbeans-javatutorials/JavaEE5Tutorial/J2EEe-tutorial_5/examples/common/admin-password.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 OS default browser is used.
#default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
# Database vendor property for db tasks
# JavaDB is the default database vendor. See the settings in javadb.properties
db.vendor=javadb
# Digital certificate properties for mutual authentication
keystore=${javaee.tutorial.home}/examples/jaxws/simpleclient-cert/support/client_keystore.jks
truststore=${javaee.home}/domains/domain1/config/cacerts.jks
keystore.password=changeit
truststore.password=changeit
and the admin-password.txt
AS_ADMIN_PASSWORD=adminadmin
Any suggestions.
I was stuck with the same problem but finally managed to get it to work.
The only difference being, I did not change the "javaee.server.passwordfile" field. Like someone else said, I just changed the first two fields. The following are the values I set for the GlassFish 3.1 server with NetBeans 6.7.1,
javaee.home=C:/Sun/AppServer
javaee.tutorial.home=C:/JavaWork/javaeesuntutorial/javaeetutorial5
Hope this helps.
Similar Messages
-
Java EE5 Tutorial - 'ant create-tables' BUILD FAILED
Hi,
Appologies, this is quite a begineers question, hopefully it's an easy one to answer. I've searched for the last few hours regarding this issue,
trying things and searched the forums here at sun with no similar issue. As you can see below, I cannot create the tables for the bookstore1 application using 'ant'.
I am getting a FileNotFoundException however the delete.sql and tutorial.sql files are at this location C:\javaee\javaeetutorial5\examples\common\sql\javadb\
I have also made sure that the files have read and write access. I know their could be some permissions issues using vista if I installed at C:/ProgramFiles, so everything is in C:/
Another thing I have tried is using the ant command directly even though the PATH is in my enviroment variables, just incase another version was conflicting, as I read about people having such issues.
"C:\Sun\AppServer\lib\ant\bin\ant create-tables" => This gave the same error as below. Im not sure what other information may help you help me here, so just ask.
Annoying thing is, this example worked fine when I set up the environment on my work laptop (which I have no access to now) earlier, I didn't have this issue.
Thanks for your help.
/Paul.
c:\javaee\javaeetutorial5\examples\web\bookstore1>ant create-tables
Buildfile: build.xml
-pre-init:
init:
check:
tools:
start-db:
[exec] Database already started on host localhost, port 1527.
[exec] Command start-database executed successfully.
delete-tables:
[sql] Executing file: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql
BUILD FAILED
C:\javaee\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C
:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql (The filename, directory name, or volume label syntax is incorrect)
Total time: 21 seconds
c:\javaee\javaeetutorial5\examples\web\bookstore1>Hi,
This is due to the path problem that u specified in build.properties file for javaee.tutorial.home= variable. Use / instead of \. Problem will solved.
Thanks
Amalka -
hi,
i've re-posted this into a new post.
i'm following the java ee tutorial at sun.com and i'm having a problem with the bokstore1 example.
i've set the password file correctly and when i go to the bookstore1 dir and type 'ant' everything seems ok.
the problem i'm having is once i've started the server and DB server and then type ' ant create-tables' the build fails and i get this output-
"Starting database it the background. log redirected to c:\SunAppserver\......\....\...db.log
comand start-database failed
delete-tables:
BUILD FAILED
C:\javaeetutorial5\bp-project\database-ant.xml:48: c:\sun\appserver\javadb\lib not found"
can anyone help?
thanks in advance
matBased on the info. provided, seems to me the value for 'javaee.home' in build.properties may not be correct. Make sure that the property javaee.home in build .properties pints to valid installtion of application server, for ex. if you do 'dir' or 'ls' you should see javadb directory at this location.
Also check if you have a build.properties file under windows user directory (in addition to bp-project under tutorial) and if it points to a different application server installation.
- sreeni -
Create table problem using Dynamic Query
Hi all,
I want to create a temporary table within a stored procedure so I decided to do it using a dynamic query:
create or replace procedure p1
as
begin
execute immediate 'CREATE GLOBAL TEMPORARY TABLE tt(id number(2))';
end;
/ It created successfuly but when I execute that procedure I got:SQL> exec p1;
BEGIN p1; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SCOTT.P1", line 4
ORA-06512: at line 1 While I can create that table using the same user without any problem!
My question is:What privilege should I grant to user(minimum of privileges please! ) to execute that procedure successfuly?
-ThanksHi,
To say a little bit more about Nicolas' answer:
SQL> grant create table to scott;
This is the right answer, but you might wonder why you have to do so if you usually can create tables with this user..
11:59:19 TEST.SQL>CREATE USER UTEST
11:59:28 2 IDENTIFIED BY UTEST;
User created.
11:59:35 TEST.SQL>CREATE ROLE RTEST;
Role created.
11:59:40 TEST.SQL>GRANT RTEST TO UTEST;
Grant succeeded.
11:59:45 TEST.SQL>GRANT CREATE SESSION TO RTEST;
Grant succeeded.
11:59:54 TEST.SQL>GRANT CREATE TABLE TO RTEST;
Grant succeeded.
12:00:03 TEST.SQL>GRANT UNLIMITED TABLESPACE TO UTEST;
Grant succeeded.
12:00:17 TEST.SQL>CREATE PROCEDURE UTEST.CT_TEST
12:00:32 2 IS
12:00:33 3 BEGIN
12:00:35 4 EXECUTE IMMEDIATE 'CREATE TABLE UTEST.TTEST (A NUMBER)';
12:00:56 5 END;
12:00:58 6 /
Procedure created.
12:00:59 TEST.SQL>EXEC UTEST.CT_TEST;
BEGIN UTEST.CT_TEST; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "UTEST.CT_TEST", line 4
ORA-06512: at line 1
12:01:06 TEST.SQL>GRANT CREATE TABLE TO UTEST;
Grant succeeded.
12:01:15 TEST.SQL>EXEC UTEST.CT_TEST;
PL/SQL procedure successfully completed.Don't forget that when you're using PL/SQL, privileges granted via roles are ignored!
Regards,
Yoann. -
Cannot populate Example Database using ant create-tables
I encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tablesI encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tables -
10g express Exec Imm. Create table problem
Account is setup as a DBA account in Database (everything granted). I get Insuffiction privelages when running the following stored procedure:
CREATE OR REPLACE PROCEDURE R02_BLD_RMS_JRNL(
in_rdate IN DATE)
AS
v_sql VARCHAR2(1000);
BEGIN
-- Note I took out the variable and hard coded the date to try to get it to run
-- create load
v_sql:='CREATE TABLE TEMP_LOAD AS '||
'SELECT EXPORT_DATE,ACCOUNT,CC,AMOUNT,DR_CR,TX_ID '||
'FROM RMSA_JOURNAL '||
'WHERE EXPORT_DATE=''01-AUG-07'' '||
'AND ROWNUM<11 ';
EXECUTE IMMEDIATE v_sql;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
RMSA_JOURNAL is a synonym to a table accross a DB link. Synonym works and I have tried putting in the full name of the table instead of the synonym.
When I run the following command:
EXEC R02_BLD_RMS_JRNL('01-AUG-07');
I get ORA-01031: Insufficient Privileges
If I run the statement about as a regular PLSQL block (not a stored procedure) it runs with no errors. There has to be some permission missing in relation to creating a table via a stored procedure. I have tried Dropping tables using Execute Immediate in a stored procedure and that works fine.
Any help would be much appreciated.You cannot exercise a granted privilege through a role in a stored procedure, you have to directly received.
On the other hand, people who post here are just ordinary people who have to perform real work. This is not a work for us, and if there are no posters available it's because they are busy. People here are on a voluntary and altruist basis. We all try to respond as fast as possible, but if our boss has assigned us a task, it has a higher priority than the forum.
~ Madrid -
Auto Create Table problem in Jdev903
Hi,
I am writing EJB application and used CMR. To develop this application I am using JDeveloper(Oracle 9i-OC4J).When I run this application, it metically creates CMR tables. But I don't want to that JDeveloper should create auto table, for that I have configured in
application.xml <orion-application autocreate-tables="false" ...>.
still now it creates auto table and generates identifire is to long error.
I don't want to auto create table, I want to cofigure that it uses our databse tables. so give any solution what will be configuration, as soon as possible.
is it supported by Oracle9i OC4J Jdev903 Conatiner Managed Relatioship or notAlso, create the user in the "Users" tablespace. You want to
keep your System tablespace clear of non-system created items.
After connecting as system/manager, enter the following:
Create user username
identified by password
default tablespace users
temporary tablespace temp;
grant create session, resource to username; -
I am creating a datbase interface using Java and there is this error when I try this SQL Statement:
CREATE TABLE [IF NOT EXISTS] 06_2008_Running_Log
it throws this error:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorExceptio n: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[IF NOT EXISTS] 06_2008_Running_Log
And I it works when I take the [IF NOT EXISTS] out. Any ideas why this is happening when this is proper sql syntax?Aren't the square brackets metanotation for an optional clause? That is to say the SQL can be:CREATE TABLE 06_2008_Running_Log orCREATE TABLE IF NOT EXISTS 06_2008_Running_Log Aside: Can a name start with a digit? I guess you'll find out!
-
Dreamweaver MX create tables problem
I am using Dreamweaver MX 6.0 and tried to create a table in standard view, but a sharing error message appeared and shut down the program. When I opened again and tried to create the table again, the dialog window didn't even open after clicking on the insert table button. I installed an update to 6.1, but it still didn't work. I have Windows 7 operating system and am wondering if the problem is due to a compatibility issue with an old program and newer operating system??? Any suggestions or help with this problem would be great!
Based on the info. provided, seems to me the value for 'javaee.home' in build.properties may not be correct. Make sure that the property javaee.home in build .properties pints to valid installtion of application server, for ex. if you do 'dir' or 'ls' you should see javadb directory at this location.
Also check if you have a build.properties file under windows user directory (in addition to bp-project under tutorial) and if it points to a different application server installation.
- sreeni -
Ant create-savingsaccount-table problem on WIN ME
Hello, ALL:
I had a problem run ant create-savingsaccount-table on WIN ME. I had started j2ee server and cloudscape successfully. The error is:
C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\src>ant create-savingsaccount-table
Buildfile: build.xml
BUILD FAILED
No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
--- Nested Exception ---
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.tools.ant.Main.runBuild(Main.java:402)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 0 seconds
Any suggestions?
Thank you.Hello:
I got another problem. It is about runclient -client SavingsAccountApp.ear -name
SavingsAccountClient -textauth
When I run this command, and I put the guest and guest1233 in login screen then get am exception as
C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\ears>runclient -client SavingsAc
countApp.ear -name SavingsAccountClient -textauth
Initiating login ...
Username = null
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Caught an exception.
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at SavingsAccountHomeStub.create(Unknown Source)
at SavingsAccountClient.main(SavingsAccountClient.java:29)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:24
3)
at com.sun.enterprise.appclient.Main.main(Main.java:159) -
J2ee:tutorial:savingsaccount problem connecting to cloudscape database
I'm running Windows ME, and have been working through the tutorial. I thought I had most of my path problems cleared up, but appartently one remains.
Having successfully deployed the 'SavingsAccountApp.ear' when running it, the follow error is returned when using 'runclient -client SavingsAccountApp.ear -name SavingsAccountClient'
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. SavingsAccountDB not found; nested exception is:
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
not found
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. SavingsAccountDB not found; nested exception is:
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
not found
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB not found
Another clue pops up when starting the J2EE server:
Loading jar:/C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp9941
83966960Server.jar
/C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp994183966960Serv
er.jar
Binding name:`java:comp/env/jdbc/SimpleSavingsAccountDB`
Warning: Reference reference java:comp/env/jdbc/SimpleSavingsAccountDB is using
a JNDI name that is not bound: MySavingsAccount
Application deployment successful : com.sun.ejb.containers.EntityContainer@d5aad
This leads me to believe that there is something inapppropriate in the setup for JNDI performed during the application construction using deploytool. I've gone over it several times and can't find a problem.
Any suggestions?
p.s. I've got both the Converter and Cart applications up and running successfully, but not without significant struggle. Little by little I'm working through it. Thus I can offer help to others working through it on Windows ME.
The cloudscape server starts up okay with this feedback:
TheTony,
When using deploytool to create the reference to the EJB, I used the name SavingsAccountDB as suggested in the tutorial.
However, upon making the change you suggested the error message reads as such:
Initiating login ...
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
etEntityContext: Unable to connect to database. savingsaccount not found; nested
exception is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
savingsaccount not found
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
Context: Unable to connect to database. savingsaccount not found; nested excepti
on is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
savingsaccount not found
javax.ejb.EJBException: setEntityContext: Unable to connect to database. savings
account not found
<<no stack trace available>>
The error message with the original name (SavingsAccountDB) reads as follows:
Initiating login ...
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Now calling create() to make a savings account
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
etEntityContext: Unable to connect to database. SavingsAccountHomeStub; nested
exception is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
SavingsAccountHomeStub
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
Context: Unable to connect to database. SavingsAccountHomeStub; nested excepti
on is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
SavingsAccountHomeStub
javax.ejb.EJBException: setEntityContext: Unable to connect to database. _Saving
sAccountHome_Stub
<<no stack trace available>>
I'm wondering if the problem is something to do with the security manager. I upgraded the cloudscape database to 3.6.4 and since then have been getting this message with starting cloudscape:
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] COM.cloudscape.core.JDBCDriver registere
d in DriverManager
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] Binding RmiJdbcServer...
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] No installation of RMI Security Manager.
Sat Jul 07 22:12:03 EST 2001: [RmiJdbc] RmiJdbcServer bound in rmi registry
and when creating the savingsaccount table, the message has changed to this:
Buildfile: build.xml
init:
create-savingsaccount-table:
[java] ij version 3.6 (c) 1997-2001 Informix Software, Inc.
[java] ERROR (no SQLState): error unmarshalling return; nested exception is
[java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
RMI class loader disabled)
[java] ERROR (no SQLState): error unmarshalling return; nested exception is
[java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
RMI class loader disabled)
[java] ij> drop table savingsaccount;
[java] 0 rows inserted/updated/deleted
[java] ij> create table savingsaccount
[java] (id varchar(3) constraint pk_savings_account primary key,
[java] firstname varchar(24),
[java] lastname varchar(24),
[java] balance decimal(10,2));
[java] 0 rows inserted/updated/deleted
[java] ij> exit;
BUILD SUCCESSFUL
I'm guessing it is finding the SavingsAccountDB database, but for some reason is not allowed to connect. -
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. -
Problem auto-creating tables with the IBFBS sample
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
NickHi Nick,
Firstly, regret for the late response.
I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
Curious to know if you were able to run it.
Regards
Elango.
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
Nick -
Problem in creating table maintenance generator for 61 fields in table
Hi Experts,
I am facing problem in creating a table maintenance genarator for a ZTABLE which has 61 fields
i am using below details whicle creating the TMG
in Maintenance screen
i am giving maintenance type as two step
Maint screen no overview screen 2
single screen 3
Dialog Data Transport details
Recording routine standard recording routine
but it is giving following error
screen SAPL<ZTABLE NAME> 0003 could not be generated
In DYNPFIELD_ATTR mandatory field LINE has no value
please let me know how to sort out these errors.
Is there any limit on the number of fields for which we can create table maintenance generetor.
Thanks a lot in advance
SudiptoHi Sudipto,
There is not limit to the number of fields of the Table which can be used in TMG for generation. But, from the usability point of view this will horrible.
I created a Z table and added 64 fields and was able to generate the TMG with the screens perfectly. So, I guess there should not be any problem.
Well, have a look at the Function Group. I guess the screen numbers are already used by some other screens. You can set the system to propose freely available screen numbers from the pool.
Also, check whether proper authorization is assigned or not.
And if nothing is working, you can degenerate all the generated screens and then can have a new regeneration of it.
Hope these tips will work.
Thanks,
Samantak -
Problem in using CREATE TABLE with Execute Immediate
I'm trying to create a table using Native Dynamic SQL. the code of the pl/sql block is
BEGIN
EXECUTE IMMEDIATE 'create table demo (ddate date)';
END;
The problem is that the above block is executed successfully as an anonymous PL/SQL block. The same block when written in a procedure it gives an error
"ORA-01031 Insufficient privelages"
at the time of execution. The procedure is complied successfully.
nullYour user needs direct system privs to create tables. You are receiving your privs properly by the role RESOURCE. Connect as system and grant CREATE TABLE directly to your user - that should do it.
Regards
Peter Larsen
Maybe you are looking for
-
Sudden increase in Verizon FIOS internet & digital voice problems. No resolutions.
We have had Verizon FIOS internet since Jan. 2008. It has been reasonably reliable. No disconnects... until mid-Dec 2012 when they started with a vengeance. E-mail connections dropped (we had to re-start Outlook). Usually, we couldn't "see" them
-
Hi there.. I have a problem with displaying an image from table with blob data type. Here's what have I done: I have this page to display an image from requestScope.test (I've set this value in data action). But the problem is, the image is only disp
-
Hi All, I need to disable PAM in Solaris, In Solaris 9 I set parameter "PAMAuthenticationVIAKBD=NO" in /etc/ssh/sshd_conf file I could not find this file in Solaris 8, pls suggest how to disable PAM in Solaris 8 Thanks & Regds, Gattu
-
Log for "Transfer SQL Server Objects" (SSIS 2008)
We are transferring several large tables (Data only) and the Transfer SQL Server Objects Control has remained yellow "state" for six hours. Is there a log file or other approach we can use tell what is happening? (For example, I found the process sp
-
TS1702 Why can't I open up apps I've purchased but I can open the default apps on my iphone4
Why can't I open up apps I've purchased but I can open the default apps on my iphone4