On 7/2/07, mda <[EMAIL PROTECTED]> wrote:

Hello,

Thank you all for the answers.

It seems that sometimes it is not enough to install jar in the maven
repository, but also needs to be included in pom.xml . What does it depend
on?

The smack library that is already in public maven repository is 1.x, we need
to use the version 3.0.3. Does anybody know how to resolve: Error! A startup
class specified in smack-config.xml could not be loaded:
org.jivesoftware.smackx.ServiceDiscoveryManager (and couple of other classes
from the same package)

smack-config.xml file can't be found anywhere on the hard drive. Is it maybe
generated, and how?
How could I trace the calls and discover what is the problem there?

I would contact the Smack mailing list (or forums) and ask those guys
about using their library with Maven 2.

Matt


Matt, thanks for the tip for the Junit - it worked!

Cheers





Eric Fitzsimmons wrote:
>
> Responses below...
> Hope it helps
>
> MDA Team wrote:
>
>> Hi all,
>>
>> I'd have couple of starter questions regarding appfuse 2.0:
>>
>> - Where can be found log files containing errors with bean loading? It
>> seems that adding a controller and a related jsp page causes the tests
>> to return errors. So far, I have noticed that mvn does not give any
>> indicators when bean loading fails or there is somethign missing/wrong
>> in the config files.  What is the best practice for discovering the
>> cause of such problems?
>
> Maven is not a run time tool.  It is a build/dependency tool, so I'm not
> exactly sure, but I think enabling log4j or doing remote debugging with
> Jetty
> http://www.mojavelinux.com/blog/archives/2007/03/remote_debugging_with_jetty/
>
>>
>> - What is the correct procedure for adding external libraries to the
>> project, and having them checked out in svn? To integrate the smack
>> libraries, I have done the following steps:
>> 1) mvn install:install-file -DgroupId= org.jivesoftware
>> -DartifactId=smack -Dversion=3.0.3 -Dpackaging=jar -Dfile=/lib/smack.jar
>> 2) mvn eclipse:eclipse
>
> The Correct procedure is to do a deploy of the file to a server you wish
> to save the file on so others can get it.
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
> looks like mvn deploy:deploy-file -DgroupId=org.jivesoftware
> -DartifactId=smack -Dversion=3.0.3 -Dpackaging=jar -Dfile=/lib/smack.jar
> -Durl=scp://host.com/path/to/repo
> or if you do it on the server which i suggest
> mvn deploy:deploy-file -DgroupId=org.jivesoftware -DartifactId=smack
> -Dversion=3.0.3 -Dpackaging=jar -Dfile=/lib/smack.jar
> -Durl=file://path/to/repo
> then to get the file just include the group id and artifact Id in your
> pom under the dependencies.
>
>>
>> after that eclipse correctly recognized the dependencies, but the
>> manager tests (using smack) fail.  I'd have a few questions:
>> - How to make install of third party libraries in e.g. myproject\lib
>> directory instead of maven repository, so that I can commit them to SVN
>
> I would suggest not to ever put libraries into your project directly.
> That's what maven is for.  If you follow the info ahead that should take
> care of everything.
>
>> - Is it needed to do generation of source code of appfuse into the
>> project and run mvn eclipse:eclipse after every such update?
>
> I'm not sure, but if the files you are using are being edited and not
> the jars, then I would say yes if you are using fullsource.
>
>>
>> - What could be the problem with importing smack.jar in the project?
>> Extremly simple manager test fails, returning:
>>  Error! A startup class specified in smack-config.xml could not be
>> loaded: org.jivesoftware.smackx.ServiceDiscoveryManager (and couple of
>> other classes from the same package) It's very awkward, but
>> smack-config.xml file can't be found anywhere on the hard drive. Is it
>> maybe generated, and how?!
>> How could I trace the calls and discover what is the problem there?
>>
>> Furthermore, for the project I need only classes from smack.jar,
>> additional functionality from smackx.jar is not needed. Can you please
>> help to find out what could be the problem?
>>
>> - Has anybody tried to integrate a Jabber Client API in Appfuse? What
>> would be th easiest way for embedding a jabber client into Web
>> Interface (simillar to Gtalk integration in Gmail) and would you maybe
>> have some code/example of integration with Ajax or other technologies
>> used there?
>>
>> - How can this Junit error be resolved?
>> org.springframework.beans.factory.BeanDefinitionStoreException: Error
>> registering bean with name 'dataSource' defined in class path resource
>> [ applicationContext-resources.xml]: Circular placeholder reference
>> 'jdbc.driverClassName' in property definitions
>>     at
>> 
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java
>> :249)
>>     at
>> 
org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
>>     at
>> 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors
>> (AbstractApplicationContext.java:467)
>>     at
>> 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
>>     at
>> 
org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext
>> (AbstractSingleSpringContextTests.java:199)
>>     at
>> 
org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:179)
>>     at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContext
>> (AbstractSingleSpringContextTests.java:158)
>>     at
>> 
org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:105)
>>     at org.springframework.test.AbstractSingleSpringContextTests.setUp
>> (AbstractSingleSpringContextTests.java:87)
>>     at junit.framework.TestCase.runBare(TestCase.java:128)
>>     at
>> 
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
>>     at junit.framework.TestResult$1.protect (TestResult.java:106)
>>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>>     at junit.framework.TestResult.run(TestResult.java:109)
>>     at junit.framework.TestCase.run(TestCase.java:120)
>>     at junit.framework.TestSuite.runTest(TestSuite.java:230)
>>     at junit.framework.TestSuite.run(TestSuite.java:225)
>>     at
>> 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>>
>>     at
>> 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>     at
>> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
>> (RemoteTestRunner.java:673)
>>     at
>> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>>     at
>> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>>
>> Here ar the contents of applicationContext-resources.xml :
>>
>>     <bean id="propertyConfigurer"
>> 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>>         <property name="locations">
>>             <list>
>>                 <value>classpath:jdbc.properties</value>
>>                 <value>classpath:mail.properties</value>
>>             </list>
>>         </property>
>>     </bean>
>>
>>     <!-- JNDI DataSource for J2EE environments -->
>>     <!--<jee:jndi-lookup id="dataSource"
>> jndi-name="java:comp/env/jdbc/appfuse"/>-->
>>
>>     <bean id="dataSource" class="
>> org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
>>         <property name="driverClassName"
>> value="${jdbc.driverClassName}"/>
>>         <property name="url" value="${ jdbc.url}"/>
>>         <property name="username" value="${jdbc.username}"/>
>>         <property name="password" value="${jdbc.password}"/>
>>         <property name="maxActive" value="100"/>
>>         <property name="maxIdle" value="30"/>
>>         <property name="maxWait" value="1000"/>
>>         <property name="defaultAutoCommit" value="true"/>
>>         <property name="removeAbandoned" value="true"/>
>>         <property name="removeAbandonedTimeout" value="60"/>
>>     </bean>
>>
>>
>> Thank you very much for your help in advance!
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Question-Problem-with-Loading-Context-and-Importing-Libraries-into-Appfuse-2.0-tf3933443s2369.html#a11398318
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to