first testing of haxigniter .. error reports seen

13 views
Skip to first unread message

dl

unread,
Mar 22, 2010, 1:15:39 PM3/22/10
to haXigniter

I'm just starting with haxigniter and followed the instructions up to
the point of building the "www" folder. I then copied the created
"www folder" into my Apache localhost server (running on port 8080)
but as a "www" sub-folder under htdocs.

This might be my first error .. where should "www" contents be copied
to .. DocumentRoot?

_SERVER["APACHE_HOME"] C:\Program Files\Apache Software Foundation
\Apache2.2\htdocs


I got the error report (1st Error Report) as below. Some reference in
error report about "capitalized Www". Also I see reference to
execute('localhost/www/' when in fact the server runs as localhost:
8080/www/. Where do I set port number (8080) .. if this is needed?

Next I tried deploying the "www" folder contents (again as a www sub-
folder) in a Tomcat server on different port 8090 running a PHP
servlet (caucho quercus) to see if I get a different error report.
The 2nd error report is shown below, this time referring to
Boot.class.php.

Is there some basic setup step I have missed?

Is "www" to be deployed under DocumenRoot (htdocs) or into
DocumentRoot?


=========================================================================

FIRST ERROR REPORT

Errors launching haxignite "www" folder in http://localhost:8080/
(Apache httpd server with PHP)


uncaught exception: [haxigniter.server.libraries.Request ->
createController() line 38] controllers.Www not found. (Is it defined
in Config.hx and has only the first character Capitalized?)

in file: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
\www\lib\haxigniter\server\libraries\Request.class.php line 14
#0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\www\lib
\haxigniter\server\routing\DefaultRouter.class.php(11):
haxigniter_server_libraries_Request->createController('www', NULL)
#1 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\www\lib
\haxigniter\server\libraries\Request.class.php(51):
haxigniter_server_routing_DefaultRouter-
>createController(Object(config_Config),
Object(haxigniter_common_libraries_ParsedUrl))
#2 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\www\lib
\haxigniter\server\Application.class.php(17):
haxigniter_server_libraries_Request->execute('localhost/www/', 'GET',
Object(Hash), NULL, Array)
#3 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\www\lib
\MyController.class.php(50):
haxigniter_server_Application::run(Object(config_Config), NULL)
#4 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\www
\index.php(9): MyController::main()
#5 {main}

END

=========================================================================

SECOND ERROR REPORT

Errors launching haxignite "www" folder in http://localhost:8090/
(Tomcat server with quercus php servlet)


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

com.caucho.quercus.QuercusModuleException:
com.caucho.quercus.parser.QuercusParseException: C:\Program Files
\Apache Software Foundation\Tomcat 6.0\webapps\quercus\www\lib\php
\Boot.class.php:30: unknown lexeme:» in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:29: class _hx_array implements
ArrayAccess, IteratorAggregate {
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:30: var $»a;
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:31: var $length;
com.caucho.quercus.env.Env.include(Env.java:5086)
com.caucho.quercus.env.Env.includeOnce(Env.java:5037)
com.caucho.quercus.expr.IncludeOnceExpr.eval(IncludeOnceExpr.java:89)
com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:
67)

com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:
105)
com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:
400)
com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:
89)
com.caucho.quercus.env.Env.executePageTop(Env.java:3655)
com.caucho.quercus.env.Env.executeTop(Env.java:3601)

com.caucho.quercus.servlet.QuercusServletImpl.service(QuercusServletImpl.java:
185)
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:
610)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

com.caucho.quercus.parser.QuercusParseException: C:\Program Files
\Apache Software Foundation\Tomcat 6.0\webapps\quercus\www\lib\php
\Boot.class.php:30: unknown lexeme:» in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:29: class _hx_array implements
ArrayAccess, IteratorAggregate {
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:30: var $»a;
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\quercus
\www\lib\php\Boot.class.php:31: var $length;
com.caucho.quercus.parser.QuercusParser.error(QuercusParser.java:
5400)
com.caucho.quercus.parser.QuercusParser.parseToken(QuercusParser.java:
4409)

com.caucho.quercus.parser.QuercusParser.parseIdentifier(QuercusParser.java:
4020)

com.caucho.quercus.parser.QuercusParser.parseClassVarDefinition(QuercusParser.java:
2053)

com.caucho.quercus.parser.QuercusParser.parseClassContents(QuercusParser.java:
2023)

com.caucho.quercus.parser.QuercusParser.parseClassDefinition(QuercusParser.java:
1951)

com.caucho.quercus.parser.QuercusParser.parseStatementList(QuercusParser.java:
627)

com.caucho.quercus.parser.QuercusParser.parseStatementList(QuercusParser.java:
692)
com.caucho.quercus.parser.QuercusParser.parseTop(QuercusParser.java:
534)
com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:439)
com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:320)
com.caucho.quercus.page.PageManager.parse(PageManager.java:256)
com.caucho.quercus.page.PageManager.parse(PageManager.java:213)
com.caucho.quercus.Quercus.parse(Quercus.java:1100)
com.caucho.quercus.env.Env.include(Env.java:5077)
com.caucho.quercus.env.Env.includeOnce(Env.java:5037)
com.caucho.quercus.expr.IncludeOnceExpr.eval(IncludeOnceExpr.java:89)
com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:
67)

com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:
105)
com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:
400)
com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:
89)
com.caucho.quercus.env.Env.executePageTop(Env.java:3655)
com.caucho.quercus.env.Env.executeTop(Env.java:3601)

com.caucho.quercus.servlet.QuercusServletImpl.service(QuercusServletImpl.java:
185)
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:
610)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

END

=========================================================================


Andreas Söderlund

unread,
Mar 22, 2010, 1:47:07 PM3/22/10
to haxig...@googlegroups.com
Hi, if you copy the contents of the www folder into your "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" folder and browse to http://localhost , does it work then?

The name of the DocumentRoot folder has many names, www, htdocs and public_html being a few. I should probably make a note of that in the documentation.


/Andreas

dl

unread,
Mar 23, 2010, 4:01:53 PM3/23/10
to haXigniter

On Mar 22, 5:47 pm, Andreas Söderlund <ciscoh...@gmail.com> wrote:
> Hi, if you copy the contents of the www folder into your "C:\Program

> Files\Apache Software Foundation\Apache2.2\htdocs" folder and browse tohttp://localhost, does it work then?


>
> The name of the DocumentRoot folder has many names, www, htdocs and
> public_html being a few. I should probably make a note of that in the
> documentation.
>
> /Andreas
>

That was indeed the problem .. www does not run as a sub-folder to
htdocs .. I had to copy the contents of www into htdocs .. them I
could run haxigniter integrity tests without errors. The only problem
is that this "merging" of www and htdocs results in haxigniter files
being merged with other existing folders in htdoc such as lib and
existing splash index.php being parked to avoid it being overwritten.

It would be better (for me) if haxigniter was held in one sub-folder
container under htdocs or perhaps in a different docroot. The
current setup instructions assume a localhost server with no other
applications installed.

Thanks. I'll now continue testing.

Andreas Söderlund

unread,
Mar 23, 2010, 4:27:20 PM3/23/10
to haxig...@googlegroups.com
Yes, it's always the fine balance between simplicity to setup and compatibility. :) Glad you made it work.

If you like to run haxigniter from a subfolder, there are two properties in src/config/Config.hx that will make this work: indexFile and indexPath. If you set indexPath to "/www/" and build, you should be able to copy the whole www folder to htdocs and run with http://localhost/www/

/Andreas


To unsubscribe from this group, send email to haxigniter+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Reply all
Reply to author
Forward
0 new messages