Question on embedding to Spring

116 views
Skip to first unread message

ceyhu...@gmail.com

unread,
Aug 6, 2014, 6:33:15 PM8/6/14
to crash...@googlegroups.com
I cant seem to figure out how to give config property options.
I've tried many possibilities bu i couldn't get it done.

Here is the case;

<bean id="CrashConf" class="org.crsh.spring.SpringWebBootstrap">
        <property name="cmdMountPointConfig"  value="classpath:/mypackage/crash/commands/"/>
        <property name="confMountPointConfig" value="classpath:crash.properties"/> 
....

I've put the  crash.properties file under resources directory.
But it could not seem to see the file

I've attached my project directory structure.

Thanks.
Screenshot.png

ceyhu...@gmail.com

unread,
Aug 6, 2014, 6:55:19 PM8/6/14
to crash...@googlegroups.com
Ok
finally i ve managed to get it work
by putting crash.properties file under WEB-INF/crash

bu i keep getting the following exception

Could not get a prompt message, will use empty
groovy.lang.MissingPropertyException: No such property: prompt for class: org.crsh.lang.impl.groovy.ShellBinding

ceyhu...@gmail.com

unread,
Aug 6, 2014, 7:21:54 PM8/6/14
to crash...@googlegroups.com
And i got rid of the message by putting base folder that comes with crash
under WEB-INF/crash/commands

Case is closed.

Thanks.

Julien Viet

unread,
Aug 7, 2014, 2:25:34 PM8/7/14
to ceyhu...@gmail.com, crash...@googlegroups.com
great :-)

the other option would be to configure the mount points to find the scripts in the jars: http://www.crashub.org/1.3/reference.html#_mount_point_configuration

--
Julien Viet
www.julienviet.com


On 7 Aug 2014 at 01:21:55, ceyhu...@gmail.com (ceyhu...@gmail.com) wrote:
> And i got rid of the message by putting base folder that comes with crash
> under WEB-INF/crash/commands
>
> Case is closed.
>
> Thanks.
>
> On Thursday, August 7, 2014 1:55:19 AM UTC+3, ceyhu...@gmail.com wrote:
> >
> > Ok
> > finally i ve managed to get it work
> > by putting crash.properties file under WEB-INF/crash
> >
> > bu i keep getting the following exception
> >
> > Could not get a prompt message, will use empty
> > groovy.lang.MissingPropertyException: No such property: prompt for class:
> > org.crsh.lang.impl.groovy.ShellBinding
> >
> >
> >
> > On Thursday, August 7, 2014 1:33:15 AM UTC+3, ceyhu...@gmail.com wrote:
> >>
> >> I cant seem to figure out how to give config property options.
> >> I've tried many possibilities bu i couldn't get it done.
> >>
> >> Here is the case;
> >>
> >>
> >> > >> value="classpath:/mypackage/crash/commands/"/>
> >> > >> value="classpath:crash.properties"/>
> >> ....
> >>
> >> I've put the crash.properties file under resources directory.
> >> But it could not seem to see the file
> >>
> >> I've attached my project directory structure.
> >>
> >> Thanks.
> >>
> >
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes CRaSH User Group.
> Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez
> un e-mail à l'adresse crash-users...@googlegroups.com.
> Pour plus d'options, visitez le site https://groups.google.com/d/optout .
>

Reply all
Reply to author
Forward
0 new messages