Dashboard > Encore > ... > The Pas Researcher Pack > I am a developer > How to guides for the PAS portal > How to start up in the PAS or TELS configuration Jump To: Tribes | Resources | Collaborations
Log In | Sign Up   View a printable version of the current page.  
Added by Laurel Williams, last edited by Laurel Williams on Oct 12, 2007
Labels: 
(None)

  1. Modify the settings.xml file (in your .m2 directory)
    Comment out the appropriate context.config.class element depending on which configuration you want to start in.
    <settings>
    	<servers>
    		<server>
    			<id>myserver</id>
    			<username>ausername</username>
    			<password>apassword</password>
    		</server>
    	</servers>
    
    	<profiles>
    		<profile>
    			<id>databaseConfig</id>
    			<activation>
    				<activeByDefault />
    			</activation>
    			<properties>
    				<jdbc.url>
    					jdbc:hsqldb:file:${user.home}/tomcat/db/sail_database;shutdown=true
    				</jdbc.url>
    				<jdbc.driverClassName>
    					org.hsqldb.jdbcDriver
    				</jdbc.driverClassName>
    				<jdbc.username>ausername</jdbc.username>
    				<jdbc.password>apassword</jdbc.password>
    				<hibernate.dialect>
    					org.hibernate.dialect.HSQLDialect
    				</hibernate.dialect>
    				<db.vendor>hsqldb</db.vendor>
    			</properties>
    		</profile>
    		<profile>
    			<id>portalConfig</id>
    			<activation>
    				<activeByDefault />
    			</activation>
    			<properties>
    				<context.config.class>
    					net.sf.sail.webapp.spring.impl.SpringConfigurationImpl
    				</context.config.class>
    <!--
    				<context.config.class>
    					org.telscenter.sail.webapp.spring.impl.SpringConfigurationImpl
    				</context.config.class>
    -->			</properties>
    		</profile>
    	</profiles>
    
    	<activeProfiles>
    		<activeProfile>databaseConfig</activeProfile>
    		<activeProfile>portalConfig</activeProfile>
    	</activeProfiles>
    
    </settings>
    

add this to web.xml

     <context-param>
        <param-name>contextConfigClass</param-name>
        <param-value>org.telscenter.sail.webapp.spring.impl.SpringConfigurationImpl </param-value>
    </context-param>
....
	<init-param>
            <param-name>contextConfigClass</param-name>
            <param-value>org.telscenter.sail.webapp.spring.impl.SpringConfigurationImpl</param-value>
        </init-param>
  1. Run mvn resources:resources
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.