Re: simpleservlet complilation error
Per Nyfelt <[email protected]> Tue, 18 Jan 2005 18:20:19 +0100
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Resourcing Networks |
| Message-ID | <[email protected]> |
The error message complains about not being able to find tools.jar in the
classpath. Add
<pathelement path="${java.class.path}"/>
to the <path id="project.class.path" > section. This is already in cvs. I
checked it in several days ago. It is also a common question on the mailing
list and a simple search of the mail list should have let you find what to
do. I am willing to help you but you need to make some effort here or I will
loose interest :(.
Regards,
Per
tisdagen den 18 januari 2005 06.48 skrev [email protected]:
> Hi !,
> On compiling simpleservlet sample, I am getting following error,
> D:\ozone-1.2\samples\simpleservlet\bin>build
> 'build' is not recognized as an internal or external command,
> operable program or batch file.
>
> D:\ozone-1.2\samples\simpleservlet\bin>cd..\
>
> D:\ozone-1.2\samples\simpleservlet>build
>
> D:\ozone-1.2\samples\simpleservlet>cd bin
>
> D:\ozone-1.2\samples\simpleservlet\bin>call settings.bat
>
> D:\ozone-1.2\samples\simpleservlet\bin>html public "-//W3C//DTD HTML 4.0
> Transit
> ional//EN" 0<!doctype
> The system cannot find the file specified.
> The syntax of the command is incorrect.
>
> D:\ozone-1.2\samples\simpleservlet\bin>"http://www.w3.org/TR/REC-html40/loo
>se.dt d">
>
> D:\ozone-1.2\samples\simpleservlet\bin>cd..\..\simpleservlet2
>
> D:\ozone-1.2\samples\simpleServlet2>build
> 'build' is not recognized as an internal or external command,
> operable program or batch file.
>
> D:\ozone-1.2\samples\simpleServlet2>build
>
> D:\ozone-1.2\samples\simpleServlet2>cd bin
>
> D:\ozone-1.2\samples\simpleServlet2\bin>call settings.bat
>
> D:\ozone-1.2\samples\simpleServlet2\bin>IF NOT DEFINED OZONE_HOME SET
> OZONE_HOME
> =\test\ozone-1.1.x-dev
>
> D:\ozone-1.2\samples\simpleServlet2\bin>set
> BASEDIR=D:\ozone-1.2\samples\simpleS
> ervlet2\bin\UNIQUE_STRING
>
> D:\ozone-1.2\samples\simpleServlet2\bin>set
> BASEDIR=D:\ozone-1.2\samples\simpleS
> ervlet2\
>
> D:\ozone-1.2\samples\simpleServlet2\bin>SET
> PATH=D:\ozone-1.2\bin;C:\j2sdk1.4.2_
> 04\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\ozone-1.2\bin;C
>:\j2s dk1.4.2_04\bin;C:\apache-ant-1.6.2\bin;
>
> D:\ozone-1.2\samples\simpleServlet2\bin>cd ..
>
> D:\ozone-1.2\samples\simpleServlet2>call ozoneAnt
> Buildfile: build.xml
>
> tomcat.shutdown:
> [exec] Using CATALINA_BASE: D:\tomcat
> [exec] Using CATALINA_HOME: D:\tomcat
> [exec] Using CATALINA_TMPDIR: D:\tomcat\temp
> [exec] Using JAVA_HOME: C:\j2sdk1.4.2_04
> [exec] Catalina.stop: java.net.ConnectException: Connection refused:
> connec
> t
> [exec] java.net.ConnectException: Connection refused: connect
> [exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
> [exec] at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> [exec] at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
> a:171)
> [exec] at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) [exec] at
> java.net.Socket.connect(Socket.java:452)
> [exec] at java.net.Socket.connect(Socket.java:402)
> [exec] at java.net.Socket.<init>(Socket.java:309)
> [exec] at java.net.Socket.<init>(Socket.java:124)
> [exec] at
> org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
> [exec] at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:35
> 2)
> [exec] at
> org.apache.catalina.startup.Catalina.process(Catalina.java:12
> 9)
> [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [exec] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
> [exec] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
> [exec] at java.lang.reflect.Method.invoke(Method.java:324)
> [exec] at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156
> )
>
> clean:
> [delete] Deleting directory
> D:\ozone-1.2\samples\simpleServlet2\build\classes
>
> [delete] Deleting directory D:\ozone-1.2\samples\simpleServlet2\dist
>
> prepare:
> [mkdir] Created dir: D:\ozone-1.2\samples\simpleServlet2\build\classes
> [mkdir] Created dir: D:\ozone-1.2\samples\simpleServlet2\dist
>
> compile:
> [javac] Compiling 5 source files to
> D:\ozone-1.2\samples\simpleServlet2\buil
> d\classes
> [java] Begin OPP...
> [java] Processing class: db.HelloImpl
> [java] Begin Processing db.HelloImpl...
> [java] Begin Resolving update methods...
> [java] No ocd was found!
> [java] End Resolving update methods
> [java] update method [4]: setGreeting
> [java] Begin Generating factory for: db.HelloImpl...
> [java] End Generating factory for: db.HelloImpl
> [java] Begin Generating proxy for: db.HelloImpl...
> [java] End Generating proxy for: db.HelloImpl
> [java] End Processing db.HelloImpl generated in 0.321 seconds.
> [java] Generation completed with 0 warnings and 0 errors
> [java] Begin Compile proxies...
> [java] End Compile proxies
> [java] End OPP generated in 0.701 seconds.
> [java] Generation completed with 0 warnings and 0 errors
> [java] java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
> [java] at
> org.ozoneDB.tools.OPP.compiler.InternalJavaCompiler.compile(U
> nknown Source)
> [java] at org.ozoneDB.tools.OPP.OPP.compileSource(Unknown Source)
> [java] at org.ozoneDB.tools.OPP.OPP.generate(Unknown Source)
> [java] at org.ozoneDB.tools.OPP.OPP.main(Unknown Source)
> [java] Exception in thread "main"
>
> BUILD FAILED
> D:\ozone-1.2\samples\simpleServlet2\build.xml:54: Java returned: 1
>
> pl. tell what to do ?
>
>
> regards,
> Neeta
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Ozone-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ozone-users
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt