Allahbaksh Asadullah

Greenhorn
+ Follow
since Aug 30, 2007
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Allahbaksh Asadullah

Hi,
I have requirement in which I don't want to parse certain JSP files.The JSP file requested by server should be passed as plain/text so that I can display it as plain/text (If there is some dependency missing then tomcat should not throw error).

Is there any way I can configure Tomcat not to parse JSP files which are located in specific folders?

Regards,
Allahbaksh
14 years ago
Hi,
You can just check what all processes are running on different ports. If there is nothing which is running on the 8080 and other ports which are used by tomcat. Then just edit server.xml file to change the port number from 9090 to 8080.
Regards,
Allahbaksh
14 years ago
Hi,
Please note that a tag is not properly closed in the web.xml

<url-pattern>/SelectBeer.do</url-pattern>
<servlet-mapping>

</servlet-mapping>
14 years ago
Hi,
Please check your log files which are there in tomcat/logs.

There will be appropriate error message.

Regards,
Allahbaksh
htttp://allahbaksh.blogspot.com
14 years ago
Hi ,
I think while installing tomcat you didn't click on option to install the examples. Just go to your Tomcat/webapp folder and check whether you have examples folder.


Regards,
Allahbaksh
http://allahbaksh.blogspot.com
14 years ago
Hi,

I tried whole day with tomcat JDNI authentication. With below parameter it works fine with Active Directory. But when I use Tomcat realm I am not able authenticate my self.



SearchControls searchCtls = new SearchControls();



// Specify the attributes to return

// String returnedAtts[] = { SN, MEMBEROF };

String returnedAtts[] = { �sn�, �member� };

searchCtls.setReturningAttributes(returnedAtts);



// Specify the search scope

searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);





String searchFilter = "(&(objectClass=group)(&(objectCategory=group))("

+ sAMAccountName+ "=" + userId + "))";



// Specify the Base for the search

// an empty dn for all objects from all domains in the forest

String searchBase = "";



NamingEnumeration results = ctx.search(searchBase, searchFilter,

searchCtls);







Below are few configuration which I tried





<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"

connectionURL="ldap://192.168.200.57:3268"

roleName="cn"

userSubtree="true"

userSearch="(sAMAccountName={0})"

/>



<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"

connectionURL="ldap://192.168.200.57:3268"

userPattern="{0}"

userSubtree="true"

/>



Can some one let me know equivalent of the same in Tomcat Server.xml
14 years ago
Hi,
Apart from router config check out Windows Firewall setting. In Exception Tab add Tomcat and Add port.
Regards,
Allahbaksh
15 years ago
Hi All,
For our client project I want to pack how to pack application with Tomcat so that when Tomcat is installed our application get deployed. The thing before starting the application I need to start index server and few other tasks.

I had downloaded the tomcat zipped version and added my part of code in startup.bat and it worked fine but I want to bundle it up as .exe so that it get installed as a service.

Regards,
Allahbaksh
15 years ago
Dear All,
I want to use Tomcat JNDI Realm with additional functionalities mentioned below.
1.There are list of groups which consist subgroups for which authentication is to be done.
2.Depending upon the subgroup the user belongs to different permission should be assigned.
3.The user name and subgroup of the user should be available in application for processing.

Please suggest how I am suppose to configure the tomcat.

Note: The group may contain subgroup, or users.

Warm Regards,
Allahbaksh
15 years ago