You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <be...@incubator.apache.org> on 2004/11/10 08:05:25 UTC
[jira] Updated: (BEEHIVE-72) Webapp build warning
[ http://nagoya.apache.org/jira/browse/BEEHIVE-72?page=history ]
Rich Feit updated BEEHIVE-72:
-----------------------------
Assign To: Rich Feit
I have a local fix for this. The patch is simply:
--- netui/src/compiler/org/apache/beehive/netui/compiler/grammar/WebappPathType.java (revision 57114)
+++ netui/src/compiler/org/apache/beehive/netui/compiler/grammar/WebappPathType.java (working copy)
@@ -120,9 +120,12 @@
{
TypeDeclaration type = CompilerUtils.inferTypeFromPath( filePath, getEnv() );
fileToCheck = type != null ? CompilerUtils.getOriginalFile( type ) : null;
- if ( fileToCheck == null ) fileExists = false;
+
+ // Note that if we can't infer the file from the type, we'll fall through to the next case, where
+ // we actually look for the file in the webapp.
}
- else
+
+ if ( fileToCheck == null )
{
File webappRoot = getWebFilesRoot( jpfFile, true );
fileToCheck = new File( webappRoot + filePath );
> Webapp build warning
> --------------------
>
> Key: BEEHIVE-72
> URL: http://nagoya.apache.org/jira/browse/BEEHIVE-72
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1Alpha
> Reporter: Julie Zhuo
> Assignee: Rich Feit
> Priority: Minor
>
> Repro,
> 1. Install a brand new tomcat5.025 using beehive svn bootstrap target.
> 2. Start the tomcat
> 3. Follow the page flow tutorial build and deploy the webapp the first time using,
> ant
> -f %BEEHIVE_HOME%\ant\buildWebapp.xml
> -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
> -Dcontext.path=pageflow_tutorial
> build.webapp
> deploy
> Notice it get successfully done.
> 4. Do an undeploy by
> ant
> -f %BEEHIVE_HOME%\ant\buildWebapp.xml
> -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
> -Dcontext.path=pageflow_tutorial
> undeploy
> 5. Do an webapp build by,
> ant
> -f %BEEHIVE_HOME%\ant\buildWebapp.xml
> -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
> build.webapp
> It produce the following,
> D:\beehive-dist\apache-beehive-incubating-1.0-alpha-snapshot>ant -f ant\buildWeb
> app.xml -Dwebapp.dir=d:\beehive-dist\project\pageflow_tutorial build.webapp
> Buildfile: ant\buildWebapp.xml
> build.webapp:
> [delete] Deleting directory D:\beehive-dist\project\pageflow_tutorial\WEB-INF
> \.tmpbeansrc
> [xmlbeanbuild] Could not find any xsd or wsdl files to process.
> [echo] ========== Compile Java sources in WEB-INF/src, including controls =
> =========
> [echo] netui-compiler.jar: D:\beehive-dist\apache-beehive-incubating-1.0-al
> pha-snapshot/lib/netui/beehive-netui-compiler.jar
> [echo] controls.jar: D:\beehive-dist\apache-beehive-incubating-1.0-alpha-sn
> apshot/lib/controls/controls.jar
> [mkdir] Created dir: D:\beehive-dist\project\pageflow_tutorial\WEB-INF\.tmpb
> eansrc
> [echo] ========== Compile Page Flows ==========
> [apt] Compiling 1 source file to D:\beehive-dist\project\pageflow_tutorial
> \WEB-INF\classes
> [apt] D:\beehive-dist\project\pageflow_tutorial\WEB-INF\.tmpbeansrc\WEB-IN
> F\src\global\Global.java:28: warning: File "/Controller.jpf" could not be found
> in the web application.
> [apt] public Forward home()
> [apt] ^
> [apt] 1 warning
> [echo] Copy all .properties files
> [echo] Copy all .xml files
> BUILD SUCCESSFUL
> Total time: 3 seconds
> 6. Continue to deploy by
> ant
> -f %BEEHIVE_HOME%\ant\buildWebapp.xml
> -Dwebapp.dir=C:\beehive_projects\pageflow_tutorial
> -Dcontext.path=pageflow_tutorial
> deploy
> Notice, it will deploy OK and the webapp runs OK.
> I just wanted to file this here, not sure whether or not it will be a root of something. Hopefully not! :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira