– jirkap | 2 Aug 18:34
Picon

Helma Windows service does not work

Hello,

I am having difficulties running Helma service on Windows XP SP2. I
read about submitting questions about it to dev-helma mailing list,
but as I also noticed something about closing it, I guess it is more
proper to post it here (hope I do not break any rules).

I downloaded the HelmaService.zip file from
http://adele.helma.org/download/helma/contrib/hannes/helmaservice/ and
followed instructions several times:

installservice.bat c:\progra~1\java\jre1.6.0_5 d:\dev\helma client

The information about succesful installation always appears, then I
add the following line to server.properties file as required:

webPort=8080

But then when I try to start the service from the services control
panel, it just gives me a message like this:

"The service has started and shut down. It happens when the service is
not needed anymore" - or something like that, I actually cannot
reinterpret what it exactly says as I use

I tried to run it from shell, but it does not work either giving me
something like this:

Starting Helma service.
Helma service cannot be activated.
(Continue reading)

Joshua Paine | 3 Aug 22:30

Re: Helma Windows service does not work

I'm no longer running Windows, but if you're just doing development on
Win, don't worry about running it as a service at all. Just run
start.bat in the Helma folder.

--

-- 
Joshua Paine <joshua <at> papercrown.org>
Anton Pirker | 4 Aug 10:25

[jala] captcha broken?

Hi!

I hope i also can ask jala questions in here.

I just wanted to add a jala.Captcha() to my app and it did not work.
First thing was, that the jcaptcha jar file was missing.
I downloaded the latest version, changed the filename in Captcha.js and 
tried again. Again no luck.

Captcha.js uses Packages.com.sun.image.codec.jpeg.JPEGCodec which seems 
not to be available in OpenJdk Java 1.6.0-b09.

So i changed the code to use javax.imagei like this:

    /**
     * Render a new captcha image.
     */
    this.renderImage = function renderImage() {
       var image = captcha.getImageChallenge();
       var stream = new java.io.ByteArrayOutputStream();
       javax.imageio.ImageIO.write(image, "jpg", stream);
       res.contentType = "image/jpeg";
       res.writeBinary(stream.toByteArray());
       return;
    };

Now it works!
Maybe some of the jala folks can add this changes to the repository?

thanks,
(Continue reading)

Anton Pirker | 4 Aug 13:52

get prototype name in macro

hi list!

i have a macro in HopObject, so it is usable from all the prototypes.
in this macro i want to get the name of the prototype called the macro.

If i do:
	res.write(this._prototype);

it says "HopObject" but not the the name of the prototype from which i 
called the macro. Can i get this information somehow?

regards,
Anton

--

-- 
DI(FH) Anton Pirker
Helma Freelancer

http://www.ignaz.at
http://shnitzl.org
– jirkap | 3 Aug 17:53
Picon

Re: Helma Windows service does not work

I finally solved it using JRE 1.5.0_15 in case someone would run into
the same troubles.
There are some problems with JRE 1.6 and JavaService.

Cheers

jirka
– jirkap | 4 Aug 15:25
Picon

Re: Helma Windows service does not work

Thanks for your reply. I finally solved it using JRE 1.5.0_15, there
are some issues with 1.6 version of JRE and JavaService (mailed this
yesterday, but I suppose the mail has not been delivered to the board
for some reason). It is just more comfortable to run it as a service,
I had been using the start.bat before then.

jirka

On Sun, Aug 3, 2008 at 10:30 PM, Joshua Paine <joshua <at> papercrown.org> wrote:
> I'm no longer running Windows, but if you're just doing development on
> Win, don't worry about running it as a service at all. Just run
> start.bat in the Helma folder.
>
> --
> Joshua Paine <joshua <at> papercrown.org>
>
> _______________________________________________
> Helma-user mailing list
> Helma-user <at> helma.org
> http://helma.org/mailman/listinfo/helma-user
>
Klemens | 4 Aug 15:33
Picon

addRepository...

helma 1.6.2 (April 7 2008) seems to parse the code of the repository
in the reverse direction if you add it via app.addRepository() instead
of adding a configuration line like

twoday_media_trunk_2.repository.2 =
../kngRepositories/twoday_media/trunk_2/jalaLib/core/code

to the apps.properties.

reverse direction?
"Zip.js, Array.js" instead of "Array.js, Zip.js"

why is that?

is this a bug?

greetings,
--

-- 
klemens mantzos
web developer | vienna - http://knallgrau.at/
Julian Tree | 4 Aug 20:48
Picon

app.registerUser

Hi,

The User/type.properties has _name mapped

_name       = jobulous_user_email

but when I do
app. registerUser

It is still looking for a user.name column in the database

http://helma.zumbrunn.com/reference/app.html#app.registerUser

Is this a bug or an intended behavior?

Julian
Joshua Paine | 4 Aug 20:56

Re: app.registerUser

I have

_name = EMAIL

in my most recent User.properties, and it is working fine. Helma 1.6.2.
I don't know that it will make any difference, but try ALL CAPSing the
column name.

Also make sure you've restarted your app since you set that, again just
in case.

--

-- 
Joshua Paine <joshua <at> papercrown.org>
Anton Pirker | 7 Aug 18:27

new style xml rpc

hi list!

i am writing a small xml/rpc server and client right now.

a while back i already did this and used following properties in 
app.properties to define the callable function:

xmlRpcAccess = api.getAllJobs, api.getApplicationForm, api.storeFile,
xmlRpcHandlerName = *

but i somehow recall, that there is a new way of doing things.
something with adding _xmlrpc instead of _action to the functionname.

is there any documentation on the whole xml/rpc server and client issue? 
i can't find anything usefull.

thanks,
anton

--

-- 
DI(FH) Anton Pirker
Helma Freelancer

http://www.ignaz.at
http://shnitzl.org

Gmane