Can't build bookstore2 tutorial example
I had successfully built and deployed the bookstore1, date, and hello1 examples. Then I got errors this fatal error on building bookstore2. I was following instructions at
http://java.sun.com/j2ee/tutorial/doc/JSPIntro3.html.
I DID THIS:
e:\j2ee_tuto\j2eetutorial\examples\src>ant create-web-db
AND I GOT THIS:
The system cannot find the path specified.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main
MY SETTINGS:
--OS = W2K
--PATH=
C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;e:\.;e:\j2sdkee1.3\bin;e:\jant\jakarta-ant-1.3\bin;e:\jdk1.3.1;e:\jdk1.3.1\bin
--ANT_HOME=e:\jant
--CLASSPATH=.;e:\j2eesdk1.3\lib;e:\jdk1.3.1\lib
--J2EEJARS=e:\j2sdkee1.3\lib\j2ee.jar
--J2EE_CLASSPATH=e:\j2sdkee1.3\lib
--J2EE_HOME=e:\j2sdkee1.3
--JAVA_HOME=e:\jdk1.3.1
What's wrong?
OOPS....The link I used in the above post works if you take the period off the end.
Similar Messages
-
Can not build the client example of the webservices/rpc-example
Hi!
I have some problems with building the client example of the webservices rpc example.
I followed the instructions of the readme and was able to build the weatherejb,
after I saved the client.jar in %WL_HOME%\samples\examples\webservices\rpc\javaClient
I put the cleint.jar into the classpath of the setExamplesEnv.cmd:
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%WL_HOME%\lib\xmlx.jar;%WL_HOME%\samples\eval\cloudscape\lib\cloudscape.jar;%WL_HOME%\samples\examples\webservices\rpc\javaClient\client.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%;%EX_WEBAPP_CLASSES%;C:\bea
but if I now change to
$ cd %WL_HOME%\samples\examples\webservices\rpc\javaClient
and try to build the ear -files by typing:
ant
I get the message:
C:\bea\samples\examples\webservices\rpc\javaClient>ant
Buildfile: build.xml
compile:
[javac] Compiling 3 source files to C:\bea\config\examples\clientclasses
[javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:8:
ca
nnot resolve symbol
[javac] symbol : class Weather
[javac] location: package weatherEJB
[javac] import examples.webservices.rpc.weatherEJB.Weather;
[javac] ^
[javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:28:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather.class.getName() );
[javac] ^
[javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather service = (Weather)context.lookup("http://localhost:7001
/weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
[javac] ^
[javac] C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather service = (Weather)context.lookup("http://localhost:7001
/weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
[javac] ^
[javac] 4 errors
BUILD FAILED
C:\bea\samples\examples\webservices\rpc\javaClient\build.xml:13: Compile failed,
messages should have been provided.
Total time: 3 seconds
thanxWell, Remember(you might have done this) u have to run the
setExamplesEnv.cmd after u add the client.jar in the classpath. Also, the
ant command will work only in the window where u ran the setExamplesEnv.cmd.
Thats what i didnt and it works perfect for me.
Hope this helps u.
Regards
Elangovan
Naz wrote in message <[email protected]>...
>
Hi!
I have some problems with building the client example of the webservicesrpc example.
I followed the instructions of the readme and was able to build theweatherejb,
after I saved the client.jar in%WL_HOME%\samples\examples\webservices\rpc\javaClient
I put the cleint.jar into the classpath of the setExamplesEnv.cmd:
setCLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\
lib\weblogic.jar;%WL_HOME%\lib\xmlx.jar;%WL_HOME%\samples\eval\cloudscape\li
b\cloudscape.jar;%WL_HOME%\samples\examples\webservices\rpc\javaClient\clien
t.jar;%CLIENT_CLASSES%;%SERVER_CLASSES%;%EX_WEBAPP_CLASSES%;C:\bea
>
but if I now change to
$ cd %WL_HOME%\samples\examples\webservices\rpc\javaClient
and try to build the ear -files by typing:
ant
I get the message:
C:\bea\samples\examples\webservices\rpc\javaClient>ant
Buildfile: build.xml
compile:
[javac] Compiling 3 source files toC:\bea\config\examples\clientclasses
[javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:8:
ca
nnot resolve symbol
[javac] symbol : class Weather
[javac] location: package weatherEJB
[javac] import examples.webservices.rpc.weatherEJB.Weather;
[javac] ^
[javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:28:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather.class.getName() );
[javac] ^
[javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather service =(Weather)context.lookup("http://localhost:7001
/weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
[javac] ^
[javac]C:\bea\samples\examples\webservices\rpc\javaClient\Client.java:34:
c
annot resolve symbol
[javac] symbol : class Weather
[javac] location: class examples.webservices.rpc.javaClient.Client
[javac] Weather service =(Weather)context.lookup("http://localhost:7001
/weather/statelessSession.WeatherHome/statelessSession.WeatherHome.wsdl");
[javac] ^
[javac] 4 errors
BUILD FAILED
C:\bea\samples\examples\webservices\rpc\javaClient\build.xml:13: Compilefailed,
messages should have been provided.
Total time: 3 seconds
thanx -
Where can I find a tutorial to build a 3D carousel in AS 3.0?
Anyone know where I can find good a tutorial to help me build
a 3d flash carousel in AS 3.0?
Or anywhere I can download a flash file or anything I can
play around with to figure it out?
I would prefer it to be XML driven.
I would like to build a carousel like this:
Carousel in 2.0
Only I would like to learn to build it in action script 3.0.
I appreciate it.A little Googling is all you need... I can't speak of it in
terms of decency though... I never tried the tutorial myself. It
appears to be more of a here is the code approach.
http://flash.lillegutt.com/?p=46#comment-35 -
Exception occure when running bookstore2 JSP example from Java WSDP 1.1
I am new to Java WSDP, and just downloaded 1.1 version and tried it with the tutorial.
1. In section for populating pointbase database, tutorial says just "Enter ant. ... default Ant task create-book-db" will populate database. However, I couldn't get this working until I explicitly excute "ant create-book-db". Is there anything wrong here? Does it affect the rest of the tutorial?
2. I managed to use '...\bookstore2\ant build' to compile the JSP version of the Bookstore, but I need help for installing it.
Steps I took:
start pointbase
...\web\ant create-books-db --- seems to be successful
...\web\bookstore2\ant build --- successful
start Tomcat
go to admin page and configured the dataSource
...\web\bookstore2\ant install ---- HELP! exceptions:
install:
[install] FAIL - Encountered exception java.io.IOException: java.lang.reflect.
InvocationTargetException
BUILD FAILED
file:C:/Java/jwsdp-1.1/docs/tutorial/examples/web/bookstore2/build.xml:93: FAIL
- Encountered exception java.io.IOException:
java.lang.reflect.InvocationTargetException
Really hope anyone can offer me some help, many many thanks.i have the same problem.................. boy.
and now i have the answer for this problem. wait please. -
I'm working on a project to create an air application which will have a chat area, webcam, and open videos in real time. This should also work on iOS.
Can I use the same examples in the SDK to create this app by using flash builder 4.5? Is there any tutorials will help me in this topic?
One more Question, by using LCCS, can I open a loaded videos/YouTube videos in a real time? Is there is any tutorial or example? In the adobe LiveCicle Collaboration web site, there is an example for The Video Livingroom. Is there a tutorial/code for this example?
Your help is really appreciated.
Thank you
SuhaI think these guys had success on the iOS:
http://forums.adobe.com/thread/855200?tstart=60 -
Asant problem- building the hello1 example
I am trying to run the first example from the tutorial.I followed the instructions as described in the tutorial and configured the environment variables. However, when I am trying to build the hello1 example I get the following message:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertionsWhat am I doing wrong?
Thank you,
ItayThanks for your quick reply.
My environment variables are:
J2EE_HOME = E:\Java\J2EE\AppServer
JAVA_HOME = %J2EE_HOME%\jdk
So as you can see I have no spaces in the directories names. -
Can I build a interactive log-in form with Edge and Export Raw code to edit?
Hey Everyone,
I love adobe edge, but I'm still getting used to it. It's very easy to use, but I ran into an issue. I am redesigning a webpage for a client and need to build a log-in page and re-design the site. The site is a Dashboard that will be on an ipad and computer. What I need to do is take my design and design a template for them to use. They require HTML4 and up with some coding (not a fan of coding, I am strictly a designer, and before you guys critize about why I took the job when I don't know coding, it's a side project they are having me do for them while the main design project is being evaluated and I'm on contract so I don't have a choice, still would like to learn how to achieve what I need) but I still want to maintain the animation I have planned for the log in, very simple nothing special. Basically what I want is when you log in and click in the "text" box the background image will go from the clear image to the blur image.
What I've done so far,
I built the log-in page as a test to see if it would work (didn't take long since I saved as a PSD and imporated the files). I've attached an imagw to show a visual of what I am trying to do. The animation works fgreat for what i need, but now I want the box I click in to be writtable inside and work with the animation. I can't seem to figure out how to make the box's I created typable to type in for a "Username" and "Password" in other word interative. I used the boxes provided in edge because they are HTML boxes, but I want them to become text boxes to enter the Username and Password (It doesn't have to be perfect just enough for me to type in to pass off to the programmers). I know you can make edge interative with muse and what not and I was hoping to achieve what I want for them so I can export it and pass it off to the programmers. Is there a way to add this in Edge? If not, I know you can export to Dreamweaver and when I import the file to Dreamweaver I just see a grey box with the file I created (.oma I think) from Edge but not the content unless I "Preview it" in a browser.
So is there a way to build what I want in edge without resorting to dreamweaver? If so and there is code to input can you guys provide step by step on how to put it in the program? And is there a way to export the project so I can pass the RAW code to the programmers to do there thing? Lastly, is there a way to incorporate Jquery mobile to Edge? For the Dashboard can I build the same thing in Edge? Example what will be in there are things like charts, Calendars, Dates, Etc, Etc. If I need to resort to building it in dreamweaver I can provide the code for you guys to alter to change for what I need. Like I said I'm not a big fan of coding and a little stranger to it. I just know the basics and the fact I haven't touched dreamweaver since CS4 makes it even harder to use. Some tools I like are gone such as AP divs. However i like the new elements you can inject into the program such as the Jquery stuff, but for the simplist things I want to do such as moving them left or right or centering them is a different story.
Please Help!
Thanks!if you search on the forum you can find useful posts about creating a form in edge
Zaxist -
Can i build simple encoder like gzip,- png-, jpeg- or bmp-encoder?
Hello dear people,
can i ask about unknown photo- or texture-type?
TGA File will show into flash-player?
I know any encoders...
Example: Encoders:
For jpeg, png encoder:
https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
For gzip or zip encoder:
http://code.google.com/p/ascompress/source/browse/trunk/src/com/probertson/utils/GZIPEncod er.as?r=9
any suggestions encoder for unknown file types?
If you like openning or viewing file like this OpenOffice Writer like PDF Viewer?
Can i build tga Encoder for tga, tif and psd file types?
How do i know hex or binary from current file type?`
I know becasue encoder for compress like gzip.works nice.
How do i multi file tree when one or more files were compressed. But i have been found - same site is down
Question:
Why do we need "Encoder" for flash player?
Do you think because encoder supports complety?
ThanksNancy O. wrote:
An image is just an image. You need HTML or JavaScript code to make it into a hyperlink.
<a href="http://example.com"><img src="your_image.jpg"></a>
Unless the site you're uploading to is willing to wrap your image inside HTML code like the example above or JavaScript there is no way to make the image file link to anything on its own.
Nancy O.
But how is it that a pdf file is able to contain a hyperlink within the image and it takes me to my website? Where on the image.gif, etc., do I attach the code you've posted? The website I'm wanting to upload the image to, only allows the files with extensions I've already indicated in my op. Thanx for your reply and help. -KD -
How can i find a tutorial to simulate analog circuits?
i have to make a full wave rectifier. how can i find any tutorial to do that
yascen;
Very simply, a full-wave rectifier is the absolute value of your waveform. I attached an example that shows how to do a full-wave rectifier and a half wave rectifier.
LabVIEW is not a circuit simulation program. It is a powerful software development environment. Of course, you can create a circuit simulator with LabVIEW, but is something you have to create.
To simulate circuits in LabVIEW, you just need to know and understand the mathematical equations that govern the circuit you want to simulate. Then, you just "wire" those equations in LabVIEW.
If you are looking for a circuit simulation software, you can check MultiSIM from Electronics Workbench.
Regards;
Enrique Vargas
www.visecur
ity.com
www.vartortech.com
Attachments:
full_and_half_wave_rect.vi 32 KB -
Is it a bug in Sun's Tutorial example!!!!
Hello everybody! I donno whether the following Tutorial example code is buggy or not but it won't run under j2sdk 1.4.2 and also under 1.5 as smoothly as Tutorial says(only the 1st line prints but not all). You can find the code:
http://java.sun.com/docs/books/tutorial/essential/io/dataIO.html
And the file name is:
DataIODemo
Does anyone know how to make it work?
Thanks.
--DMThe author made a "bonehead" error - s/he hardcoded a newline character ('\n') when writing the invoice1.txt file. Since this is a UNIX/Linux character, it will not cause an error when run there - BUT - when run on an OS that doesn't use that convention - Windows, etc - it results in an incorrectly written file.
This illustrates a code portability problem; don't hardcode!
I leave as an exercise for the reader the correction of the format of the total dollar amount.
A corrected copy is below. //********* preceeds changes. Compare with the original to see the differences.
import java.io.*;
public class DataIODemo
public static void main(String[] args)
throws IOException
// write the data out
DataOutputStream out = new DataOutputStream(new
FileOutputStream("invoice1.txt"));
double[] prices = {19.99, 9.99, 15.99, 3.99, 4.99};
int[] units = {12, 8, 13, 29, 50};
String[] descs = {"Java T-shirt",
"Java Mug",
"Duke Juggling Dolls",
"Java Pin",
"Java Key Chain"};
char lineSep = System.getProperty("line.separator").charAt(0);
for (int i = 0; i < prices.length; i++)
out.writeDouble(prices);
out.writeChar('\t');
out.writeInt(units[i]);
out.writeChar('\t');
out.writeChars(descs[i]);
out.writeChar(lineSep);
out.close();
// read it in again
DataInputStream in = new DataInputStream(new
FileInputStream("invoice1.txt"));
double price;
int unit;
StringBuffer desc;
double total = 0.0;
try
while (true)
price = in.readDouble();
in.readChar();
// throws out the tab
unit = in.readInt();
in.readChar();
// throws out the tab
char chr;
desc = new StringBuffer(20);
while ((chr = in.readChar()) != lineSep)
desc.append(chr);
System.out.println("You've ordered " +
unit + " units of " +
desc + " at $" + price);
total = total + unit * price;
} catch (EOFException e)
System.out.println("For a TOTAL of: $" + total);
in.close(); -
JEE 6 Tutorial example missing
I have downloaded the Java EE 6 tutorial examples. The hello2_basicauth example on basic authentication is missing. Does any one know why can that happen?
Thanks in advance,
Robertodownload
http://www.javapassion.com/j2ee/HW14MDB.htmlrefer
http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpq.html -
JWSDP - Where can I find 1.0 example apps?
Hi,
I'm trying to learn J2EE so I downloaded the JWSDP 1.3 exe. Unfortunately, the bookstore examples use JSP 2.0, which we aren't using in our environment. We are old school.
I have downloaded the 1.0 tutorial in PDF but I can't find the corresponding examples anywhere on the SUN site. It's frustrating.
Anyone know where I can find them?
Thanks,
Edhttp://java.sun.com/webservices/downloads/1.0/webservicestutorial_1.0.html
-
Having problem in getting JaveEE tutorial example source
I have tried to follow the link below to get example source, unfortunately it doesnt work, can someone show me how to get or send it to my email.
http://docs.oracle.com/javaee/6/tutorial/doc/gexaj.html#giqtt
Thanks~Please provide your platform OS and version, jdk version and the version of any tools you are using (netbeans, glassfish, etc).
Also, what happens when you follow the instructions titled' To Obtain the Tutorial Component Using the Update Tool' at the link you provided?
Java EE 6 Tutorial Component
The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.
To Obtain the Tutorial Component Using the Update Tool
1.Start the Update Tool.
From the command line, type the command updatetool.
On a Windows system, from the Start menu, choose All Programs, then chooseJava EE 6 SDK, then choose Start Update Tool.
2.Expand the GlassFish Server Open Source Edition node.
3.Select the Available Add-ons node.
4.From the list, select the Java EE 6 Tutorial check box.
5.Click Install.
6.Accept the license agreement.
After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial. -
How can i build a portlet with multi-record fields
Hi
I am building an application and some of my forms need to capture multi-records fields,for example like Developer Forms does with Grids
Can anybody send me an example to do this?.
ThanksThis is what I did in our application.
1. Created a Master Detail Form (Custom Layout and not tabular)
and in the master block selected only one field.
2. In the HTML layout for master removed the reference for
that field(so that nothing will appear in the master block
of the form).
3. Before the update (in the Pl/SQL event handler selected the 'Save' event and written the following code to avoid updating master block).
p_session.set_value(p_block_name => 'MASTER_BLOCK',
p_attribute_name => 'MASTER_ACTION',
p_value => 'None');
doSave;
For eg, let's say
Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
I hope this will help you.
Thanks
-Krishnamurthy -
Can you give me an example?
I use com.sapportals.htmlb.Tree to build a dynpage and set a NodeExpand envent on a TreeNode.In the event I want to create subnodes of the TreeNode.But I don't know how to transmite the TreeNode to the event.I mean I don't know how to know which TreeNode the subnode are built to.
Can you gei me an example?Hi,
Have you seen this blog ?
Build Your Own KM Navigation iView Using HTMLB Tree
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1424
Patricio.
Maybe you are looking for
-
Using different datasources and different view objects.. (ADF 11g)
In our application we have the need for using two different datasource (an old version and a new verision) - but not at the same time. Isn't it possible to base a viewobject on top of two sub viewobjects and run time decide which sub viewobject to us
-
Problem with app-v packages - opens first time, then error
Hi I've recently deployed some app-v packages via sccm. the reason for this is that previously we had the few app-v packages we're actually using in our Citrix environment. but.. some update has broken something.. and the packages don't work anymor
-
Issue in tranforming Idoc structure using XSLT mapping
Hi, I am working on the XSLT Mapping to transform the IDoc xml to the desired format. Source structure single Idoc: EDI_DC40 record E1EDKxx records E1EDPxx records E1EDSxx records suppose I have 4 E1EDP01 records, of which 2 are Original and next two
-
My iPhone 4 just went black all of the sudden. I can't get it to turn back on and the battery wasn't dead. Anyone know what causes this and how to get it back on?
-
Is Web Dynpro ABAP being used in production?
Friend, My company wants to start using Web Dynpro ABAP. I wanted to know if Web Dynpro ABAP is in ramp up mode or the latest release is good for production? Are many of you already using Web Dynpro ABAP in production? Thanks in advance.