Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Induction Tutorial - Absolute paths
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
petr kobalicek  
View profile  
 More options Feb 23 2010, 4:49 pm
From: petr kobalicek <kobalicek.p...@gmail.com>
Date: Tue, 23 Feb 2010 13:49:30 -0800 (PST)
Local: Tues, Feb 23 2010 4:49 pm
Subject: Induction Tutorial - Absolute paths
Hi devs,

When I started to trying Induction I read all tutorials on website.
Then I noticed that all classloader paths are absolute. I'm running on
Linux and I'm currently deploying using tomcat.

        <java-class-path>
                <compiled-directory>
                        <directory>absolute_path</directory>
                </compiled-directory>
        </java-class-path>

I just removed this when I started experimenting with Induction, but
it didn't worked. Then I added the path where netbeans deploys
the .war archive and it started working. I also needed to change the
URL from helloworld1 to helloworld. I'm wondering why there is such
number '1'.

So question is, is there a way how to make these paths relative to
current context? How this is solved in production?

Thanks
- Petr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adinath  
View profile  
 More options Feb 23 2010, 5:58 pm
From: Adinath <adin...@acciente.com>
Date: Tue, 23 Feb 2010 15:58:40 -0700
Local: Tues, Feb 23 2010 5:58 pm
Subject: Re: Induction Tutorial - Absolute paths

On Tue, Feb 23, 2010 at 2:49 PM, petr kobalicek <kobalicek.p...@gmail.com>wrote:

> Hi devs,

> When I started to trying Induction I read all tutorials on website.
> Then I noticed that all classloader paths are absolute. I'm running on
> Linux and I'm currently deploying using tomcat.

>        <java-class-path>
>                <compiled-directory>
>                        <directory>absolute_path</directory>
>                </compiled-directory>
>        </java-class-path>

> I just removed this when I started experimenting with Induction, but
> it didn't worked. Then I added the path where netbeans deploys
> the .war archive and it started working.

You only need to use the <java-class-path> if you need Induction to
dynamically reload the classes in absolute_path. I only use the
<java-class-path> section during development. For production deployment I
omit it and Induction directly uses what ever classloader servlet container
provides.

Your question about relative paths is great one, Induction will let you put
relative paths, but I have not determined what it will be relative to! Since
it is servlet container and OS dependent. So if it not too much trouble I
would use absolute path for development, since you can remove it for
deployment.

> I also needed to change the
> URL from helloworld1 to helloworld. I'm wondering why there is such
> number '1'.

So the '1' is from the '1'  in the classname for HelloWorld1Controller. If
the class is named HelloWorldController then it would be just helloworld

So question is, is there a way how to make these paths relative to

> current context? How this is solved in production?

Yes so in production, as above, just make a .war file and in the
induction-<yourapp>.xml just omit the <java-class-path> section. Other paths
in Induction such as the template file can be made relative, for example as
shown in the sample config XML <template-path> section.

Regards,
Adi

--
Acciente, LLC
Systems Architecture and Software Design

www.acciente.com
www.inductionframework.org

  induction-complete-sample-config.xml
17K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »