[Logo] smithproject.org
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
Installing after finishing the preinstall instructions  XML
Forum Index -> Getting Started
Author Message
wembly



Joined: 08/03/2007 02:53:27
Messages: 2
Offline

Good Evening All,

Please forgive me if I seem to be missing some things completely obvious, but working on my first Linux system/Web Server. I have completed all the preinstall requirements, Apache installed, Tomcat 6, the apache/tomcat connector, latest Java. Now the question comes to what follows that. Looking at the download options it is either the Smith full for linux or the WAR file. When I try to do the WAR file in the tomcat directory, it creates the necessary files/directories on Tomcat restart, but when I try to run the index.cfm, it gets a compilation error (I am away from that machine so I don't have the exact messages, but one is that it is looking for version 48 of one class and the newest java evidently is up to 49).

Looking at the full linux version, that if you run the startweb.sh, that it bypasses all the work just done to get tomcat working with apache, unless I am understanding what is happening wrong. So, guess my question is, after doing all the initial steps, what is the next step, best way to go from there?

If I stated something to badly, or sounding like a total dweeb, let the flaming begin, I can take it ;)

Thank ya all for your help!
n.zivkovic



Joined: 22/01/2007 17:14:50
Messages: 12
Offline

After PreInstallation you need to add web.xml to WEB-INF directory

http://www.smithproject.org//doc_install.cfm

Restart Tomcat and try to access smith admin panel via

http://yourhost/IDE/admin.html

or you can add URL rewrite in apache virtual.conf to go directly to admin panel

Code:
     <VirtualHost *:80>
         ServerName dummy-host.example.com
         RewriteEngine On
         RewriteRule ^/$ /IDE/admin.html [R]
         <Location />
               JKMount /* worker1
         </Location>
     </VirtualHost> 
 


wembly



Joined: 08/03/2007 02:53:27
Messages: 2
Offline

n.zivkovic,
Thank you for your reply and think I have it set up OK for the most part. Now, I am getting the same compilation error as when I tried using the .war file, which means i must have had that in the right place to begin with. Is there something it doesn't like with mu setup?

Tomcat 6
Java 1.6.0
httpd-2.2.3-5

Thanx!

EXCEPTION INFO
Exception overview
Error message: Compile of file "/opt/tomcat6/webapps/ROOT/index.cfm" failed with status 1:
/opt/tomcat6/webapps/ROOT/WEB-INF/_smithwork/_out//__smithdynamic/_opt/_tomcat6/_webapps/_ROOT/_index.java:9: cannot access java.lang.Object
bad class file: /usr/java/jdk1.6.0/jre/lib/rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class _index extends com.youngculture.smith.engine.pages.CfPage {
^
1 error
Error type: compiler
Stack trace
[Error message: Compile of file "/opt/tomcat6/webapps/ROOT/index.cfm" failed with status 1: /opt/tomcat6/webapps/ROOT/WEB-INF/_smithwork/_out//__smithdynamic/_opt/_tomcat6/_webapps/_ROOT/_index.java:9: cannot access java.lang.Object bad class file: /usr/java/jdk1.6.0/jre/lib/rt.jar(java/lang/Object.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public class _index extends com.youngculture.smith.engine.pages.CfPage { ^ 1 error ]
com.youngculture.smith.engine.pages.PageCompiler.compile(Unknown Source)
com.youngculture.smith.engine.pages.PageCompiler.compile(Unknown Source)
com.youngculture.smith.engine.pages.PageUtil.compilePage(Unknown Source)
com.youngculture.smith.engine.pages.PageUtil.getPageInstance(Unknown Source)
com.youngculture.smith.engine.pages.PageUtil.runPage(Unknown Source)
com.youngculture.smith.engine.util.PageDispatcher.includePage(Unknown Source)
com.youngculture.smith.engine.util.PageDispatcher.includePage(Unknown Source)
com.youngculture.smith.engine.servlets.SmithServlet.serviceRequest(Unknown Source)
com.youngculture.smith.engine.servlets.SmithServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:22
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
java.lang.Thread.run(Thread.java:619)
 
Forum Index -> Getting Started
Go to:   
Powered by JForum 2.1.6 © JForum Team