On Sun, May 22, 2011 at 1:31 AM, Brad Cox <bradj...@gmail.com> wrote:

> I get that error clicking the wsas app in the tomcat admin console which
> resolves to http://localhost:8080/Tomcat-WSO2-1.0-SNAPSHOT
>
> I suspect a config problem since Carbon_Repository/logs is empty and logs
> are being written to Carbon_Repository/repository/logs. That certainly
> doesn't seem right.
>
> Also wasn't sure what you meant by <Carbon_Repository> inside config files;
> for example
>
> <url>jdbc:h2:*<Carbon_Repository>*/repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE</url>
>
>
This should be the CARBON_HOME. Provide the absolute path to the CARBON_HOME
there.


> So I used the full pathname for now.
>
> I automate complex instructions to reduce errors Here's the script I'm
> using, with hand-edited config files from src/main/resources. I've enclosed
> a zip of copies, not from src/main/resources, but from the built tomcat and
> repository directories, hoping you can spot something.
>
>             <plugin>
>                 <artifactId>maven-antrun-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>verify</phase>
>                         <configuration>
>                             <tasks>
>                                 <property name="tomcat-src"
> value="/Users/Brad/Dropbox/Tomcat-7.0.14" />
>                                 <property name="wsas-src"
> value="/Users/Brad/Dropbox/wso2appserver-4.1.0-SNAPSHOT" />
>                                 <delete dir="target"/>
>                                 <mkdir dir="target/Carbon_Repository" />
>                                 <echo message="copy ${wsas-src}/repository
> to target/Carbon_Repository "/>
>                                 <copy todir="target/Carbon_Repository"
> overwrite="true">
>                                     <fileset dir="${wsas-src}/repository"
> />
>                                 </copy>
>                                 <mkdir dir="target/WAR_DIR/WEB-INF" />
>                                 <echo message="copy
> ${wsas-src}/lib/core/WEB-INF to target/WAR_DIR/WEB-INF "/>
>                                 <copy todir="target/WAR_DIR/WEB-INF"
> overwrite="true">
>                                     <fileset
> dir="${wsas-src}/lib/core/WEB-INF" />
>                                 </copy>
>                                 <echo message="copy
> ${wsas-src}/lib/log4j.properties to target/WAR_DIR/WEB-INF/classes "/>
>                                 <copy
> todir="target/WAR_DIR/WEB-INF/classes" overwrite="true">
>                                     <fileset
> file="${wsas-src}/lib/log4j.properties" />
>                                 </copy>
>                                 <echo message="copy ${wsas-src}/lib/api to
> target/WAR_DIR/WEB-INF/lib "/>
>                                 <copy todir="target/WAR_DIR/WEB-INF/lib"
> overwrite="true">
>                                     <fileset dir="${wsas-src}/lib/api"/>
>                                 </copy>
>                                 <echo message="copy ${tomcat-src} to
> target/Tomcat-7.0.14"/>
>                                 <copy todir="target/Tomcat-7.0.14"
> overwrite="true">
>                                     <fileset dir="${tomcat-src}"/>
>                                 </copy>
>                                 <echo message="copy
> src/main/resources/modified.tomcat to target/Tomcat-7.0.14/conf"/>
>                                 <copy todir="target/Tomcat-7.0.14/conf"
> overwrite="true">
>                                     <fileset
> dir="src/main/resources/modified.tomcat"/>
>                                 </copy>
>                                 <echo message="Done copying"/>
>                                 <jar
> destfile="target/Tomcat-WSO2-1.0-SNAPSHOT.war" basedir="target/WAR_DIR" />
>                                 <copy todir="target/Tomcat-7.0.14/webapps">
>                                     <fileset
> file="target/Tomcat-WSO2-1.0-SNAPSHOT.war"/>
>                                 </copy>
>                             </tasks>
>                         </configuration>
>                         <goals>
>                             <goal>run</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>
>
>
> On Sat, May 21, 2011 at 3:40 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> otherwise, It would help if you can give some more details how you got the
>> error. (eg: full url you are accessing
>
>
>
>
> --
> Cell: 703-594-1883
> Blog: http://bradjcox.blogspot.com
> Web: http://virtualschool.edu
> Manassas VA 20111
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to