# Error in Registering UDF from Web Application

**URL:** <https://discuss.aerospike.com/t/error-in-registering-udf-from-web-application/1220>\
**Category:** User Defined Functions (UDF)\
**Created:** [April 26, 2015, 5:58am UTC](https://discuss.aerospike.com/t/error-in-registering-udf-from-web-application/1220 "2015-04-26T05:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rumeshnw](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rumeshnw](https://discuss.aerospike.com/u/rumeshnw)\
**Post date:** [April 26, 2015, 5:58am UTC](https://discuss.aerospike.com/t/error-in-registering-udf-from-web-application/1220/1 "2015-04-26T05:58:52Z")

</div>

I’m trying to register UDF from web application & it gives following error message.

```
com.aerospike.client.AerospikeException: Registration failed: invalid_filename
File: null
Line: null
Message: null

```

Follwing is the UDF registering code snip,

```
RegisterTask task = aerospikeClient.register(null, "/home/myuser/Downloads/filter_example.lua", "filter_example.lua", Language.LUA);

```

Also, I have tried exactly the same code running on standalone application & it’s working as expected.

Can anyone help me to resolve this issue. Am I missing something?? Thanks in advance

---

<div class="post-metadata">

**Author:** ![wchu](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wchu](https://discuss.aerospike.com/u/wchu)\
**Post date:** [April 27, 2015, 10:32pm UTC](https://discuss.aerospike.com/t/error-in-registering-udf-from-web-application/1220/2 "2015-04-27T22:32:01Z")

</div>

Not sure if you are deploying from a war file? This thread might be relevant - [3.1.0 AerospikeClient.register in war does not work · Issue #26 · aerospike/aerospike-client-java · GitHub](https://github.com/aerospike/aerospike-client-java/issues/26)
