You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by wo...@yahoo.co.jp on 2004/09/06 22:00:12 UTC
Re: Looking for source directories
Hi there,
I've tried building Beehive with eclipse 3.1-M1 on Win2K.
The directory setting is almost same as Ias's.
# source directories
wsm/src/api
wsm/src/runtime
# required libraries
wsm/lib/xmltypes.jar
JAVA_HOME/lib/tools.jar,
external/junit/junit.jar
external/xmlbeans/apache-xbean.jar
And add junit.jar in ANT's classpath. (Not eclipse's classpath)
( window -> Preferences -> Runtime under Ant tree ->
add BEEHIVE_HOME/external/junit/junit.jar in Global Entries in Classpath tab)
Otherwise, you will fail in the junit ant task.
With the settings above,
ant bootstrap -> successful
ant clean -> successful
ant build -> successful
ant deploy -> successful
ant wsm.drt -> successful
ant controls.drt -> Tomcat is stuck
ant netui.drt -> Tomcat is stuck
In the both controls.drt and netui.drt target, right after having started,
Tomcat was stuck... I don't know why.
I guess those settings are okay, but there's something between eclipse and
tomcat. I couldn't figure it out.
Thanks in advance.
wolfgang
> Hi all,
>
> For those who use IDEs (perhaps IDEA 4.5 or Netbeans 4.0 because of their
> full Tiger support), where source directories and required libraries are is
> important and helpful even though build.xml may explain it indirectly. In
> case of WSM,
>
> source directories - wsm/src/api, wsm/src/runtime
> required libraries - wsm/lib/xmltypes.jar, J2SE_HOME/lib/tools.jar,
> external/junit/junit.jar, external/xmlbeans/apache-xbean.jar
>
> How about adding such information to
> http://wiki.apache.org/beehive/For_20Beehive_20Developers ?
>
> Thanks,
>
> Ias
Re: Looking for source directories ( kinda long )
Posted by Eddie O'Neil <ek...@bea.com>.
Wolfgang--
Yes, the controls DRT has a dependency on the presence of the NetUI
runtime so that it can test controls inside of a webapp.
That being said, it looks like the controls DRT infrastructure for
ensuring that a webapp is correctly deployed to Tomcat may not work in
all cases; James or Zach, can you offer any insight here?
Thanks!
Eddie
wolfgang127us@yahoo.co.jp wrote:
>Hi all,
>
>I've received the answer about netui.drt from Rich.
>All tests passed.
>
>wsm.drt & netui.drt are okay so far, but I still cannot tell okay or not for controls.drt
>since Ant always stops before reaching the test part.
>
>Here is what I've done and got on console.
>
>I tried controls.drt ant task.
>
> A couple of last lines on the eclipse console,
>------------------------------------
>deploy.netui.runtime:
>deploy.netui.runtime:
> [mkdir] Created dir: C:\eclipse\workspace\Beehive\controls\test\webapps\controlsWeb\resources\javascript
>deploy-struts:
> [echo] Deploy Struts to webapp rooted at: C:\eclipse\workspace\Beehive\controls\test\webapps\controlsWeb
> [exec] Using CATALINA_BASE: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25
> [exec] Using CATALINA_HOME: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25
> [exec] Using CATALINA_TMPDIR: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25\temp
> [exec] Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0
>------------------------------------
>
> A couple of last lines on the TOMCAT console (DOS),
>------------------------------------
>Sep 9, 2004 1:39:28 AM org.apache.jk.common.ChannelSocket init
>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>Sep 9, 2004 1:39:28 AM org.apache.jk.server.JkMain start
>INFO: Jk running ID=0 time=16/94 config=C:\eclipse\workspace\Beehive\installed\
>jakarta-tomcat-5.0.25\conf\jk2.properties
>Sep 9, 2004 1:39:28 AM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 44312 ms
>------------------------------------
>
>It was seemed stuck there.
>Even though I waited over 20 mins, no further processing was performed.
>So I had forcelly stopped Tomcat, then eclipse displayed the following lines.
>------------------------------------
> [exec] Result: 1
>BUILD FAILED: C:\eclipse\workspace\Beehive\build.xml:57: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\controls\build.xml:259: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\controls\test\build.xml:218: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\controls\test\build.xml:233: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\controls\test\webapps\build.xml:60: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\test\ant\deployNetui.xml:14: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\netui\build.xml:79: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\netui\ant\build.xml:79: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\netui\ant\webappTemplate.xml:199: The following error occurred while executing this line:
>C:\eclipse\workspace\Beehive\netui\ant\webappTemplate.xml:233: C:\eclipse\workspace\Beehive\netui\build\dist\webapp not found.
>Total time: 21 minutes 10 seconds
>------------------------------------
>
>The last line says "C:\eclipse\workspace\Beehive\netui\build\dist\webapp not found."
>oh...I didn't know that control.drt depends on netui.drt so I did netui.drt and control.drt again.
>netui.drt looks okay, but control.drt.
>Tomcat console was exactly same as the first time.
>In contrast, the following lines were displayed on eclipse console.
>------------------------------------
> [echo] ----------------------------------------------
> [echo] | Controls controlsWeb build ending |
> [echo] ----------------------------------------------
> [echo] continue the new thread, wait for tomcat to start
> [echo] continue the new thread, deploy controlsWeb
>deploy:
>deploy:
> [echo] deploy webapp from file://C:\eclipse\workspace\Beehive\controls\test\webapps/controlsWeb with context path controlsWeb
>[tomcatdeploy] FAIL - Application already exists at path /controlsWeb
>------------------------------------
>
>Finally, stuck again. :(
>Hm... "/controlsWeb" already exists.
>
>I've tried many combinations of Ant tasks, but couldn't help it.
>
>I'm mainly a vi user on linux so actually no impact to me even though Beehive doesn't work with eclipse.
>BUT I think many developers out there are willing to use it on eclipse, so please help me out.
>
>Thanks in advance.
>
>wolfgang.
>
>
>
>
>
>
>
Re: Looking for source directories ( kinda long )
Posted by wo...@yahoo.co.jp.
Hi all,
I've received the answer about netui.drt from Rich.
All tests passed.
wsm.drt & netui.drt are okay so far, but I still cannot tell okay or not for controls.drt
since Ant always stops before reaching the test part.
Here is what I've done and got on console.
I tried controls.drt ant task.
A couple of last lines on the eclipse console,
------------------------------------
deploy.netui.runtime:
deploy.netui.runtime:
[mkdir] Created dir: C:\eclipse\workspace\Beehive\controls\test\webapps\controlsWeb\resources\javascript
deploy-struts:
[echo] Deploy Struts to webapp rooted at: C:\eclipse\workspace\Beehive\controls\test\webapps\controlsWeb
[exec] Using CATALINA_BASE: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25
[exec] Using CATALINA_HOME: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25
[exec] Using CATALINA_TMPDIR: C:\eclipse\workspace\Beehive\installed\jakarta-tomcat-5.0.25\temp
[exec] Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0
------------------------------------
A couple of last lines on the TOMCAT console (DOS),
------------------------------------
Sep 9, 2004 1:39:28 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Sep 9, 2004 1:39:28 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=16/94 config=C:\eclipse\workspace\Beehive\installed\
jakarta-tomcat-5.0.25\conf\jk2.properties
Sep 9, 2004 1:39:28 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 44312 ms
------------------------------------
It was seemed stuck there.
Even though I waited over 20 mins, no further processing was performed.
So I had forcelly stopped Tomcat, then eclipse displayed the following lines.
------------------------------------
[exec] Result: 1
BUILD FAILED: C:\eclipse\workspace\Beehive\build.xml:57: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\controls\build.xml:259: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\controls\test\build.xml:218: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\controls\test\build.xml:233: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\controls\test\webapps\build.xml:60: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\test\ant\deployNetui.xml:14: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\netui\build.xml:79: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\netui\ant\build.xml:79: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\netui\ant\webappTemplate.xml:199: The following error occurred while executing this line:
C:\eclipse\workspace\Beehive\netui\ant\webappTemplate.xml:233: C:\eclipse\workspace\Beehive\netui\build\dist\webapp not found.
Total time: 21 minutes 10 seconds
------------------------------------
The last line says "C:\eclipse\workspace\Beehive\netui\build\dist\webapp not found."
oh...I didn't know that control.drt depends on netui.drt so I did netui.drt and control.drt again.
netui.drt looks okay, but control.drt.
Tomcat console was exactly same as the first time.
In contrast, the following lines were displayed on eclipse console.
------------------------------------
[echo] ----------------------------------------------
[echo] | Controls controlsWeb build ending |
[echo] ----------------------------------------------
[echo] continue the new thread, wait for tomcat to start
[echo] continue the new thread, deploy controlsWeb
deploy:
deploy:
[echo] deploy webapp from file://C:\eclipse\workspace\Beehive\controls\test\webapps/controlsWeb with context path controlsWeb
[tomcatdeploy] FAIL - Application already exists at path /controlsWeb
------------------------------------
Finally, stuck again. :(
Hm... "/controlsWeb" already exists.
I've tried many combinations of Ant tasks, but couldn't help it.
I'm mainly a vi user on linux so actually no impact to me even though Beehive doesn't work with eclipse.
BUT I think many developers out there are willing to use it on eclipse, so please help me out.
Thanks in advance.
wolfgang.
Re: Looking for source directories
Posted by wo...@yahoo.co.jp.
Hi Rich.
> Just jumping in to say that this error isn't fatal. That file
> (jpf-struts-config--global.xml) used to be present in the webapp -- it was
> generated from /WEB-INF/src/global/Global.app, which doesn't exist
> anymore.
It's good to hear that. :)
> I didn't see an attachment in the email you sent -- would you resend it?
I think the attachment was removed by the yahoo mail server...
I attach it on this mail again and directly send the file to you for sure.
Thanks in advance.
wolfgang
Re: Looking for source directories
Posted by Richard Feit <ri...@bea.com>.
Hello Wolfgang,
Just jumping in to say that this error isn't fatal. That file
(jpf-struts-config--global.xml) used to be present in the webapp -- it was
generated from /WEB-INF/src/global/Global.app, which doesn't exist
anymore. When I removed it, I neglected to delete the relevant entry from
web.xml. I'll do that in my next checkin, but in any case it shouldn't
cause a problem. I can provide more info on
Global.app/jpf-struts-config--global.xml, but it's probably not relevant here.
I didn't see an attachment in the email you sent -- would you resend it?
Thanks,
Rich
At 10:05 AM 9/7/2004, you wrote:
>Hi Eddie.
>
> > The build should have copied "junit.jar" into $ANT_HOME/lib as per
> > line 26 of $BEEHIVE_HOME/build.xml.
>
>Although the "bootstrap" target properly copies the "junit.jar" into
>$ANT_HOME/lib,
>the junit task doesn't work with eclipse.
>You have to follow the instruction as I mentioned before.
>(window -> Preferences -> Runtime under Ant tree ->
>add BEEHIVE_HOME/external/junit/junit.jar in Global Entries in Classpath tab)
>
>I tried the netui.drt task again and Tomcat wasn't stuck this time.
>I guess when last time I tried, Tomcat was seemed stuck but it wasn't...
>sorry about that.
>
>I attached the output (netui_drt_output.txt) of the netui.drt in the
>eclipse console.
>I couldn't keep a track of TOMCAT's output and attach since It was
>displayed in DOS console
>There was a strange error in TOMCAT's ouput.
>(I couldn't keep a track of TOMCAT's output since It was displayed in DOS
>console.)
>----------------------------------
>07 Sep 2004 23:06:32,296 ERROR AutoRegisterActionServlet []:
>Could not load Struts module configuration for
>/WEB-INF/.pageflow-struts-generated/jpf-struts-config--global.xml.
>----------------------------------
>
>Is the file name "jpf-struts-config--global.xml" correct ?
>There're double dashes between "config" and "global".
>If it's intention, sorry...
>
>
>Thanks in advance.
>
>wolfgang.
Re: Looking for source directories
Posted by wo...@yahoo.co.jp.
Hi Eddie.
> The build should have copied "junit.jar" into $ANT_HOME/lib as per
> line 26 of $BEEHIVE_HOME/build.xml.
Although the "bootstrap" target properly copies the "junit.jar" into $ANT_HOME/lib,
the junit task doesn't work with eclipse.
You have to follow the instruction as I mentioned before.
(window -> Preferences -> Runtime under Ant tree ->
add BEEHIVE_HOME/external/junit/junit.jar in Global Entries in Classpath tab)
I tried the netui.drt task again and Tomcat wasn't stuck this time.
I guess when last time I tried, Tomcat was seemed stuck but it wasn't...
sorry about that.
I attached the output (netui_drt_output.txt) of the netui.drt in the eclipse console.
I couldn't keep a track of TOMCAT's output and attach since It was displayed in DOS console
There was a strange error in TOMCAT's ouput.
(I couldn't keep a track of TOMCAT's output since It was displayed in DOS console.)
----------------------------------
07 Sep 2004 23:06:32,296 ERROR AutoRegisterActionServlet []:
Could not load Struts module configuration for
/WEB-INF/.pageflow-struts-generated/jpf-struts-config--global.xml.
----------------------------------
Is the file name "jpf-struts-config--global.xml" correct ?
There're double dashes between "config" and "global".
If it's intention, sorry...
Thanks in advance.
wolfgang.
Re: Looking for source directories
Posted by Eddie O'Neil <ek...@bea.com>.
Wolfgang--
Yes, of course -- apologies having misread. <g>
The build should have copied "junit.jar" into $ANT_HOME/lib as per
line 26 of $BEEHIVE_HOME/build.xml. The "bootstrap" target should take
care of these initializations. This could also explain a potential
problem with running Tomcat. This build step also ensures that the
"manager" role is defined in the Tomcat install, which is needed in
order for the Tomcat Ant tasks to successfully deploy / undeploy a
webapp to the running server.
Eddie
wolfgang127us@yahoo.co.jp wrote:
>Hi Eddie.
>
>
>
>> One thing that's curious is the need to have the "junit.jar" in the
>>shell's classpath -- this shouldn't be necessary. Why did you need to
>>add it? What are your JDK and Ant versions?
>>
>>
>
>The "junit.jar" is not in the SHELL's classpath, but in the ANT's classpath.
>I meant the junit.jar must reside in the ANT_HOME/lib directory.
>
>Ant's doc says------------------
>Remember that for JAR files to be visible to Ant tasks implemented
>in ANT_HOME/lib, the files must be in the same directory or on the
>classpath
>--------------------------------
>
>It's weird that building and testing worked fine on Linux without doing that
>kinda stuff.
>But somehow it required a junit.jar in ANT's classpath on eclipse + Win2K.
>
>I'm using jdk-1_5_0-beta3-bin-b60-windows-i586-28_jul_2004.exe (latest one)
>and the version of ANT is 1.6.2 as specified by BEEHIVE_HOME/BUILDING.txt.
>
>
>
>
>> When you say "tomcat is stuck", how far do the tests get? For help
>>getting going with the NetUI tests, you might start here:
>>
>> http://wiki.apache.org/beehive/NetUI/Testing
>>
>>which describes how the test infrastructure starts / stops Tomcat and
>>give some hints at how to diagnose trouble.
>>
>>
>
>Thanks for giving me a path.
>
>Thanks in advance.
>
>wolfgang
>
>
>
>
>
Re: Looking for source directories
Posted by wo...@yahoo.co.jp.
Hi Eddie.
> One thing that's curious is the need to have the "junit.jar" in the
> shell's classpath -- this shouldn't be necessary. Why did you need to
> add it? What are your JDK and Ant versions?
The "junit.jar" is not in the SHELL's classpath, but in the ANT's classpath.
I meant the junit.jar must reside in the ANT_HOME/lib directory.
Ant's doc says------------------
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
--------------------------------
It's weird that building and testing worked fine on Linux without doing that
kinda stuff.
But somehow it required a junit.jar in ANT's classpath on eclipse + Win2K.
I'm using jdk-1_5_0-beta3-bin-b60-windows-i586-28_jul_2004.exe (latest one)
and the version of ANT is 1.6.2 as specified by BEEHIVE_HOME/BUILDING.txt.
> When you say "tomcat is stuck", how far do the tests get? For help
> getting going with the NetUI tests, you might start here:
>
> http://wiki.apache.org/beehive/NetUI/Testing
>
> which describes how the test infrastructure starts / stops Tomcat and
> give some hints at how to diagnose trouble.
Thanks for giving me a path.
Thanks in advance.
wolfgang
Re: Looking for source directories
Posted by Eddie O'Neil <ek...@bea.com>.
Wolfgang--
Hey, glad you're getting up and running.
One thing that's curious is the need to have the "junit.jar" in the
shell's classpath -- this shouldn't be necessary. Why did you need to
add it? What are your JDK and Ant versions?
When you say "tomcat is stuck", how far do the tests get? For help
getting going with the NetUI tests, you might start here:
http://wiki.apache.org/beehive/NetUI/Testing
which describes how the test infrastructure starts / stops Tomcat and
give some hints at how to diagnose trouble.
Hope that helps!
Eddie
wolfgang127us@yahoo.co.jp wrote:
>Hi there,
>
>I've tried building Beehive with eclipse 3.1-M1 on Win2K.
>
>The directory setting is almost same as Ias's.
>
># source directories
> wsm/src/api
> wsm/src/runtime
>
># required libraries
> wsm/lib/xmltypes.jar
> JAVA_HOME/lib/tools.jar,
> external/junit/junit.jar
> external/xmlbeans/apache-xbean.jar
>
>And add junit.jar in ANT's classpath. (Not eclipse's classpath)
>( window -> Preferences -> Runtime under Ant tree ->
> add BEEHIVE_HOME/external/junit/junit.jar in Global Entries in Classpath tab)
>Otherwise, you will fail in the junit ant task.
>
>With the settings above,
>ant bootstrap -> successful
>ant clean -> successful
>ant build -> successful
>ant deploy -> successful
>ant wsm.drt -> successful
>ant controls.drt -> Tomcat is stuck
>ant netui.drt -> Tomcat is stuck
>
>In the both controls.drt and netui.drt target, right after having started,
>Tomcat was stuck... I don't know why.
>I guess those settings are okay, but there's something between eclipse and
>tomcat. I couldn't figure it out.
>
>Thanks in advance.
>
>wolfgang
>
>
>
>
>>Hi all,
>>
>>For those who use IDEs (perhaps IDEA 4.5 or Netbeans 4.0 because of their
>>full Tiger support), where source directories and required libraries are is
>>important and helpful even though build.xml may explain it indirectly. In
>>case of WSM,
>>
>>source directories - wsm/src/api, wsm/src/runtime
>>required libraries - wsm/lib/xmltypes.jar, J2SE_HOME/lib/tools.jar,
>>external/junit/junit.jar, external/xmlbeans/apache-xbean.jar
>>
>>How about adding such information to
>>http://wiki.apache.org/beehive/For_20Beehive_20Developers ?
>>
>>Thanks,
>>
>>Ias
>>
>>
>
>
>