• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"Error: please give write access" - but it _has_ got +w?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again

I am getting the "please give write access to WEB-INF/config/ and index.htm" error during the interactive install.

I've checked my file priveleges:

-rw-r--r-- 1 jboss nogroup 564 2006-11-12 18:01 index.htm



and

drwxr-xr-x 4 jboss nogroup 4096 2006-11-15 13:22 config



The jboss user is of course running the app server. Any idea why the write access is still not being allowed?
[originally posted on jforum.net by konstandinos]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I searched these forums for this error and discovered the solution using __install.redirect

Now however I get that dateTimeFormat error:


Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression dateTimeFormat is undefined on line 2, column 29 in default/header.htm.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.PropertySetting.accept(PropertySetting.java:110)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.include(Environment.java:1375)
at freemarker.core.Include.accept(Include.java:155)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.include(Environment.java:1375)
at freemarker.core.Include.accept(Include.java:155)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.process(Environment.java:176)
at freemarker.template.Template.process(Template.java:232)
at net.jforum.exceptions.ExceptionWriter.handleExceptionData(ExceptionWriter.java:110)
at net.jforum.InstallServlet.service(InstallServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)



Ideas?
[originally posted on jforum.net by konstandinos]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I figured I'd post this so that it may be of use to others.

The interactive install needs some work in my humble opinion. It's nice and easy at first until it breaks.

The manual install is far more straight forward (assuming one doens't run into any problems).

I am using JBoss AS 4.2.1.GA (which has Tomcat 5.5 bundled), JDK1.6.0_u2, PostgreSQL 8.2.4.

The manual install worked like sinch - just some pointers though:

1. Don't upload an unpacked .war directory file by file, rather upload a zip a file and unpack it on the server. For some odd reason (beyond me) smilies don't load properly when uploaded file by file (on our server anyway).
2. Although JBoss automatically pools datasource connections, I'm not entirely sure if it's the best way. I configured it with Datasources and ran the forum for a bit but ran into some issues. Using the default ConnectionPool option bundled with Jforum seems to work far better.
3. Make sure you specify the homepage.link and forum.link parameters BEFORE you import the bundled sql scripts - for some odd reason, first time i tried this i did it the other way round and chaning those 2 parameters after it was installed simply did not work.

Ok I hope this helps other people.

Thanks again for a great piece of software.
[originally posted on jforum.net by konstandinos]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings,

there's always the troubles copying "file by file" to a running application server. It's better to use "cut & paste" in that case, deploy the app as war file - or stop the application server before copying the files over...

[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

konstandinos wrote:Ok I figured I'd post this so that it may be of use to others.

The interactive install needs some work in my humble opinion. It's nice and easy at first until it breaks.

The manual install is far more straight forward (assuming one doens't run into any problems).

I am using JBoss AS 4.2.1.GA (which has Tomcat 5.5 bundled), JDK1.6.0_u2, PostgreSQL 8.2.4.

The manual install worked like sinch - just some pointers though:

1. Don't upload an unpacked .war directory file by file, rather upload a zip a file and unpack it on the server. For some odd reason (beyond me) smilies don't load properly when uploaded file by file (on our server anyway).
2. Although JBoss automatically pools datasource connections, I'm not entirely sure if it's the best way. I configured it with Datasources and ran the forum for a bit but ran into some issues. Using the default ConnectionPool option bundled with Jforum seems to work far better.
3. Make sure you specify the homepage.link and forum.link parameters BEFORE you import the bundled sql scripts - for some odd reason, first time i tried this i did it the other way round and chaning those 2 parameters after it was installed simply did not work.

Ok I hope this helps other people.

Thanks again for a great piece of software.


Yes, JBoss will often start the deployment before the .war file has finished extracting (or being copied). To make sure you get a "good" deploy, after the extract or copy has completed, do a "touch" on the web.xml file. This will kick off a new JBoss deploy that will get all the files.
[originally posted on jforum.net by GatorBait3]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic